abhioncbr commented on issue #10686: URL: https://github.com/apache/pinot/issues/10686#issuecomment-1534014194
Comparison results on H2 DB ``` $ CREATE TABLE Numeric_tbl (int_col INTEGER, long_col BIGINT, double_col Double, float_col REAL, bigDecimal_col DECFLOAT); $ INSERT INTO Numeric_tbl VALUES(1,1,1.1,1.1,1.1); $ INSERT INTO Numeric_tbl VALUES(1,1,1,1,1); $ select int_col = long_col, long_col =int_col from Numeric_tbl; INT_COL = LONG_COL | LONG_COL = INT_COL ------------------ | ------------------- TRUE | TRUE TRUE | TRUE $ select int_col = bigDecimal_col, bigDecimal_col = int_col,long_col = bigDecimal_col, bigDecimal_col = long_col from Numeric_tbl; INT_COL = BIGDECIMAL_COL | BIGDECIMAL_COL = INT_COL | LONG_COL = BIGDECIMAL_COL | BIGDECIMAL_COL = LONG_COL ------------------------ | ------------------------ | ------------------------- | ------------------------ FALSE | FALSE | FALSE | FALSE TRUE | TRUE | TRUE | TRUE $ select float_col = double_col, double_col = float_col from Numeric_tbl; FLOAT_COL = DOUBLE_COL | DOUBLE_COL = FLOAT_COL ---------------------- | ------------------------ FALSE | FALSE TRUE | TRUE $ select float_col = bigDecimal_col, bigDecimal_col = float_col, double_col = bigDecimal_col, bigDecimal_col = double_col from Numeric_tbl; FLOAT_COL = BIGDECIMAL_COL | BIGDECIMAL_COL = FLOAT_COL | DOUBLE_COL = BIGDECIMAL_COL | BIGDECIMAL_COL = DOUBLE_COL -------------------------- | -------------------------- | --------------------------- | --------------------------- TRUE | TRUE | TRUE | TRUE TRUE | TRUE | TRUE | TRUE ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org