-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[Feature][Transform V2] Add vector dimension reduction transform #9783
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
|
waiting #9765 be merged first. |
# Conflicts: # docs/en/transform-v2/sql-functions.md # docs/zh/transform-v2/sql-functions.md # seatunnel-transforms-v2/src/main/java/org/apache/seatunnel/transform/sql/zeta/ZetaSQLFunction.java # seatunnel-transforms-v2/src/main/java/org/apache/seatunnel/transform/sql/zeta/functions/VectorFunction.java
| // -------------------------vector functions---------------------------- | ||
| public static final String VECTOR_REDUCE = "VECTOR_REDUCE"; |
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.
| // -------------------------vector functions---------------------------- | |
| public static final String VECTOR_REDUCE = "VECTOR_REDUCE"; | |
| public static final String VECTOR_REDUCE = "VECTOR_REDUCE"; |
|
|
||
| // Helper methods | ||
|
|
||
| private static Float[] extractFloatArray(Object vectorData) { |
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.
Let's reuse
Line 182 in 35f41a7
| private static Float[] convertToFloatArray(Object obj) { |
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.
Thanks @CosmosNi
Supported Reduction Methods
Purpose of this pull request
Does this PR introduce any user-facing change?
How was this patch tested?
Check list
New License Guide