[
https://issues.apache.org/jira/browse/FLINK-39866?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ramin Gharib updated FLINK-39866:
---------------------------------
Description:
FLINK-13547 removed support of `KEYVALUE()` method (commit cc234187794, Aug
2019): "Remove LENGTH(), JSONVALUE(), KEYVALUE(), SUBSTR() builtin functions
which are not standard."
The {{KEYVALUE}} codepath is orphaned. There is no SQL operator for it, no
codegen dispatch, and no documentation. {{StringCallGen.generateKeyValue}} has
no callers, so neither {{SqlFunctionUtils.keyValue}} overload (the
{{BinaryStringData}} form at ~line 499 and the String form at ~line 523) is
reachable from any query.
Remove {{StringCallGen.generateKeyValue}} and both
{{SqlFunctionUtils.keyValue}} overloads. {{BinaryStringDataUtil.keyValue}} is
otherwise referenced only by {{{}BinaryStringDataTest{}}}; decide whether to
keep it with its unit test or remove both together.
was:
The {{KEYVALUE}} codepath is orphaned. There is no SQL operator for it, no
codegen dispatch, and no documentation. {{StringCallGen.generateKeyValue}} has
no callers, so neither {{SqlFunctionUtils.keyValue}} overload (the
{{BinaryStringData}} form at ~line 499 and the String form at ~line 523) is
reachable from any query.
Remove {{StringCallGen.generateKeyValue}} and both
{{SqlFunctionUtils.keyValue}} overloads. {{BinaryStringDataUtil.keyValue}} is
otherwise referenced only by {{{}BinaryStringDataTest{}}}; decide whether to
keep it with its unit test or remove both together.
> Remove dead KEYVALUE code from SqlFunctionUtils and StringCallGen
> -----------------------------------------------------------------
>
> Key: FLINK-39866
> URL: https://issues.apache.org/jira/browse/FLINK-39866
> Project: Flink
> Issue Type: Improvement
> Components: Table SQL / Planner, Table SQL / Runtime
> Reporter: Ramin Gharib
> Assignee: Ramin Gharib
> Priority: Minor
>
> FLINK-13547 removed support of `KEYVALUE()` method (commit cc234187794, Aug
> 2019): "Remove LENGTH(), JSONVALUE(), KEYVALUE(), SUBSTR() builtin functions
> which are not standard."
>
> The {{KEYVALUE}} codepath is orphaned. There is no SQL operator for it, no
> codegen dispatch, and no documentation. {{StringCallGen.generateKeyValue}}
> has no callers, so neither {{SqlFunctionUtils.keyValue}} overload (the
> {{BinaryStringData}} form at ~line 499 and the String form at ~line 523) is
> reachable from any query.
>
>
>
> Remove {{StringCallGen.generateKeyValue}} and both
> {{SqlFunctionUtils.keyValue}} overloads. {{BinaryStringDataUtil.keyValue}} is
> otherwise referenced only by {{{}BinaryStringDataTest{}}}; decide whether to
> keep it with its unit test or remove both together.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)