Skip to content

Conversation

@alamb
Copy link
Contributor

@alamb alamb commented Mar 31, 2023

Which issue does this PR close?

Closes #5802

Rationale for this change

I want to be able to INTERVAL constants in VALUES clauses

What changes are included in this PR?

Avoid special casing VALUES in sql planner (I think the existing special case is a function of DataFusion limitations when it was first implemented)

So I fixed a limitation by deleting code :bowtie:

Are these changes tested?

Yes, new tests are added

Are there any user-facing changes?

fewer errors

@github-actions github-actions bot added core Core DataFusion crate sql SQL Planner sqllogictest SQL Logic Tests (.slt) labels Mar 31, 2023
@alamb alamb marked this pull request as ready for review March 31, 2023 19:07
.into_iter()
.map(|row| {
row.into_iter()
.map(|v| match v {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know why this was special cased -- it works just fine with general Exprs

@alamb
Copy link
Contributor Author

alamb commented Apr 6, 2023

@Jefffrey or @comphead I wonder if you might have time to review this PR?

Copy link
Contributor

@Jefffrey Jefffrey left a comment

Choose a reason for hiding this comment

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

Seems good to me 👍

@alamb
Copy link
Contributor Author

alamb commented Apr 7, 2023

Thank you for the review @Jefffrey

@alamb alamb merged commit f00ef9d into apache:main Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core DataFusion crate sql SQL Planner sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

interval .. syntax does not work in SQL VALUES clause

2 participants