[
https://issues.apache.org/jira/browse/HUDI-6567?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Danny Chen closed HUDI-6567.
----------------------------
Resolution: Fixed
Fixed via master branch: 34afa6784eab08fa994f7d58f0c37f197d47a3f1
> ExpressionEvaluators numeric types conversion support
> -----------------------------------------------------
>
> Key: HUDI-6567
> URL: https://issues.apache.org/jira/browse/HUDI-6567
> Project: Apache Hudi
> Issue Type: Improvement
> Components: flink, metadata
> Reporter: Mark Bukhner
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.14.0
>
> Attachments: types_conversion.png
>
>
> Example:
> {code:java}
> table tbl (a: bigint){code}
>
> data skipping work only if both types are the same. If we use
> {code:java}
> select * from tbl where a > 10{code}
> data skipping will not work, we have to use explicit cast:
> {code:java}
> select * from tbl where a > cast(10 as bigint){code}
>
> Problem may be solved converting all numeric types to BigDecimal (without
> information lose):
> !types_conversion.png!
> by 20 lines of source code, without necessity of adding new rule or filter in
> flink engine (which can support more complex types conversion, such as string
> -> integer, but i think there is no need in such conversions)
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)