I created an integer range partitioned bigquery table similar to one described in the tutorial:
CREATE TABLE
mydataset.newtable
PARTITION BY
RANGE_BUCKET(customer_id, GENERATE_ARRAY(1, 100, 1))
AS SELECT 1 AS customer_id, DATE "2019-10-01" AS date1
However, trying to extract a single partition into a bucket, running in bash
bq extract myproject:mydataset.newtable\$1 gs://mybucket/newtable.csv
I get an error "partition key is not valid". Why? How do I find the valid keys?
Similarly I cannot use the decorator to select from a specific partition using query composer:
select from mydataset.newtable$0
or select from mydataset.newtable$1
give
Syntax error: Illegal input character "$" at [1:46]