Closed Ekrekr closed 4 years ago
Have looked for solutions but haven't found anything nice so putting as an issue. Could be this belongs as an issue in protobufjs.
protobufjs
Example, where bigquery is of type BigQueryOptions, which has members public partitionBy: string; and public clusterBy: string[];:
bigquery
BigQueryOptions
public partitionBy: string;
public clusterBy: string[];
const tmp = dataform.Table.create({ bigquery: { partitionBy: "DATE(test)" } }); console.log(tmp)
outputs
Table { ... bigquery: { partitionBy: 'DATE(test)' } }
whereas it what is actually received by the RPC is
Table { ... bigquery: { partitionBy: 'DATE(test)', clusterBy: [] } }
Which can cause unpredictable behaviour, and recently did cause an issue within the API tests.
Thanks Elias, sorry going to have to close this bug as I don't think there is anything we can feasibly do about this. This is kind of one of those things when working with protos unfortunately!
Have looked for solutions but haven't found anything nice so putting as an issue. Could be this belongs as an issue in
protobufjs
.Example, where
bigquery
is of typeBigQueryOptions
, which has memberspublic partitionBy: string;
andpublic clusterBy: string[];
:outputs
whereas it what is actually received by the RPC is
Which can cause unpredictable behaviour, and recently did cause an issue within the API tests.