keltia commented on issue #18770:
URL: https://github.com/apache/datafusion/issues/18770#issuecomment-3570636931
In retrospect, I'm not sure about reading csv has the same behaviour, my bad.
As for json, I understand order of keys ought not to matter, but I have a
problem with A -> B -> C leading to C != A.
polars:
```text
❯ polars
Polars CLI version 0.9.0
Type .help for help.
〉select * from read_json('foo.json');
┌─────┬─────┬─────────┬─────┐
│ zzz ┆ bbb ┆ column1 ┆ abc │
│ --- ┆ --- ┆ --- ┆ --- │
│ i64 ┆ i64 ┆ i64 ┆ i64 │
╞═════╪═════╪═════════╪═════╡
│ 1 ┆ 2 ┆ 3 ┆ 4 │
│ 1 ┆ 2 ┆ 3 ┆ 4 │
│ 1 ┆ 2 ┆ 3 ┆ 4 │
└─────┴─────┴─────────┴─────┘
```
Even if keys are stored into a has as one would expect, hashes keep
insertion ordering so I did not expect the sorting to happen.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]