[
https://issues.apache.org/jira/browse/CALCITE-4098?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Danny Chen resolved CALCITE-4098.
---------------------------------
Fix Version/s: 1.24.0
Resolution: Fixed
Fixed in
[32fc1f4|https://github.com/apache/calcite/commit/32fc1f41e38e72cabf67e4defadeccc7a5abdf6e],
thanks for the PR, [~Aron.tao] !
> Remove redundant code in "RelJson.toJson(RelDistribution)"
> ----------------------------------------------------------
>
> Key: CALCITE-4098
> URL: https://issues.apache.org/jira/browse/CALCITE-4098
> Project: Calcite
> Issue Type: Improvement
> Components: core
> Reporter: Jiatao Tao
> Assignee: Jiatao Tao
> Priority: Minor
> Fix For: 1.24.0
>
> Time Spent: 1h 50m
> Remaining Estimate: 0h
>
> RelDistribution#getKeys is annotated as nonnull, and must return
> "List<Integer>", so this code is unnecessary.
>
> {code:java}
> List<Object> keys = new ArrayList<>(relDistribution.getKeys().size());
> for (Integer key : relDistribution.getKeys()) {
> keys.add(toJson(key));
> }
>
> {code}
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)