Replies: 3 comments 5 replies
-
What is the type of the column reported? Maybe describe my_table Maybe it is being treated as a |
Beta Was this translation helpful? Give feedback.
0 replies
-
The schema of the table is as follows, I don't think it should be treated as MAP {
"inner" : {
"Schema" : {
"fields" : [
{
"name" : "A",
"data_type" : "Utf8",
"nullable" : false,
"dict_id" : 0,
"dict_is_ordered" : false,
"metadata" : {}
},
{
"name": "myobjects",
"data_type": {
"List": {
"field": {
"name": "element",
"data_type": {
"Struct": [
{
"name": "name",
"data_type": "Utf8",
"nullable": false,
"dict_id": 0,
"dict_is_ordered": false,
"metadata": {}
},
{
"name": "value",
"data_type": "Utf8",
"nullable": false,
"dict_id": 0,
"dict_is_ordered": false,
"metadata": {}
}
}
}
},
"nullable": false,
"dict_id": 0,
"dict_is_ordered": false,
"metadata": {}
}
],
"metadata": {}
},
"field_qualifiers": [
{
"table": "my_table"
},
{
"table": "my_table"
},
{
"table": "my_table"
},
{
"table": "my_table"
},
{
"table": "my_table"
}
],
"functional_dependencies": {
"deps": []
}
}
}
|
Beta Was this translation helpful? Give feedback.
2 replies
-
I agree this sounds like a bug / limitation to me What I suggest is filing a ticket with a self-contained reproducer (either as Rust code or preferrably as a The datafusion CLI is documented here: |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I have a parquet file with following example data:
When I am trying to access the subfield "Name" none of the following syntax is working for me using latest datafusion package (40.*) and I am getting error as "Nested identifiers not yet supported".
Examples I tried:
SELECT myobjects.element.name FROM my_table;
SELECT myobjects.name FROM my_table;
SELECT myobjects.item.name FROM my_table;
SELECT myobjects["name"] FROM my_table;
From DF I tried
col("myobjects.name")
col("myobjects.item.name")
col("myobjects.element.name");
None of them worked for me, Can someone please help me understand what am I doing wrong ?
Here is the sample self-contained rust code to repro
Beta Was this translation helpful? Give feedback.
All reactions