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

Disallow SORT BY in SQL #5249

Merged
merged 1 commit into from
Feb 11, 2023
Merged

Disallow SORT BY in SQL #5249

merged 1 commit into from
Feb 11, 2023

Conversation

Jefffrey
Copy link
Contributor

Which issue does this PR close?

Closes #5247

Rationale for this change

What changes are included in this PR?

Are these changes tested?

No tests added. Adding tests for invalid SQL might not be desirable (considering potential surface area of invalid SQL)

Are there any user-facing changes?

@github-actions github-actions bot added the sql SQL Planner label Feb 11, 2023
@@ -59,6 +59,9 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
if select.top.is_some() {
return Err(DataFusionError::NotImplemented("TOP".to_string()));
}
if !select.sort_by.is_empty() {
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

It would be nice to add a .slt test for this case, but I also think it is ok not to

@alamb
Copy link
Contributor

alamb commented Feb 11, 2023

Here is a proposed test: #5254

@ursabot
Copy link

ursabot commented Feb 11, 2023

Benchmark runs are scheduled for baseline = 8719041 and contender = ec9119d. ec9119d is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
Conbench compare runs links:
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on ec2-t3-xlarge-us-east-2] ec2-t3-xlarge-us-east-2
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on test-mac-arm] test-mac-arm
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on ursa-i9-9960x] ursa-i9-9960x
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on ursa-thinkcentre-m75q] ursa-thinkcentre-m75q
Buildkite builds:
Supported benchmarks:
ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python, R. Runs only benchmarks with cloud = True
test-mac-arm: Supported benchmark langs: C++, Python, R
ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java

comphead pushed a commit to comphead/arrow-datafusion that referenced this pull request Feb 11, 2023
@Jefffrey Jefffrey deleted the sql_sort_by branch February 11, 2023 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sql SQL Planner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SQL allows SORT BY keyword
3 participants