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

SQL: allow identifier with placeholder such as '${a_1}' #3172

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

masatake
Copy link
Member

@masatake masatake commented Oct 2, 2021

Close #3169.

Some? dialects support shell-like variable substitution.
HiveQL is one of such dialects.
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+VariableSubstitution

With this change, the SQL parser accepts '${var}' as a part of an identifier.

TODO: var itself can be extracted as a reference tag.
Signed-off-by: Masatake YAMATO yamato@redhat.com

@masatake masatake force-pushed the sql--var-subst branch 3 times, most recently from 1c961c6 to 1c9086b Compare October 3, 2021 22:04
Close universal-ctags#3169.

Some(?) dialects support shell-like variable substitution.
HiveQL is one of such dialects.
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+VariableSubstitution

With this change, the SQL parser accepts '${var}' as a part of an identifier.

TODO: `var` itself can be extracted as a reference tag.
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
@codecov
Copy link

codecov bot commented Oct 4, 2021

Codecov Report

Merging #3172 (2a2e24c) into master (c31d572) will increase coverage by 0.00%.
The diff coverage is 90.24%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3172   +/-   ##
=======================================
  Coverage   84.90%   84.90%           
=======================================
  Files         200      200           
  Lines       47874    47908   +34     
=======================================
+ Hits        40648    40678   +30     
- Misses       7226     7230    +4     
Impacted Files Coverage Δ
parsers/sql.c 73.30% <90.24%> (+0.49%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c31d572...2a2e24c. Read the comment docs.

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

Successfully merging this pull request may close these issues.

SQL: placeholder in identifier
1 participant