Skip to content

Commit fe86790

Browse files
committed
Adding UI validation for bigquery
1 parent eec2567 commit fe86790

File tree

1 file changed

+170
-1
lines changed

1 file changed

+170
-1
lines changed

metadata.display.yaml

Lines changed: 170 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# you may not use this file except in compliance with the License.
55
# You may obtain a copy of the License at
66
#
7-
# http://www.apache.org/licenses/LICENSE-2.0
7+
# http://www.apache.org/licenses/LICENSE-2.0
88
#
99
# Unless required by applicable law or agreed to in writing, software
1010
# distributed under the License is distributed on an "AS IS" BASIS,
@@ -62,12 +62,96 @@ 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+
table_id:
102+
name: table_id
103+
title: Table Id
104+
regexValidation: ^[A-Za-z_]{1,1024}$
105+
validation: The table ID must contain only letters, numbers, and underscores, and cannot start with a number.
106+
hive_partitioning_options:
107+
name: hive_partitioning_options
108+
title: Hive Partitioning Options
109+
properties:
110+
mode:
111+
name: mode
112+
title: Mode
113+
enumValueLabels:
114+
- label: AUTO
115+
value: AUTO
116+
- label: STRINGS
117+
value: STRINGS
118+
- label: CUSTOM
119+
value: CUSTOM
120+
csv_options:
121+
name: csv_options
122+
title: CSV Options
123+
properties:
124+
encoding:
125+
name: encoding
126+
title: Encoding
127+
enumValueLabels:
128+
- label: UTF-8
129+
value: UTF-8
130+
- label: ISO-8859-1
131+
value: ISO-8859-1
65132
location:
66133
name: location
67134
title: Location
68135
materialized_views:
69136
name: materialized_views
70137
title: Materialized Views
138+
properties:
139+
time_partitioning:
140+
name: time_partitioning
141+
title: Time Partitioning
142+
properties:
143+
type:
144+
name: type
145+
title: Type
146+
enumValueLabels:
147+
- label: DAY
148+
value: DAY
149+
- label: HOUR
150+
value: HOUR
151+
- label: MONTH
152+
value: MONTH
153+
- label: YEAR
154+
value: YEAR
71155
max_time_travel_hours:
72156
name: max_time_travel_hours
73157
title: Max Time Travel Hours
@@ -80,9 +164,66 @@ spec:
80164
routines:
81165
name: routines
82166
title: Routines
167+
properties:
168+
routine_id:
169+
name: routine_id
170+
title: Routine Id
171+
regexValidation: ^[A-Za-z_]{1,256}$
172+
validation: The routine ID must contain only letters, numbers, and underscores, and cannot start with a number.
173+
routine_type:
174+
name: routine_type
175+
title: Routine Type
176+
enumValueLabels:
177+
- label: SCALAR_FUNCTION
178+
value: SCALAR_FUNCTION
179+
- label: PROCEDURE
180+
value: PROCEDURE
181+
- label: TABLE_VALUED_FUNCTION
182+
value: TABLE_VALUED_FUNCTION
183+
language:
184+
name: language
185+
title: Language
186+
enumValueLabels:
187+
- label: SQL
188+
value: SQL
189+
- label: JAVASCRIPT
190+
value: JAVASCRIPT
191+
- label: PYTHON
192+
value: PYTHON
193+
- label: JAVA
194+
value: JAVA
195+
- label: SCALA
196+
value: SCALA
197+
arguments:
198+
name: arguments
199+
title: Arguments
200+
properties:
201+
argument_kind:
202+
name: argument_kind
203+
title: Argument Kind
204+
enumValueLabels:
205+
- label: FIXED_TYPE
206+
value: FIXED_TYPE
207+
- label: ANY_TYPE
208+
value: ANY_TYPE
209+
mode:
210+
name: mode
211+
title: Mode
212+
enumValueLabels:
213+
- label: IN
214+
value: IN
215+
- label: OUT
216+
value: OUT
217+
- label: INOUT
218+
value: INOUT
83219
storage_billing_model:
84220
name: storage_billing_model
85221
title: Storage Billing Model
222+
enumValueLabels:
223+
- label: LOGICAL
224+
value: LOGICAL
225+
- label: PHYSICAL
226+
value: PHYSICAL
86227
tables:
87228
name: tables
88229
title: Tables
@@ -92,6 +233,34 @@ spec:
92233
value:
93234
- 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\"}]"
94235
table_id: table-1
236+
properties:
237+
table_id:
238+
name: table_id
239+
title: Table Id
240+
regexValidation: ^[A-Za-z_]{1,1024}$
241+
validation: The table ID must contain only letters, numbers, and underscores, and cannot start with a number.
242+
time_partitioning:
243+
name: time_partitioning
244+
title: Time Partitioning
245+
properties:
246+
type:
247+
name: type
248+
title: Type
249+
enumValueLabels:
250+
- label: DAY
251+
value: DAY
252+
- label: HOUR
253+
value: HOUR
254+
- label: MONTH
255+
value: MONTH
256+
- label: YEAR
257+
value: YEAR
95258
views:
96259
name: views
97260
title: Views
261+
properties:
262+
view_id:
263+
name: view_id
264+
title: View Id
265+
regexValidation: ^[A-Za-z_]{1,1024}$
266+
validation: The view ID must contain only letters, numbers, and underscores, and cannot start with a number.

0 commit comments

Comments
 (0)