-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[Feature][connector-elasticsearch] elasticsearch support nested type #8462
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
Conversation
|
Please resolve the conflict |
# Conflicts: # seatunnel-api/src/main/java/org/apache/seatunnel/api/table/type/ArrayType.java
…_es_nest_type # Conflicts: # seatunnel-api/src/main/java/org/apache/seatunnel/api/table/type/ArrayType.java
…e' into feature_es_nest_type
| public static final ArrayType<LocalTimeType[], LocalTimeType> OFFSET_DATE_TIME_ARRAY_TYPE = | ||
| new ArrayType(LocalTimeType[].class, LocalTimeType.OFFSET_DATE_TIME_TYPE); | ||
|
|
||
| public static final ArrayType<MapType[], MapType> MAP_ARRAY_TYPE = |
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.
I think the map array should be the same as the decimal type. We cannot define a universal static type, but it should be defined dynamically.
| builder.dataType(rowType); | ||
| break; | ||
| case EsType.NESTED: | ||
| builder.dataType(ArrayType.MAP_ARRAY_TYPE); |
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.
| builder.dataType(ArrayType.MAP_ARRAY_TYPE); | |
| builder.dataType(new ArrayType<>(Map[].class, new MapType<>(BasicType.STRING_TYPE, BasicType.STRING_TYPE))); |
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.
get
Hisoka-X
left a comment
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 if ci passes. cc @zhangshenghang
…ed type (apache#8462)" This reverts commit eaa15e4.
elasticsearch support nested type
#8454
Purpose of this pull request
Does this PR introduce any user-facing change?
How was this patch tested?
Check list
New License Guide
release-note.