1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/// The most digits before the point a parameterised `NUMERIC` holds; more need `BIGNUMERIC`.
pub const NUMERIC_MAX_INTEGER_DIGITS: u8 = 29;
/// The most digits after the point a parameterised `NUMERIC` holds; more need `BIGNUMERIC`.
pub const NUMERIC_MAX_SCALE: u8 = 9;
/// The precision and scale BigQuery gives a `NUMERIC` declared without them.
pub const NUMERIC_DEFAULT: = ;
/// Statements that would open or close a transaction, which separate query jobs cannot hold open.
pub const TRANSACTION_STATEMENTS: & = &;
/// Shown for `copy_to_internal_stage` on a BigQuery target.
pub const NO_INTERNAL_STAGE_COPY: &str = "copy_to_internal_stage is for Snowflake targets; BigQuery takes the rows through its Storage Write API";
/// The most pending streams one batch's requests are spread over; each opens only when a request needs it.
pub const STREAMS_PER_BATCH: usize = 4;
/// The most bytes one append request carries, under the Storage Write API's 10 MB request limit.
pub const APPEND_REQUEST_BYTES: usize = 9 * 1024 * 1024;
/// The types BigQuery reads a Parquet decimal as, the first that holds its precision and scale: a temporary external table's `decimalTargetTypes`.
pub const DECIMAL_TARGET_TYPES: = ;
/// The longest column name BigQuery takes.
pub const MAX_COLUMN_NAME: usize = 300;
/// Prefixes BigQuery reserves for its own columns (in upper case; names ignore case), which no column it reads from Parquet may start with.
pub const RESERVED_COLUMN_PREFIXES: = ;
/// The most bytes of SQL one query job over files in GCS holds, under BigQuery's limit of 1,024K characters for a query before it is resolved.
pub const MAX_QUERY_BYTES: usize = 900 * 1024;
/// The most files one query job over files in GCS reads.
pub const MAX_FILES_PER_QUERY: usize = 1000;
/// What a query over files in GCS fails with on a row of a file not in its batch, before the file's name.
pub const UNEXPECTED_FILE: &str = "sqlload: unexpected file ";
/// The most columns BigQuery clusters a table by.
pub const MAX_CLUSTER_COLUMNS: usize = 4;
/// The table setting that makes BigQuery refuse queries of a table without a filter on its partition column.
pub const REQUIRE_PARTITION_FILTER: &str = "require_partition_filter";
/// The script variable a pruned write declares: the staged rows' partitions, or a range partition's lowest and highest staged value.
pub const STAGED_PARTITIONS: &str = "__sqlload_partitions";
/// The partition column's staged value, as the script that declares the staged partitions names it.
pub const PARTITION_VALUE: &str = "__sqlload_partition_value";
/// What a table `--reload` lays out anew is renamed to while its successor is created: its name and this. Unlike a staging table's, no later load drops it, so its rows stay should the load fail before the new table is in place.
pub const RELAYOUT_SUFFIX: &str = "__sqlload_relayout";
/// The most partitions BigQuery gives a table, which bounds a `RANGE_BUCKET`'s ranges.
pub const MAX_PARTITIONS: i64 = 10_000;