Hi Christian,

Are you sure that BigQuery won't accept JSON strings for integers? I'm 
reading the code for BigQuery's JSON importer and it suggests to me that 
strings are accepted. Have you had problems with this in the past?

On Monday, January 4, 2016 at 5:36:24 PM UTC-8, [email protected] wrote:
>
> Hi,
>
> For context, we are using proto3 messages as our main data model and we
> are exporting some messages to Google BigQuery.
>
> In order to automate things a bit we wrote a protoc plugin
> to generate bigquery schemas automatically from our .proto files,
> and given that BigQuery objects are just json, we use JsonFormat to
> translate messages directly into json.
>
> This is pretty much fantastic, except for the only fact that we would like
> some of our int64 fields to be int64 fields in BigQuery, thus we must rely
> on a fork of JsonFormat that allows us to write int64 fields as numbers
> instead of strings.
>
> Would the proto3 team be opened to having JsonFormat extra options
> that would allow for doing that kind of stuff (eg: writing int64 as 
> numbers)?
>
> Now I understand that the decision of writing int64 as strings is probably 
> because
> of javascript in browsers, however there are various server side json 
> libraries that
> will happily accept 64bit json numbers (of which BigQuery is one), so that 
> kind of
> option could make sense...
>
> Thanks a lot,
>
> Christian
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to