mirror of https://github.com/apache/druid.git
fix old usage of dimension as string instead of dimensionSchema in DataSchema (#3365)
This commit is contained in:
parent
ed924bf214
commit
eafafce1aa
|
@ -113,7 +113,7 @@ public class DataSchema
|
||||||
// exclude timestamp from dimensions by default, unless explicitly included in the list of dimensions
|
// exclude timestamp from dimensions by default, unless explicitly included in the list of dimensions
|
||||||
if (timestampSpec != null) {
|
if (timestampSpec != null) {
|
||||||
final String timestampColumn = timestampSpec.getTimestampColumn();
|
final String timestampColumn = timestampSpec.getTimestampColumn();
|
||||||
if (!(dimensionsSpec.hasCustomDimensions() && dimensionsSpec.getDimensions().contains(timestampColumn))) {
|
if (!(dimensionsSpec.hasCustomDimensions() && dimensionsSpec.getDimensionNames().contains(timestampColumn))) {
|
||||||
dimensionExclusions.add(timestampColumn);
|
dimensionExclusions.add(timestampColumn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue