You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> create or replace view foo asselect {'field1': { 'subfield1': 'foo', subfield2: 'bar', subfield3: [10,20,30,40]}} as"the_column";
0 row(s) fetched.
Elapsed 0.001 seconds.
>select*from foo;
+-------------------------------------------------------------------------+
| the_column |
+-------------------------------------------------------------------------+
| {field1: {subfield1: foo, subfield2: bar, subfield3: [10, 20, 30, 40]}} |
+-------------------------------------------------------------------------+1 row(s) fetched.
Elapsed 0.002 seconds.
>selectthe_column.field1.subfield3[2] from foo;
Internal error: Nested identifiers not yet supported for column foo.the_column.
This was likely caused by a bug in DataFusion's code and we would welcome that you file an bug report in our issue tracker
Activity
[-]"Nested identifiers not yet supported" error[/-][+]Implement nested identifier access ( "Nested identifiers not yet supported" )[/+]kavirajk commentedon Jul 17, 2024
take
kavirajk commentedon Jul 22, 2024
@alamb kinda stuck on this. I track down where the error is coming from.
But don't know which datatype (I assume
Datatype::Struct?) methods needs to be modified to allow nested access here in getfield.rs. Appreciate any leads/tips? thanks.alamb commentedon Jul 22, 2024
Sorry @kavirajk I am not super familar with the struct access so I can't offer any code specific suggestions
What I would probably do is remove the check, then write some tests, and then work to get all the tests passing.
kavirajk commentedon Jul 22, 2024
Thanks @alamb good idea.
Lordworms commentedon Sep 23, 2024
based on the duckdb implementation, I think implement struct_extract function first might be a good start, I'll add that
