ggjh-159 opened a new pull request, #12267:
URL: https://github.com/apache/gluten/pull/12267
## What changes are proposed in this pull request?
Replace `ConstantTypedExpr.create(Variant)` with 3-arg constructor `new
ConstantTypedExpr(type, value, null)` in
`RexNodeConverter.toTypedExpr(Set<Range>, RelDataType)`.
The 1-arg `create(Variant)` method internally calls
`StaticJniApi.variantInferType()` via JNI to infer the type, but the planner
runs in the SQL client process where the native library is not loaded, causing
`UnsatisfiedLinkError`. Since the type information is already available from
`relDataType`, we pass it directly to the constructor instead of relying on JNI
inference.
## How was this patch tested?
Tested by running Nexmark Q21 on Gluten-Flink, which contains `WHERE ... OR
lower(channel) IN ('apple', 'google', 'facebook', 'baidu')`. Previously the
query crashed at submission with `UnsatisfiedLinkError`. After this fix, the
query submits and runs successfully.
## Was this patch authored or co-authored using generative AI tooling?
<!--
If generative AI tooling has been used in the process of authoring this
patch, please include the
phrase: 'Generated-by: ' followed by the name of the tool and its version.
If no, write 'No'.
Please refer to the [ASF Generative Tooling
Guidance](https://www.apache.org/legal/generative-tooling.html) for details.
-->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]