Skip to content

Commit 1c63801

Browse files
authored
fix: Adding UI validation for bigquery (#411)
1 parent 705217e commit 1c63801

File tree

1 file changed

+159
-0
lines changed

1 file changed

+159
-0
lines changed

metadata.display.yaml

Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,91 @@ spec:
6262
external_tables:
6363
name: external_tables
6464
title: External Tables
65+
properties:
66+
compression:
67+
name: compression
68+
title: Compression
69+
enumValueLabels:
70+
- label: GZIP
71+
value: GZIP
72+
- label: NONE
73+
value: NONE
74+
source_format:
75+
name: source_format
76+
title: Source Format
77+
enumValueLabels:
78+
- label: AVRO
79+
value: AVRO
80+
- label: BIGTABLE
81+
value: BIGTABLE
82+
- label: CSV
83+
value: CSV
84+
- label: DATASTORE_BACKUP
85+
value: DATASTORE_BACKUP
86+
- label: GOOGLE_SHEETS
87+
value: GOOGLE_SHEETS
88+
- label: NEWLINE_DELIMITED_JSON
89+
value: NEWLINE_DELIMITED_JSON
90+
- label: ORC
91+
value: ORC
92+
- label: PARQUET
93+
value: PARQUET
94+
- label: ICEBERG
95+
value: ICEBERG
96+
source_uris:
97+
name: source_uris
98+
title: Source Uris
99+
regexValidation: ^gs://([a-z0-9]([a-z0-9-.]*[a-z0-9])?)/([^#?]+)?$
100+
validation: Must be a valid Google Cloud Storage URI.
101+
hive_partitioning_options:
102+
name: hive_partitioning_options
103+
title: Hive Partitioning Options
104+
properties:
105+
mode:
106+
name: mode
107+
title: Mode
108+
enumValueLabels:
109+
- label: AUTO
110+
value: AUTO
111+
- label: STRINGS
112+
value: STRINGS
113+
- label: CUSTOM
114+
value: CUSTOM
115+
csv_options:
116+
name: csv_options
117+
title: CSV Options
118+
properties:
119+
encoding:
120+
name: encoding
121+
title: Encoding
122+
enumValueLabels:
123+
- label: UTF-8
124+
value: UTF-8
125+
- label: ISO-8859-1
126+
value: ISO-8859-1
65127
location:
66128
name: location
67129
title: Location
68130
materialized_views:
69131
name: materialized_views
70132
title: Materialized Views
133+
properties:
134+
time_partitioning:
135+
name: time_partitioning
136+
title: Time Partitioning
137+
properties:
138+
type:
139+
name: type
140+
title: Type
141+
enumValueLabels:
142+
- label: DAY
143+
value: DAY
144+
- label: HOUR
145+
value: HOUR
146+
- label: MONTH
147+
value: MONTH
148+
- label: YEAR
149+
value: YEAR
71150
max_time_travel_hours:
72151
name: max_time_travel_hours
73152
title: Max Time Travel Hours
@@ -80,9 +159,66 @@ spec:
80159
routines:
81160
name: routines
82161
title: Routines
162+
properties:
163+
routine_id:
164+
name: routine_id
165+
title: Routine Id
166+
regexValidation: ^[A-Za-z_]{1,256}$
167+
validation: The routine ID must contain only letters, numbers, and underscores, and cannot start with a number.
168+
routine_type:
169+
name: routine_type
170+
title: Routine Type
171+
enumValueLabels:
172+
- label: SCALAR_FUNCTION
173+
value: SCALAR_FUNCTION
174+
- label: PROCEDURE
175+
value: PROCEDURE
176+
- label: TABLE_VALUED_FUNCTION
177+
value: TABLE_VALUED_FUNCTION
178+
language:
179+
name: language
180+
title: Language
181+
enumValueLabels:
182+
- label: SQL
183+
value: SQL
184+
- label: JAVASCRIPT
185+
value: JAVASCRIPT
186+
- label: PYTHON
187+
value: PYTHON
188+
- label: JAVA
189+
value: JAVA
190+
- label: SCALA
191+
value: SCALA
192+
arguments:
193+
name: arguments
194+
title: Arguments
195+
properties:
196+
argument_kind:
197+
name: argument_kind
198+
title: Argument Kind
199+
enumValueLabels:
200+
- label: FIXED_TYPE
201+
value: FIXED_TYPE
202+
- label: ANY_TYPE
203+
value: ANY_TYPE
204+
mode:
205+
name: mode
206+
title: Mode
207+
enumValueLabels:
208+
- label: IN
209+
value: IN
210+
- label: OUT
211+
value: OUT
212+
- label: INOUT
213+
value: INOUT
83214
storage_billing_model:
84215
name: storage_billing_model
85216
title: Storage Billing Model
217+
enumValueLabels:
218+
- label: LOGICAL
219+
value: LOGICAL
220+
- label: PHYSICAL
221+
value: PHYSICAL
86222
tables:
87223
name: tables
88224
title: Tables
@@ -92,6 +228,29 @@ spec:
92228
value:
93229
- schema: "[{\"description\": \"A string type unique identifier\",\"mode\": \"NULLABLE\",\"name\": \"simpleId\",\"type\": \"STRING\"},{\"description\": \"A field to hold integer values\",\"mode\": \"NULLABLE\",\"name\": \"integerField\",\"type\": \"INTEGER\"},{\"description\": \"Data\",\"mode\": \"NULLABLE\",\"name\": \"data\",\"type\": \"STRING\"}]"
94230
table_id: table-1
231+
properties:
232+
time_partitioning:
233+
name: time_partitioning
234+
title: Time Partitioning
235+
properties:
236+
type:
237+
name: type
238+
title: Type
239+
enumValueLabels:
240+
- label: DAY
241+
value: DAY
242+
- label: HOUR
243+
value: HOUR
244+
- label: MONTH
245+
value: MONTH
246+
- label: YEAR
247+
value: YEAR
95248
views:
96249
name: views
97250
title: Views
251+
properties:
252+
view_id:
253+
name: view_id
254+
title: View Id
255+
regexValidation: ^[A-Za-z_][A-Za-z0-9_]{0,1000}[A-Za-z0-9_]{0,23}$
256+
validation: The view ID must contain only letters, numbers, and underscores, and cannot start with a number.

0 commit comments

Comments
 (0)