[
https://issues.apache.org/jira/browse/FLINK-6097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
sunjincheng updated FLINK-6097:
-------------------------------
Description:
The current `ProjectionTranslator # identifyFieldReferences` method uses the`
Set` temporary save field, when the number of elements in the Set is less than
5, the Set takes the Se1, Se2, Se3, Se4 data structures. When the number of
elements is greater than or equal to 5, the Set takes HashSet # HashTrieSet and
which will cause the data to be out of order. although the out of order is also
working, but I think the order is better than out of order. So I want to
improve it,Orderly extraction field.i.e.Guaranteed the order of the extracted
field references as input order.
e.g.:
Add the following elements in turn:
{code}
A, b, c, d, e
Set (a)
Class scala.collection.immutable.Set $ Set1
Set (a, b)
Class scala.collection.immutable.Set $ Set2
Set (a, b, c)
Class scala.collection.immutable.Set $ Set3
Set (a, b, c, d)
Class scala.collection.immutable.Set $ Set4
Set (e, a, b, c, d) -> I want (a, b, c, d, e)
Class scala.collection.immutable.HashSet $ HashTrieSet
{code}
was:
The current `ProjectionTranslator # identifyFieldReferences` method uses the`
Set` temporary save field, when the number of elements in the Set is less than
5, the Set takes the Se1, Se2, Se3, Se4 data structures. When the number of
elements is greater than or equal to 5, the Set takes HashSet # HashTrieSet and
which will cause the data to be out of order. although the out of order is also
working, but I think the order is better than out of order. So I want to
improve it,Orderly extraction field.i.e.Guaranteed the order of the extracted
field references as input order.
> Guaranteed the order of the extracted field references
> ------------------------------------------------------
>
> Key: FLINK-6097
> URL: https://issues.apache.org/jira/browse/FLINK-6097
> Project: Flink
> Issue Type: Improvement
> Components: Table API & SQL
> Reporter: sunjincheng
> Assignee: sunjincheng
>
> The current `ProjectionTranslator # identifyFieldReferences` method uses the`
> Set` temporary save field, when the number of elements in the Set is less
> than 5, the Set takes the Se1, Se2, Se3, Se4 data structures. When the number
> of elements is greater than or equal to 5, the Set takes HashSet #
> HashTrieSet and which will cause the data to be out of order. although the
> out of order is also working, but I think the order is better than out of
> order. So I want to improve it,Orderly extraction field.i.e.Guaranteed the
> order of the extracted field references as input order.
> e.g.:
> Add the following elements in turn:
> {code}
> A, b, c, d, e
> Set (a)
> Class scala.collection.immutable.Set $ Set1
> Set (a, b)
> Class scala.collection.immutable.Set $ Set2
> Set (a, b, c)
> Class scala.collection.immutable.Set $ Set3
> Set (a, b, c, d)
> Class scala.collection.immutable.Set $ Set4
> Set (e, a, b, c, d) -> I want (a, b, c, d, e)
> Class scala.collection.immutable.HashSet $ HashTrieSet
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)