wangyum commented on pull request #1771: URL: https://github.com/apache/hive/pull/1771#issuecomment-744470603
Type | Disadvantage -- | -- Decimal | Can not correct compare if the string is a very large number that exceeds the max decimal precision. E.g. `cast('1234567890123456789012345678901234567890' as decimal(38, 0)) > cast(1 as decimal(18, 0))` String | Can not correct compare if trailing zeros . E.g. `'1.10' = cast(1.1 as string)` Double | Can not correct compare if exceeds double precision. E.g. `cast('1234567890123456789012345678901234567890' as double) < cast('1234567890123456789012345678901234567891' as double)` How about throwing exceptions like PostgreSQL? ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org