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

Case-sentitive identifiers within object navigation expressions are lowercased #561

Closed
albertsgrc opened this issue Feb 8, 2024 · 2 comments

Comments

@albertsgrc
Copy link

albertsgrc commented Feb 8, 2024

Describe the bug
sqlfmt changes case of identifiers within object navigation expressions (syntactic sugar for snowflake's get_path)

To Reproduce

select {'key':2, 'Key':3}:Key

Expected behavior
SQL remains unchanged. Lowercasing :Key will cause the query to return 2 instead of 3

Actual behavior

select {'key':2, 'Key':3}:key

Additional context
Reproducible from https://sqlfmt.com/

Syntax: Snowflake

@albertsgrc
Copy link
Author

There is a workaround, wrapping the identifier within quotes:

select {'key':2, 'Key':3}:"Key"

@tconbeer
Copy link
Owner

tconbeer commented Feb 8, 2024

duplicates #269

@tconbeer tconbeer closed this as not planned Won't fix, can't repro, duplicate, stale Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants