Skip to content

Make View.sql_for case-insensitive and return None for unknown dialect#3407

Merged
kevinjqliu merged 1 commit into
apache:mainfrom
ebyhr:ebi/view-sql-for
May 24, 2026
Merged

Make View.sql_for case-insensitive and return None for unknown dialect#3407
kevinjqliu merged 1 commit into
apache:mainfrom
ebyhr:ebi/view-sql-for

Conversation

@ebyhr
Copy link
Copy Markdown
Member

@ebyhr ebyhr commented May 24, 2026

Rationale for this change

Iceberg Java compares the dialect in a case-insensitive manner, and returns null if the dialect is unknown.

https://github.com/apache/iceberg/blob/29ba0a14dc6667db0683fdfcd520639b3da77774/core/src/main/java/org/apache/iceberg/view/BaseView.java#L113-L130

Are these changes tested?

Yes

Are there any user-facing changes?

No - the method isn't released yet

@ebyhr ebyhr force-pushed the ebi/view-sql-for branch from 7a7d727 to 5c92808 Compare May 24, 2026 01:45
Copy link
Copy Markdown
Contributor

@kevinjqliu kevinjqliu left a comment

Choose a reason for hiding this comment

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

LGTM

looks like we're only dealing with SQLViewRepresentation here, so dont need to worry about the

Otherwise, the first representation would be returned.

part. yet...

@kevinjqliu kevinjqliu merged commit 1adff26 into apache:main May 24, 2026
16 checks passed
@kevinjqliu
Copy link
Copy Markdown
Contributor

thanks for the pr @ebyhr

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.

2 participants