-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Improve][transform-v2] Support dynamic types for array function #8139
Conversation
@@ -25,11 +25,10 @@ env { | |||
|
|||
source { | |||
FakeSource { | |||
plugin_output = "fake" | |||
result_table_name = "fake" |
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.
we use plugin_output
at now.
[Improve][transform-v2] Support dynamic types for array function
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.
I find current code doesn't support create an array with table field, for example:
The fake table contains:
id | name | age |
---|---|---|
1 | tom | 20 |
2 | jack | 21 |
The sql is
SELECT Array('c_1', age) as string_array from fake,
The result should be:
string_array |
---|
['c_1', '20'] |
['c_1', '21'] |
@Hisoka-X I've also considered.I'm still looking for how to get field value |
…rove_array_function # Conflicts: # seatunnel-e2e/seatunnel-transforms-v2-e2e/seatunnel-transforms-v2-e2e-part-2/src/test/resources/sql_transform/func_array.conf
@Hisoka-X PTAL |
Please resolve conflict. Thanks |
…_array_function # Conflicts: # seatunnel-e2e/seatunnel-transforms-v2-e2e/seatunnel-transforms-v2-e2e-part-2/src/test/resources/sql_transform/func_array.conf
…rove_array_function
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.
Array function support string, double, long, int types.
Currently, sql parse does not support float and boolean.
Purpose of this pull request
Does this PR introduce any user-facing change?
How was this patch tested?
Check list
New License Guide
release-note
.