Skip to content

fix(spark): parse_url returns null for bad urls when ansi mode is off - #27158

Open
TechWizard9999 wants to merge 1 commit into
apache:mainfrom
TechWizard9999:fix/parse-url-ansi-null
Open

TechWizard9999 wants to merge 1 commit into
apache:mainfrom
TechWizard9999:fix/parse-url-ansi-null

Conversation

@TechWizard9999

Copy link
Copy Markdown

Which issue does this PR close?

Rationale for this change

Explained in the issue.

What changes are included in this PR?

Return null for a bad url when ansi mode is off. keep the error when ansi mode is on.

What is the testing strategy for this PR?

Added slt tests for both modes.

Are there any user-facing changes?

Yes, bad urls give null instead of an error when ansi mode is off.

@github-actions github-actions Bot added sqllogictest SQL Logic Tests (.slt) spark Changes to datafusion-spark crate labels Nov 6, 2026
@TechWizard9999

Copy link
Copy Markdown
Author

@kosiew @comphead , PLease review this pr
Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

spark Changes to datafusion-spark crate sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] parse_url raises on a malformed URL when ANSI mode is off, Spark returns NULL

1 participant