Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CALCITE-1178] Allow SqlBetweenOperator to compare DATE and TIMESTAMP #1470

Merged
merged 1 commit into from
Sep 23, 2019

Conversation

danny0405
Copy link
Contributor

  • Add implicit type coercion rules for BETWEEN operator and add test
    cases
  • For comparison of NUMERIC and CHARACTER, we coerce the CHARACTER to
    NUMERIC type which is breaking change.(Before this patch, CHARACTER would
    be coerced to INT during sql-to-rel conversion)
  • For "DATETIME and CHARACTER" comparison and equality, add coercion rules during sql
    node validation, before this patch, the coercion happens during sql-to-rel conversion
  • Some code refactoring for TypeCoercionConverterTest

* Add implicit type coercion rules for BETWEEN operator and add test
cases
* For comparison of NUMERIC and CHARACTER, we coerce the CHARACTER to
NUMERIC type which is breaking change.(Before this patch, CHARACTER would
be coerced to INT during sql-to-rel conversion)
* For "DATETIME and CHARACTER" comparison and equality, add coercion rules during sql
node validation, before this patch, the coercion happens during sql-to-rel conversion
* Some code refactoring for TypeCoercionConverterTest
@danny0405 danny0405 merged commit 64068d6 into apache:master Sep 23, 2019
@danny0405 danny0405 deleted the CALCITE-1178 branch September 25, 2019 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant