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

Dont use EXPLAIN in nullability check for QuestDB #3640

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Suficio
Copy link
Contributor

@Suficio Suficio commented Dec 16, 2024

QuestDB has the same limitation as Materialize and CockroachDB when parsing EXPLAIN statements.

This PR applies the same fix as in #1386 and #2282.

This change makes the new 8.2.0 release of QuestDB and sqlx minimally compatible.

Comment on lines 490 to 494
let parameter_statuses = &self.inner.stream.parameter_statuses;
let is_cockroachdb = parameter_statuses.contains_key("crdb_version");
let is_materialize = parameter_statuses.contains_key("mz_version");
let is_questdb = parameter_statuses.contains_key("questdb_version");
if !is_cockroachdb && !is_materialize && !is_questdb {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Might as well lift this to an is_explain_available() method which would make this easier to find/update in the future.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants