You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "jayzhan211 (via GitHub)" <gi...@apache.org> on 2024/06/21 14:23:37 UTC
[I] Support filter on unnest column [datafusion]
jayzhan211 opened a new issue, #10989:
URL: https://github.com/apache/datafusion/issues/10989
### Is your feature request related to a problem or challenge?
```
# test unnest with filter
statement ok
create table t (a int[]) as values ([1,2,3]), ([4,5,6]);
query error DataFusion error: External error: Arrow error: Invalid argument error: Invalid comparison operation: List\(Field \{ name: "item", data_type: Int32, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: \{\} \}\) > Int32
select ua from (select unnest(a) as ua from t) where ua > 3;
```
The expected result is
```
query
select ua from (select unnest(a) as ua from t) where ua > 3;
----
4
5
6
```
### Describe the solution you'd like
_No response_
### Describe alternatives you've considered
_No response_
### Additional context
_No response_
--
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: github-unsubscribe@datafusion.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] Support filter on unnest column [datafusion]
Posted by "jonahgao (via GitHub)" <gi...@apache.org>.
jonahgao commented on issue #10989:
URL: https://github.com/apache/datafusion/issues/10989#issuecomment-2177374339
It seems to be supported on the [main](https://github.com/apache/datafusion/commit/5cb1917f8c911184b030599f0a3cb86e2d602031) branch.
```sh
DataFusion CLI v39.0.0
> create table t (a int[]) as values ([1,2,3]), ([4,5,6]);
0 row(s) fetched.
Elapsed 0.030 seconds.
> select ua from (select unnest(a) as ua from t) where ua > 3;
+----+
| ua |
+----+
| 4 |
| 5 |
| 6 |
+----+
3 row(s) fetched.
Elapsed 0.009 seconds.
```
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org