-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Feature][Transform-V2][SQL] Support case when clause for SQL Transform plugin (#5013) #5014
Conversation
…rm plugin (apache#5013) Co-authored-by: javalover123 <[email protected]>
Please add e2e for this update. |
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.
Please add document and test case for this pr.
…rm plugin (apache#5013) Co-authored-by: javalover123 <[email protected]>
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 <[email protected]>
@javalover123 there's a bug |
besides int,tinyint smallint bigint can't nornal match |
…rm plugin (apache#5013) Co-authored-by: javalover123 <[email protected]>
…rm plugin (apache#5013) Co-authored-by: javalover123 <[email protected]>
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 <[email protected]>
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 <[email protected]>
Found a bug, |
…rm plugin (apache#5013) Co-authored-by: javalover123 <[email protected]>
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 <[email protected]>
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 <[email protected]>
Update, please check, thanks. @rewerma |
…rm plugin (apache#5013) Co-authored-by: javalover123 <[email protected]>
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
.