[Task][Go SDK]: Utility function for inferring field names based on struct tags #24465
Labels
done & done
Issue has been reviewed after it was closed for verification, followups, etc.
go
P2
task
Milestone
What needs to happen?
There is a TODO in the
bigqueryio.Read
transform to infer column names from typet
instead of usingSELECT *
in the query.I would like a function, e.g. in the util package, which infers field names from a given struct type and tag key, and returns them as a
[]string
.It can be used in
bigqueryio.Read
to construct the select statement and for similar use cases, such as inspannerio.Read
which currently uses its own unexportedcolumnsFromStruct
function.Issue Priority
Priority: 2
Issue Component
Component: sdk-go
The text was updated successfully, but these errors were encountered: