Skip to content

airframe-sql: Check database name in Attribute.matched()#2809

Merged
takezoe merged 1 commit intowvlet:masterfrom
takezoe:sql-fix-attribute-matched
Mar 25, 2023
Merged

airframe-sql: Check database name in Attribute.matched()#2809
takezoe merged 1 commit intowvlet:masterfrom
takezoe:sql-fix-attribute-matched

Conversation

@takezoe
Copy link
Copy Markdown
Member

@takezoe takezoe commented Mar 25, 2023

Follow-up to #2803

Since context is necessary for this, #2808 was not necessary. 🙇‍♂️

val e = intercept[SQLError] {
analyze(
"""select default.A.name from default.A
|inner join shared.D on A.id = shared.A.id""".stripMargin
Copy link
Copy Markdown
Member Author

@takezoe takezoe Mar 25, 2023

Choose a reason for hiding this comment

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

shared.A.id can be resolved wrongly without this fix.

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 25, 2023

Codecov Report

Merging #2809 (635a863) into master (3264d00) will increase coverage by 0.01%.
The diff coverage is 97.05%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2809      +/-   ##
==========================================
+ Coverage   82.42%   82.43%   +0.01%     
==========================================
  Files         337      337              
  Lines       14240    14249       +9     
  Branches     2361     2293      -68     
==========================================
+ Hits        11737    11746       +9     
  Misses       2503     2503              
Impacted Files Coverage Δ
...in/scala/wvlet/airframe/sql/model/Expression.scala 75.87% <95.00%> (+0.34%) ⬆️
...ala/wvlet/airframe/sql/analyzer/TypeResolver.scala 93.64% <100.00%> (ø)

... and 1 file with indirect coverage changes


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 3264d00...635a863. Read the comment docs.

@takezoe takezoe force-pushed the sql-fix-attribute-matched branch from 2777827 to 635a863 Compare March 25, 2023 00:12
@takezoe takezoe requested a review from xerial March 25, 2023 00:14
Copy link
Copy Markdown
Member

@xerial xerial left a comment

Choose a reason for hiding this comment

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

Thanks. LGTM

@takezoe takezoe merged commit b5d2071 into wvlet:master Mar 25, 2023
@takezoe takezoe deleted the sql-fix-attribute-matched branch March 25, 2023 00:27
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.

2 participants