[Feature][Transform-V2][SQL] Support case when clause for SQL Transform plugin (#5013)#5014
[Feature][Transform-V2][SQL] Support case when clause for SQL Transform plugin (#5013)#5014javalover123 wants to merge 15 commits intoapache:devfrom
Conversation
…rm plugin (apache#5013) Co-authored-by: javalover123 <javalover123@foxmail.com>
|
Please add e2e for this update. |
EricJoy2048
left a comment
There was a problem hiding this comment.
Please add document and test case for this pr.
…rm plugin (apache#5013) Co-authored-by: javalover123 <javalover123@foxmail.com>
|
OK, added. apache/seatunnel-website#253 |
I am sorry, I didn't express myself clearly. You need update the document |
|
Hi, @rewerma , Can you help to review this pr? |
…rm plugin (apache#5013) Co-authored-by: javalover123 <javalover123@foxmail.com>
|
@javalover123 there's a bug |
|
besides int,tinyint smallint bigint can't nornal match |
…rm plugin (apache#5013) Co-authored-by: javalover123 <javalover123@foxmail.com>
…rm plugin (apache#5013) Co-authored-by: javalover123 <javalover123@foxmail.com>
another bug,my job config : exception: |
|
Thanks, can you give some help/advice? @wu-a-ge |
Thanks for your contribution. My current workaround is to directly adjust the toExternal method in the AbstractJdbcRowConverter class. All casts are parsed using the parse method that wraps the type, but I personally believe that it is still necessary to determine the data type to solve the problem of different types of conversions |
…rm plugin (apache#5013) Co-authored-by: javalover123 <javalover123@foxmail.com>
|
Update, please check, thanks. @wu-a-ge case TINYINT:
statement.setByte(
statementIndex, ((Number) row.getField(fieldIndex)).byteValue());
break;
case SMALLINT:
statement.setShort(
statementIndex, ((Number) row.getField(fieldIndex)).shortValue());
break;
case INT:
statement.setInt(
statementIndex, ((Number) row.getField(fieldIndex)).intValue());
break;
case BIGINT:
statement.setLong(
statementIndex, ((Number) row.getField(fieldIndex)).longValue());
break;
case FLOAT:
statement.setFloat(
statementIndex, ((Number) row.getField(fieldIndex)).floatValue());
break;
case DOUBLE:
statement.setDouble(
statementIndex, ((Number) row.getField(fieldIndex)).doubleValue()); |
…rm plugin (apache#5013) Co-authored-by: javalover123 <javalover123@foxmail.com>
Found a bug, |
…rm plugin (apache#5013) Co-authored-by: javalover123 <javalover123@foxmail.com>
|
Update, please check, thanks. @wu-a-ge |
Hello,One scenario is not supported case when is a complex logical expression |
…rm plugin (apache#5013) Co-authored-by: javalover123 <javalover123@foxmail.com>
|
Update, please check, thanks. @wu-a-ge |
|
@rewerma PTAL. |
...nel-transforms-v2/src/main/java/org/apache/seatunnel/transform/sql/zeta/ZetaSQLFunction.java
Outdated
Show resolved
Hide resolved
seatunnel-transforms-v2/src/main/java/org/apache/seatunnel/transform/sql/zeta/ZetaSQLType.java
Show resolved
Hide resolved
…rm plugin (apache#5013) Co-authored-by: javalover123 <javalover123@foxmail.com>
|
Update, please check, thanks. @rewerma |
…rm plugin (apache#5013) Co-authored-by: javalover123 <javalover123@foxmail.com>
|
It seems that different data types may have Bug that cannot be covered by test cases. |
|
I don't know what test cases are missing, personal advice,I think more type tests can be added to make sure it passes,For example, string,int,double, |
|
@EricJoy2048 @zhilinli123 I may add this week |
Hi, Are there any updates on this PR? |
|
Sorry, I've modified one test, but don't have any more time to work on this recently. |
|
I don't see any movement in this pr, can you assign it to me temporarily and I will find time to finish it in the near future |
@zhilinli123 Sorry, I can't see assign button, @EricJoy2048 please try. |
|
Ok, I will close this pr. |







Purpose of this pull request
Check list
New License Guide
release-note.