-
Notifications
You must be signed in to change notification settings - Fork 186
Support Struct Data Query In SQL/PPL #1018
Support Struct Data Query In SQL/PPL #1018
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1018 +/- ##
==========================================
Coverage 99.87% 99.87%
- Complexity 2406 2410 +4
==========================================
Files 234 234
Lines 5526 5540 +14
Branches 357 358 +1
==========================================
+ Hits 5519 5533 +14
Misses 5 5
Partials 2 2
Continue to review full report at Codecov.
|
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.
Just minor comments, thanks for the changes!
@@ -49,4 +69,44 @@ public ExprType type() { | |||
public String toString() { | |||
return attr; | |||
} | |||
|
|||
/** | |||
* Resolve the ExprValue from {@link ExprTupleValue} using paths.* |
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.
np: is paths.*
intentional or a typo?
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.
typo. removed.
return resolve(value, paths); | ||
} | ||
|
||
private ExprValue resolve(ExprValue value, List<String> paths) { |
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.
Can this / do we need to handle project.year
is another object field? ex. project.year
.month
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.
Good point. add more cases in doc and UT.
We don't expect object filed name include "." which is not supported now.
Issue #, if available: #795
Description of changes:
To Reviewer
There are 2 ITs in legacy engine have been disabled.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.