ongchi commented on PR #562:
URL:
https://github.com/apache/arrow-datafusion-python/pull/562#issuecomment-1937380752
> ```
> DataFrame()
>
+----------------------------------------------------------------------------------------------------------------------------+
> |
flatten(make_array(make_array(Float64(1),Float64(2),Float64(3)),make_array(Float64(4),Float64(5)),make_array(Float64(6))))
|
>
+----------------------------------------------------------------------------------------------------------------------------+
> | [1.0, 2.0, 3.0, 4.0, 5.0, 6.0]
|
>
+----------------------------------------------------------------------------------------------------------------------------+
> ```
Hi @mobley-trent
The `df` created in the test case maybe is a bit misleading, but it would be
like this:
```
❯ SELECT column1 AS arr FROM (VALUES ([1.0, 2.0, 3.0, 3.0]), ([4.0, 5.0,
3.0]), ([6.0]));
+----------------------+
| arr |
+----------------------+
| [1.0, 2.0, 3.0, 3.0] |
| [4.0, 5.0, 3.0] |
| [6.0] |
+----------------------+
```
It's contains of multiple rows of one-dimensional array values. For the
`flatten` function, the existing `df` should be modified or a new dataframe
should be created for this test case.
--
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]