flink icon indicating copy to clipboard operation
flink copied to clipboard

[FLINK-26771][Hive] Fix incomparable exception between boolean type and numeric type in Hive dialect

Open luoyuxia opened this issue 3 years ago • 2 comments

What is the purpose of the change

To make Hive dialect support comparing boolean type with numeric/string type.

Brief change log

  • When it invovles with comparsion betwen boolean type and numeric/string type, delegate it to Hive's udf.

Verifying this change

Added a specifc sql statement in HiveDialectQueryITCase.java#testAdditionalQueries to verify this fix. Without this fix, the test will fail.

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): no
  • The public API, i.e., is any changed class annotated with @Public(Evolving): no
  • The serializers: no
  • The runtime per-record code paths (performance sensitive): no
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
  • The S3 file system connector: no

Documentation

  • Does this pull request introduce a new feature? no
  • If yes, how is the feature documented? no

luoyuxia avatar Mar 21 '22 10:03 luoyuxia

CI report:

  • 1517ca2c895caab18bbfacc20eb0ab81f62a37f7 Azure: SUCCESS
Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

flinkbot avatar Mar 21 '22 10:03 flinkbot

@flinkbot run azure

luoyuxia avatar Apr 26 '22 03:04 luoyuxia