gcp-bigquery-client icon indicating copy to clipboard operation
gcp-bigquery-client copied to clipboard

Direct struct interpretation sample

Open nixxholas opened this issue 3 years ago • 3 comments

Could be good if we showcase an example of how we can deserialise the rows into a sturct via serde or avro!

https://github.com/nixxholas/gcp-bigquery-client/blob/4c30e1ca25281f67c5de08902a8a360974ea8c65/examples/client.rs#L198

nixxholas avatar Nov 24 '21 07:11 nixxholas

@nixxholas Are there currently any workaround to convert (deserialise) TableRow into a Struct via serde or maybe even directly into avro? Looking at the code, it is not yet available, so curious about what options are there (except for hard-coding everything, which isn't good enough for my use-case)

MikhailMS avatar Dec 05 '22 21:12 MikhailMS

Yeah examples regarding the data formats will be great. wanted something like arrow support as well. Actually the problem is when this examples are not public, the interoperability of this library with other libraries like pola-rs or maybe arrow becomes problematic.

rahul-soshte avatar Apr 07 '23 05:04 rahul-soshte

See -> https://github.com/lquerel/gcp-bigquery-client/issues/59#issuecomment-2119258440

krystianity avatar May 19 '24 14:05 krystianity