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
{{ message }}
Repository navigation
Add SQL support for referencing fields in structs #119
In @Igosuki 's recent PR (#1006) for adding list indexing support, he proposed using field["key"] to access nested struct field, which I think makes the query more readable. For example, foo.id could mean accessing the id attribute from an unqualified foo column or accessing the id column from the table foo. foo["id"] makes it clear that id is for accessing of struct field.
Sorry I haven't had time to finish the PR as I'm traveling. But indeed the
patch provides unified access for nested bracket notations. Using a '.' is
more a JSON path expression (see hive and postures dialects for instance)
Le lun. 18 oct. 2021 à 05:07, QP Hou ***@***.***> a écrit :
Activity
houqp commentedon Oct 18, 2021
In @Igosuki 's recent PR (#1006) for adding list indexing support, he proposed using
field["key"]to access nested struct field, which I think makes the query more readable. For example,foo.idcould mean accessing theidattribute from an unqualifiedfoocolumn or accessing theidcolumn from the tablefoo.foo["id"]makes it clear thatidis for accessing of struct field.houqp commentedon Oct 18, 2021
I think we are almost there with this feature, see my comment in #1006 (comment).
Igosuki commentedon Oct 18, 2021
Igosuki commentedon Oct 30, 2021
#1204
build(deps): bump tokio from 1.23.0 to 1.24.1 (apache#119)