Skip to content

airframe-sql: Fixes #2791 Produce valid SQL expressions from FunctionCall, ComparisonOperators#2801

Merged
xerial merged 7 commits intomasterfrom
sql-expr-func
Mar 22, 2023
Merged

airframe-sql: Fixes #2791 Produce valid SQL expressions from FunctionCall, ComparisonOperators#2801
xerial merged 7 commits intomasterfrom
sql-expr-func

Conversation

@xerial
Copy link
Copy Markdown
Member

@xerial xerial commented Mar 21, 2023

No description provided.

@github-actions github-actions Bot added the bug label Mar 21, 2023
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 21, 2023

Codecov Report

Merging #2801 (7295e9e) into master (30afcf9) will increase coverage by 0.12%.
The diff coverage is 90.74%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2801      +/-   ##
==========================================
+ Coverage   82.30%   82.43%   +0.12%     
==========================================
  Files         337      337              
  Lines       14190    14241      +51     
  Branches     2321     2315       -6     
==========================================
+ Hits        11679    11739      +60     
+ Misses       2511     2502       -9     
Impacted Files Coverage Δ
...a/wvlet/airframe/parquet/ParquetQueryPlanner.scala 89.36% <ø> (ø)
...scala/wvlet/airframe/sql/parser/SQLGenerator.scala 91.21% <66.66%> (-0.29%) ⬇️
...in/scala/wvlet/airframe/sql/parser/SQLParser.scala 65.38% <70.00%> (+2.88%) ⬆️
...in/scala/wvlet/airframe/sql/model/Expression.scala 75.59% <97.14%> (+2.83%) ⬆️
...ala/wvlet/airframe/sql/parser/SQLInterpreter.scala 93.15% <100.00%> (+3.27%) ⬆️

Continue to review full report in Codecov by Sentry.

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

@xerial xerial changed the title airframe-sql: Fixes #2791 FunctionCall.sqlExpr produces valid SQL expressions airframe-sql: Fixes #2791 Produces valid SQL expressions in FunctionCall Mar 22, 2023
@xerial xerial changed the title airframe-sql: Fixes #2791 Produces valid SQL expressions in FunctionCall airframe-sql: Fixes #2791 Produce valid SQL expressions in FunctionCall Mar 22, 2023
case b: BetweenContext =>
Between(e, expression(b.lower), expression(b.upper), getLocation(b))
if (b.NOT() != null) {
NotBetween(e, expression(b.lower), expression(b.upper), getLocation(b))
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOT BETWEEN handling was missing

@xerial xerial changed the title airframe-sql: Fixes #2791 Produce valid SQL expressions in FunctionCall airframe-sql: Fixes #2791 Produce valid SQL expressions from FunctionCall, ComparisonOperators Mar 22, 2023
@xerial xerial merged commit d4c2958 into master Mar 22, 2023
@xerial xerial deleted the sql-expr-func branch March 22, 2023 05:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant