We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
目前代码如下:
public PartitionSpec(String spec, boolean trim) { if (spec == null) { throw new IllegalArgumentException("Argument \'spec\' cannot be null"); } String[] groups = spec.split("[,/]"); for (String group : groups) { String[] kv = group.split("="); if (kv.length != 2) { throw new IllegalArgumentException("Invalid partition spec."); } String k = trim ? kv[0].trim() : kv[0]; String v = (trim ? kv[1].trim() : kv[1]) .replaceAll("'", "") .replaceAll("\"", ""); if (k.length() == 0 || v.length() == 0) { throw new IllegalArgumentException("Invalid partition spec."); } set(k, v); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
目前代码如下:
The text was updated successfully, but these errors were encountered: