Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

uncomment old LIMIT tests, make them pass #2369

Merged
merged 1 commit into from
Apr 6, 2023
Merged

uncomment old LIMIT tests, make them pass #2369

merged 1 commit into from
Apr 6, 2023

Conversation

seebs
Copy link
Contributor

@seebs seebs commented Apr 5, 2023

We forward-ported a handful of tests from the previous parser which relied on LIMIT clauses, but then we didn't support that. Now that we do, we uncomment most of these tests, and actually give them the correct data structures to compare with.

We leave two tests commented out. One was using limit 10, 5 to express a limit plus offset, and the other is using not fld = 1 as a WHERE clause, but we don't support unary-not to negate other expressions.

In the process, we discover that converting a SELECT with a LIMIT clause back to a string has a missing space, and fix that.

We forward-ported a handful of tests from the previous parser
which relied on LIMIT clauses, but then we didn't support that.
Now that we do, we uncomment most of these tests, and actually
give them the correct data structures to compare with.

We leave two tests commented out. One was using `limit 10, 5` to
express a limit plus offset, and the other is using `not fld = 1`
as a WHERE clause, but we don't support unary-not to negate
other expressions.

In the process, we discover that converting a SELECT with a
LIMIT clause back to a string has a missing space, and fix that.
@seebs seebs requested a review from lorycloutier April 5, 2023 17:31
@sonarcloud
Copy link

sonarcloud bot commented Apr 5, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
38.0% 38.0% Duplication

@seebs seebs merged commit c66d392 into master Apr 6, 2023
5 checks passed
@seebs seebs deleted the limitparser branch April 6, 2023 16:49
liuxisong pushed a commit to liuxisong/pilosa that referenced this pull request Jul 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants