-
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][Connector-V2][Jdbc] support gbase 8a #3026
Conversation
please run CI @EricJoy2048 |
gbase8a must use sql date
|
please fix ci error |
Hold on,i'm fixing it.
Best Regards
liugddx
***@***.***
…------------------ Original ------------------
From: ***@***.***>;
Date: 2022年10月12日(星期三) 下午2:34
To: ***@***.***>;
Cc: ***@***.***>; ***@***.***>;
Subject: Re: [apache/incubator-seatunnel] [Feature][Connector-V2][Jdbc] support gbase 8a (PR #3026)
please fix ci error
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
|
||
@Override | ||
public SeaTunnelRow toInternal(ResultSet rs, ResultSetMetaData metaData, SeaTunnelRowType typeInfo) throws SQLException { | ||
List<Object> fields = new ArrayList<>(); |
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.
gave a init length is better.
|
||
for (int i = 1; i <= seaTunnelDataTypes.length; i++) { | ||
Object seatunnelField; | ||
SeaTunnelDataType<?> seaTunnelDataType = seaTunnelDataTypes[i - 1]; |
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.
use seaTunnelDataType.getSqlType() is better.
case ORACLE_NUMBER: | ||
if (precision < 38) { | ||
return new DecimalType(precision, scale); | ||
} |
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 you add a comment about why delete this?
@EricJoy2048 @Hisoka-X @hailin0 please code review,thanks |
rerun CI and help to review thanks. @CalvinKirs |
...he/seatunnel/connectors/seatunnel/jdbc/internal/dialect/gbase8a/Gbase8aJdbcRowConverter.java
Outdated
Show resolved
Hide resolved
…e/seatunnel/connectors/seatunnel/jdbc/internal/dialect/gbase8a/Gbase8aJdbcRowConverter.java Co-authored-by: Eric <gaojun2048@gmail.com>
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.
LGTM @CalvinKirs @ic4y PTAL
import java.sql.Timestamp; | ||
import java.util.Objects; | ||
|
||
public class SqlDateType<T> implements SeaTunnelDataType<T> { |
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.
@ashulin PTAL about add new SqlDateType
.
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.
IMO, this is not necessary.
The same effect can be achieved using LocalTimeType
.
Multiple time types can confuse developers/users
Why we need add |
@ashulin @Hisoka-X Gbase does not support |
Gbase8a test is ok,however, the sink does not support |
The CI not passed, please check |
Done. |
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.
LGTM
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.
+1
* gbase 8a connector * add gbase8a e2e test
* gbase 8a connector * add gbase8a e2e test
close #3016
Purpose of this pull request
gbase 8a source connector.
Check list
New License Guide