Skip to content

Commit 048a7de

Browse files
committed
bin command error message enhancement
Signed-off-by: Kai Huang <[email protected]>
1 parent 1b05d32 commit 048a7de

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

core/src/main/java/org/opensearch/sql/calcite/utils/binning/BinFieldValidator.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,7 @@ public static boolean isTimeBasedField(RelDataType fieldType) {
6161
return fieldType.toString().contains("EXPR_TIMESTAMP");
6262
}
6363

64-
/**
65-
* Validates that the field type is numeric for numeric binning operations.
66-
*
67-
* @param fieldType the RelDataType of the field to validate
68-
* @param fieldName the name of the field being validated
69-
* @throws SemanticCheckException if the field is not numeric
70-
*/
64+
/** Validates that the field type is numeric for numeric binning operations. */
7165
public static void validateNumericField(RelDataType fieldType, String fieldName) {
7266
if (!isNumericField(fieldType)) {
7367
throw new SemanticCheckException(

0 commit comments

Comments
 (0)