Skip to content

Commit 7901432

Browse files
committed
Remove type checkers from operator registration because all type checking is deferred to the validation phase against the finished logical plan
Signed-off-by: Yuanchun Shen <yuanchu@amazon.com>
1 parent aff8541 commit 7901432

2 files changed

Lines changed: 54 additions & 198 deletions

File tree

core/src/main/java/org/opensearch/sql/calcite/utils/OpenSearchTypeUtil.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ public static boolean isDatetime(RelDataType fieldType) {
7777
|| udtType == ExprCoreType.TIME;
7878
}
7979

80-
// Fallback check if type string contains EXPR_TIMESTAMP
81-
return fieldType.toString().contains("EXPR_TIMESTAMP");
80+
return false;
8281
}
8382

8483
/**

0 commit comments

Comments
 (0)