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

Transform isNull/isNotNull to IS NULL/IS NOT NULL (for external dbs) #29446

Merged
merged 1 commit into from Sep 28, 2021

Conversation

azat
Copy link
Collaborator

@azat azat commented Sep 27, 2021

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Transform isNull/isNotNull to IS NULL/IS NOT NULL (for external dbs, i.e. MySQL)

Detailed description / Documentation draft:
This is required to support queries (like foo IS NULL/foo IS NOT NULL) to external databases (i.e. MySQL).

This patch had been submitted separately, due to:

  • avoid mixing patches
  • run CI (and update tests references)

NOTE: that it may introduce backward compatibility, but none of users should rely on this anyway (hopefully)

@robot-clickhouse robot-clickhouse added the pr-improvement Pull request with some product improvements label Sep 27, 2021
@alexey-milovidov alexey-milovidov self-assigned this Sep 27, 2021
This is required to support queries (like `foo IS NULL`) to external
databases (i.e. MySQL).

This patch had been submitted separately, due to:
- avoid mixing patches
- run CI (and update tests references)
@azat azat changed the title RFC: Transform isNull/isNotNull to IS NULL/IS NOT NULL (for external dbs) Transform isNull/isNotNull to IS NULL/IS NOT NULL (for external dbs) Sep 27, 2021
@azat
Copy link
Collaborator Author

azat commented Sep 28, 2021

@CLAassistant
Copy link

CLAassistant commented Sep 28, 2021

CLA assistant check
All committers have signed the CLA.

@azat
Copy link
Collaborator Author

azat commented Sep 28, 2021

Stress test (thread) — Hung check failed

Looks like should be fixed by #29494

@alexey-milovidov alexey-milovidov merged commit d46dfd0 into ClickHouse:master Sep 28, 2021
@azat azat deleted the isNull-isNotNull-format branch September 28, 2021 22:12
azat added a commit to azat/ClickHouse that referenced this pull request Oct 21, 2021
After ClickHouse#29446 the following query was "broken":

    select isNotNull(1)+isNotNull(2) from remote('127.2', system.one)

This was also a problem for queries to external storages (i.e. mysql),
since it also uses query rewrite, like non-local distributed queries.

Fixes: ClickHouse#29446
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-improvement Pull request with some product improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants