Skip to content

Commit

Permalink
[CALCITE-4215] Fix handing of null monotonicity in IdentifierNamespace
Browse files Browse the repository at this point in the history
  • Loading branch information
vlsi committed Oct 1, 2020
1 parent 1f57bd4 commit 0922441
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public RelDataType validateImpl(RelDataType targetRowType) {
final String fieldName = field.getName();
final SqlMonotonicity monotonicity =
resolvedNamespace.getMonotonicity(fieldName);
if (monotonicity != SqlMonotonicity.NOT_MONOTONIC) {
if (monotonicity != null && monotonicity != SqlMonotonicity.NOT_MONOTONIC) {
builder.add(
Pair.of((SqlNode) new SqlIdentifier(fieldName, SqlParserPos.ZERO),
monotonicity));
Expand Down

0 comments on commit 0922441

Please sign in to comment.