mirror of https://github.com/apache/druid.git
Forbid slashes in datasource names. (#5937)
They are bad because datasources are used as paths on filesystems, and slashes invariably make things get stored improperly.
This commit is contained in:
parent
aa4987b871
commit
24c20b4734
|
@ -73,6 +73,7 @@ public class DataSchema
|
|||
this.transformSpec = transformSpec == null ? TransformSpec.NONE : transformSpec;
|
||||
|
||||
Preconditions.checkArgument(!Strings.isNullOrEmpty(dataSource), "dataSource cannot be null or empty. Please provide a dataSource.");
|
||||
Preconditions.checkArgument(!dataSource.contains("/"), "dataSource cannot contain the '/' character.");
|
||||
this.dataSource = dataSource;
|
||||
|
||||
if (granularitySpec == null) {
|
||||
|
|
Loading…
Reference in New Issue