[jira] [Created] (FLINK-16352) Use LinkedHashMap for deterministic iterations

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-16352) Use LinkedHashMap for deterministic iterations

Shang Yuanchun (Jira)
testfixer0 created FLINK-16352:
----------------------------------

             Summary: Use LinkedHashMap for deterministic iterations
                 Key: FLINK-16352
                 URL: https://issues.apache.org/jira/browse/FLINK-16352
             Project: Flink
          Issue Type: Bug
          Components: Table SQL / Client
    Affects Versions: 1.10.0
            Reporter: testfixer0


The test `testValueLiteralString` in `ExpressionTest` may fail due if `HashMap` iterates in a different order. The final variable `map` is a `HashMap`. However, `HashMap` does not guarantee any specific order of entries. Thus, the test can fail due to a different iteration order.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)