adriangb commented on PR #23914:
URL: https://github.com/apache/datafusion/pull/23914#issuecomment-5345293944
This may be a bug:
```
❯ datafusion-cli
DataFusion CLI v54.0.0
> SELECT map([arrow_cast(1,'UInt32')],['a']) UNION ALL SELECT
map([arrow_cast(2,'Int32')],['b']);
+----------------------------------------------------------------------------+
| map(make_array(arrow_cast(Int64(1),Utf8("UInt32"))),make_array(Utf8("a")))
|
+----------------------------------------------------------------------------+
| {1: a}
|
| {2: b}
|
+----------------------------------------------------------------------------+
2 row(s) fetched.
Elapsed 0.062 seconds.
> \q
datafusion on map-evolution-03-20835 [$?] is 📦 v54.1.0 via v24.9.0 via 🐍
v3.12.8 via 🦀 v1.97.0 on ☁️ [email protected](us-east4) took 2s
❯ cargo run -p datafusion-cli
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.51s
Running `target/debug/datafusion-cli`
DataFusion CLI v54.1.0
> SELECT map([arrow_cast(1,'UInt32')],['a']) UNION ALL SELECT
map([arrow_cast(2,'Int32')],['b']);
Optimizer rule 'simplify_expressions' failed
caused by
This feature is not implemented: Unsupported CAST from Map("entries":
non-null Struct("key": non-null UInt32, "value": Utf8), unsorted) to
Map("entries": non-null Struct("key": non-null Int64, "value": Utf8), unsorted)
```
--
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]