test: add parentheses test cases for formula harness#21816
Merged
Conversation
Contributor
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Apr 7, 2026
🧪 Test Selection✅ Tests that will run
⏭️ Tests skipped (no relevant file changes detected)
|
|
Your preview environment pr-21816 has been deployed with errors. |
Preview Environment🌐 URL: https://lightdash-preview-pr-21816.lightdash.okteto.dev 📋 Logs: View in GCP Console 🔧 SSH: |
1a75539 to
f7f9537
Compare
2feb0cc to
bf34763
Compare
bf34763 to
e8ddd70
Compare
f7f9537 to
1cfb2f3
Compare
1cfb2f3 to
576d15d
Compare
e8ddd70 to
16c6a5b
Compare
16c6a5b to
a2a7f67
Compare
a2a7f67 to
35a9f99
Compare
35a9f99 to
96e0fe7
Compare
Add 9 test cases covering parentheses handling: - Pure literal arithmetic: =(5 * (1 + 3)), =(((1 + 2))), =((2 + 3) * (4 - 1)) / 3 - Precedence override: =A * (B + C) - Deep nesting: =((A + B) * (A - C)) / 2 - Redundant parens: =((A)) - Logical grouping: =IF((A > 100) AND (B < 20), "yes", "no") - Function results: =(ABS(A) + ABS(B)) * 2 - Unary minus: =(-A) * (B + C) All 9 cases target ALL_WAREHOUSES to match the convention used by every other case file — verified passing on DuckDB (307/307) and Redshift (307/307). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
96e0fe7 to
f2ce493
Compare
Collaborator
|
🎉 This PR is included in version 0.2769.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Closes:
Description:
This PR adds comprehensive test coverage for parentheses handling in formula expressions. The new test suite includes:
ABS()All test cases are configured to run across DuckDB, Postgres, BigQuery, and Snowflake warehouses with expected results for a 10-row test dataset.