Skip to content

fix(pg-catalog): ignore extra cast fields#2

Open
discord9 wants to merge 1 commit into
GreptimeTeam:masterfrom
discord9:fix/pg-catalog-cast-pattern-compat
Open

fix(pg-catalog): ignore extra cast fields#2
discord9 wants to merge 1 commit into
GreptimeTeam:masterfrom
discord9:fix/pg-catalog-cast-pattern-compat

Conversation

@discord9

Copy link
Copy Markdown

Summary

  • Ignore additional fields in Expr::Cast pattern matches inside RewriteRegclassCastToSubquery.
  • Matches the compatible pattern style already used by the published datafusion-pg-catalog 0.15.1 crate.
  • Allows GreptimeDB, which patches sqlparser with an extra array field on Expr::Cast, to compile against the fork after fix(pg-catalog): restrict unqualified pg table rewrite #1.

Tests

  • cargo test --manifest-path datafusion-pg-catalog/Cargo.toml --lib

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.

1 participant