-
Notifications
You must be signed in to change notification settings - Fork 753
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
Add query-expr clause to handle duplicate table keys #22983
Add query-expr clause to handle duplicate table keys #22983
Conversation
Add new table impl
...-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/DataflowAnalyzer.java
Outdated
Show resolved
Hide resolved
...erina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/TypeChecker.java
Outdated
Show resolved
Hide resolved
tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/query/OnConflictClauseTest.java
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## new-table-impl #22983 +/- ##
===============================================
Coverage 14.59% 14.59%
===============================================
Files 51 51
Lines 1411 1411
Branches 219 219
===============================================
Hits 206 206
Misses 1189 1189
Partials 16 16 Continue to review full report at Codecov.
|
|
||
Person[] outputPersonList = | ||
from var person in personList | ||
on printHello() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to use a proper example. This shouldn't be allowed and type checker should only allow following [1];
join-on-condition := "on" expression "equals" expression
lastName: person.lastName, | ||
age: person.age | ||
} | ||
on conflict printHello(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as previous; better to use a proper example.
merged in : grainier#29 |
Purpose
Fixes #22641
Approach
Samples
Check List