Skip to content
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] add xugudb connector #6561

Merged
merged 14 commits into from
Apr 2, 2024

Conversation

L-Gryps
Copy link
Contributor

@L-Gryps L-Gryps commented Mar 22, 2024

Purpose of this pull request

Does this PR introduce any user-facing change?

How was this patch tested?

Check list

@L-Gryps L-Gryps changed the title Feat xugudb connector [feature][connector-v2] add xugudb connector Mar 25, 2024
Copy link
Member

@TyrantLucifer TyrantLucifer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution. Please add CI trigger in https://github.com/apache/seatunnel/blob/dev/.github/workflows/backend.yml#L985 and rerun CI.

case XUGU_VARCHAR:
case XUGU_VARCHAR2:
builder.dataType(BasicType.STRING_TYPE);
builder.columnLength(typeDefine.getLength());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this length is char length or byte length ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is char length

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because multi-byte characters are handled differently in various databases, the byte length is uniformly used in seatunnel

use TypeDefineUtils.charTo4ByteLength(your length)

Copy link
Contributor

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have handled it in XuguTypeMapper

@@ -0,0 +1,48 @@
#
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename jdbc_xugu_source_and_upset_sink.conf to jdbc_xugu_source_and_upsert_sink.conf

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@hailin0 hailin0 added this to the 2.3.5 milestone Mar 29, 2024

@Slf4j
@AutoService(TypeConverter.class)
public class XuguTypeConverter implements TypeConverter<BasicTypeDefine> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


@Slf4j
@AutoService(TypeConverter.class)
public class XuguTypeConverter implements TypeConverter<BasicTypeDefine> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

null,
null,
null,
null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bool field is null?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes,The Boolean data type has three states: true, false, and unknown. Field values can be true, false, null

Copy link
Contributor

@hailin0 hailin0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@EricJoy2048 EricJoy2048 merged commit 80f392a into apache:dev Apr 2, 2024
7 checks passed
@L-Gryps L-Gryps deleted the feat-xugudb-connector branch April 2, 2024 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants