-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[Enhancement](jdbc catalog) Support reading some array types of PostgreSQL #44160
Conversation
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
run buildall |
} else if (element instanceof byte[]) { | ||
sb.append(pgByteArrayToHexString((byte[]) element)); | ||
} else { | ||
String elementStr = element != null ? element.toString().trim() : "null"; |
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.
Why use trim()
?
} | ||
|
||
String innerType = fieldSchema.getDataTypeName().orElse("unknown").substring(1); | ||
String[] supportedInnerType = new String[] { |
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.
Make it is static final field
run buildall |
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
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
…reSQL (#44160) ### What problem does this PR solve? Issue Number: close #xxx Related PR: #xxx Problem Summary: This PR supports reading some PostgreSQL array types, including: ``` { "int2", "int4", "int8", "smallserial", "serial", "bigserial", "float4", "float8", "timestamp", "timestamptz", "date", "bool", "bpchar", "varchar", "text" } ``` ### Release note [feat](jdbc catalog) Support reading some array types of PostgreSQL
…reSQL (apache#44160) ### What problem does this PR solve? Issue Number: close #xxx Related PR: #xxx Problem Summary: This PR supports reading some PostgreSQL array types, including: ``` { "int2", "int4", "int8", "smallserial", "serial", "bigserial", "float4", "float8", "timestamp", "timestamptz", "date", "bool", "bpchar", "varchar", "text" } ``` ### Release note [feat](jdbc catalog) Support reading some array types of PostgreSQL
…reSQL (apache#44160) ### What problem does this PR solve? Issue Number: close #xxx Related PR: #xxx Problem Summary: This PR supports reading some PostgreSQL array types, including: ``` { "int2", "int4", "int8", "smallserial", "serial", "bigserial", "float4", "float8", "timestamp", "timestamptz", "date", "bool", "bpchar", "varchar", "text" } ``` ### Release note [feat](jdbc catalog) Support reading some array types of PostgreSQL
…reSQL (#44160) ### What problem does this PR solve? Issue Number: close #xxx Related PR: #xxx Problem Summary: This PR supports reading some PostgreSQL array types, including: ``` { "int2", "int4", "int8", "smallserial", "serial", "bigserial", "float4", "float8", "timestamp", "timestamptz", "date", "bool", "bpchar", "varchar", "text" } ``` ### Release note [feat](jdbc catalog) Support reading some array types of PostgreSQL
…pes of PostgreSQL #44160 (#45219) Cherry-picked from #44160 Co-authored-by: zy-kkk <[email protected]>
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
This PR supports reading some PostgreSQL array types, including:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)