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

REBALANCE hint produces unexpected spacing error in spark SQL #5869

Open
2 of 3 tasks
barunpuri opened this issue May 13, 2024 · 0 comments
Open
2 of 3 tasks

REBALANCE hint produces unexpected spacing error in spark SQL #5869

barunpuri opened this issue May 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@barunpuri
Copy link
Contributor

Search before asking

  • I searched the issues and found no similar issues.

What Happened

REBALANCE hint produces unexpected spacing error in spark SQL
other hints (with brackets) pass as expected

Expected Behaviour

Pass without error

Observed Behaviour

linting failed with error

== [stdin] FAIL
L:   2 | P:  21 | LT01 | Unexpected whitespace before end hint '*/'.
                       | [layout.spacing]
All Finished 📜 🎉!

How to reproduce

echo 'INSERT OVERWRITE TABLE aaa.bbb PARTITION (a)\nSELECT /*+ REBALANCE */ 1 AS a FROM xxx.yyy' | sqlfluff lint --dialect sparksql -

Dialect

sparksql

Version

3.0.6

Configuration

default settings

Are you willing to work on and submit a PR to address the issue?

  • Yes I am willing to submit a PR!

Code of Conduct

@barunpuri barunpuri added the bug Something isn't working label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant