zabetak opened a new pull request #1780: URL: https://github.com/apache/hive/pull/1780
### What changes were proposed in this pull request? Throw an error when `hive.strict.checks.type.safety=true` and the query contains comparison between decimals and character types. ### Why are the changes needed? To fail-fast and avoid unexpected query results. Examples in the JIRA. ### Does this PR introduce _any_ user-facing change? Queries relying on comparisons between decimal and character types will fail. ### How was this patch tested? `mvn clean test -Dtest=TestNegativeCliDriver -Dqfile="strict_type_decimal_char_00.q,strict_type_decimal_char_01.q,strict_type_decimal_string_00.q,strict_type_decimal_string_01.q,strict_type_decimal_string_02.q,strict_type_decimal_varchar_00.q,strict_type_decimal_varchar_01.q,strict_type_decimal_varchar_02.q,strict_type_decimal_varchar_03.q,strict_type_decimal_varchar_04.q,strict_type_decimal_varchar_05.q,strict_type_decimal_varchar_06.q,strict_type_decimal_varchar_07.q,strict_type_decimal_varchar_08.q" -Dtest.output.overwrite` `mvn test -Dtest=TestDecimalStringValidation` ---------------------------------------------------------------- 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