Skip to content

Fix bad code in transforming query for external database.#7252

Merged
alexey-milovidov merged 3 commits intomasterfrom
fix-bad-code-in-transform-query-for-external-database
Oct 10, 2019
Merged

Fix bad code in transforming query for external database.#7252
alexey-milovidov merged 3 commits intomasterfrom
fix-bad-code-in-transform-query-for-external-database

Conversation

@alexey-milovidov
Copy link
Copy Markdown
Member

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

For changelog. Remove if this is non-significant change.

Category (leave one):

  • Bug Fix

Short description (up to few sentences):
Fixed constant expressions folding for external database engines (MySQL, ODBC, JDBC). In previous versions it wasn't working for multiple constant expressions and was not working at all for Date, DateTime and UUID. This fixes #7245

@alexey-milovidov alexey-milovidov added pr-bugfix Pull request with bugfix, not backported by default comp-foreign-db Connectivity to external databases (ODBC/JDBC, MySQL, PostgreSQL, etc.). labels Oct 9, 2019
@alexey-milovidov alexey-milovidov merged commit 9c1c596 into master Oct 10, 2019
class ReplacingConstantExpressionsMatcher
{
public:
using Data = Block;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting hack. I've never thought about assigning Data to a real class.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't consider it as hack. I have just read ActionsVisitor and have thought that it's the intended way of usage.

akuzm pushed a commit that referenced this pull request Oct 29, 2019
…ery-for-external-database

Fix bad code in transforming query for external database.

(cherry picked from commit 9c1c596)
CurtizJ pushed a commit that referenced this pull request Nov 15, 2019
…ery-for-external-database

Fix bad code in transforming query for external database.

(cherry picked from commit 9c1c596)
@CurtizJ CurtizJ added the v19.14 label Nov 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-foreign-db Connectivity to external databases (ODBC/JDBC, MySQL, PostgreSQL, etc.). pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sql error 1241 operand should contain 1 column

4 participants