partitionSpec property
[partition_spec] determines whether to export to partitioned table(s) and how to partition the data.
If [partition_spec] is unset or [partition_spec.partition_key] is
unset or PARTITION_KEY_UNSPECIFIED
, the snapshot results will be
exported to non-partitioned table(s). [force] will decide whether to
overwrite existing table(s). If [partition_spec] is specified. First,
the snapshot results will be written to partitioned table(s) with two
additional timestamp columns, readTime and requestTime, one of which will
be the partition key. Secondly, in the case when any destination table
already exists, it will first try to update existing table's schema as
necessary by appending additional columns. Then, if [force] is TRUE
,
the corresponding partition will be overwritten by the snapshot results
(data in different partitions will remain intact); if [force] is unset
or FALSE
, it will append the data. An error will be returned if the
schema update or data appension fails.
Implementation
PartitionSpec? partitionSpec;