Skip to content

Commit eca1190

Browse files
committed
make table id regex go compatible
1 parent fe86790 commit eca1190

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

metadata.display.yaml

Lines changed: 4 additions & 4 deletions
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,
@@ -101,7 +101,7 @@ spec:
101101
table_id:
102102
name: table_id
103103
title: Table Id
104-
regexValidation: ^[A-Za-z_]{1,1024}$
104+
regexValidation: ^[A-Za-z_][A-Za-z0-9_]{0,1000}[A-Za-z0-9_]{0,23}$
105105
validation: The table ID must contain only letters, numbers, and underscores, and cannot start with a number.
106106
hive_partitioning_options:
107107
name: hive_partitioning_options
@@ -237,7 +237,7 @@ spec:
237237
table_id:
238238
name: table_id
239239
title: Table Id
240-
regexValidation: ^[A-Za-z_]{1,1024}$
240+
regexValidation: ^[A-Za-z_][A-Za-z0-9_]{0,1000}[A-Za-z0-9_]{0,23}$
241241
validation: The table ID must contain only letters, numbers, and underscores, and cannot start with a number.
242242
time_partitioning:
243243
name: time_partitioning
@@ -262,5 +262,5 @@ spec:
262262
view_id:
263263
name: view_id
264264
title: View Id
265-
regexValidation: ^[A-Za-z_]{1,1024}$
265+
regexValidation: ^[A-Za-z_][A-Za-z0-9_]{0,1000}[A-Za-z0-9_]{0,23}$
266266
validation: The view ID must contain only letters, numbers, and underscores, and cannot start with a number.

0 commit comments

Comments
 (0)