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

Query: Remove implicit convert nodes in query to avoid unnecessary cast in generated SQL #15954

Merged
merged 1 commit into from
Jun 5, 2019

Conversation

smitpatel
Copy link
Contributor

Enable BuiltInDataTypeTests

  • Preserve convert nodes around parameters/constants in parameter extracting.
  • While translating to Sql, remove implicit convert nodes. Implicit convert nodes appear only for binary expressions since equality operators are not defined for all types
  • Apply explicit cast in SQL only when converted type is mapped.
  • Convert int value to enum value before printing literal (how old pipeline did it)

Resolves #14159
Resolves #15330
Resolves #15948

Supersedes type inference changes in #15820

…st in generated SQL

Enable BuiltInDataTypeTests
- Preserve convert nodes around parameters/constants in parameter extracting.
- While translating to Sql, remove implicit convert nodes. Implicit convert nodes appear only for binary expressions since equality operators are not defined for all types
- Apply explicit cast in SQL only when converted type is mapped.
- Convert int value to enum value before printing literal (how old pipeline did it)

Resolves #14159
Resolves #15330
Resolves #15948
@smitpatel smitpatel merged commit 7f7130a into master Jun 5, 2019
@ghost ghost deleted the smit/typeinference branch June 5, 2019 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants