Files
impala/testdata/workloads/functional-query/queries/QueryTest
Peter Rozsa b41339c22d IMPALA-12285: Use targetType in string-to-numeric literal conversion
This change fixes mismatched type problems when an implicitly casted
string literal gets converted to a numeric type. Example:

'INSERT INTO example(float_col) VALUES ("0"), (15629);'

After this change, StringLiteral's 'convertToNumber' method will
consider the targetType parameter when creates a new NumericLiteral.

Test:
 - test case added to insert-unsafe.test

Change-Id: I2141e7ab164af55a7fa66dda05fe6dcbd7379b69
Reviewed-on: http://gerrit.cloudera.org:8080/20197
Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
2023-07-14 17:23:26 +00:00
..
2021-07-06 18:35:30 +00:00