Skip to content

Commit a7ec0c4

Browse files
committed
Fix YAML structure for calcite_connection_properties test cases
- Move options block to correct transform-level location - Fix indentation issues that caused precommit validation failures
1 parent ac7dbbc commit a7ec0c4

File tree

1 file changed

+13
-18
lines changed
  • sdks/python/apache_beam/yaml/tests

1 file changed

+13
-18
lines changed

sdks/python/apache_beam/yaml/tests/sql.yaml

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ pipelines:
107107

108108
- type: Sql
109109
name: PostgreSQLFunctions
110+
options:
111+
calcite_connection_properties:
112+
fun: "postgresql"
110113
config:
111114
query: |
112115
SELECT
@@ -120,13 +123,7 @@ pipelines:
120123
config:
121124
elements:
122125
- {id: 1, email: "[email protected]", username: "alice", domain: "example.com"}
123-
- {id: 2, email: "[email protected]", username: "bob", domain: "test.org"}
124-
125-
options:
126-
calcite_connection_properties:
127-
fun: "postgresql"
128-
129-
# Test calcite_connection_properties with BigQuery syntax
126+
- {id: 2, email: "[email protected]", username: "bob", domain: "test.org"} # Test calcite_connection_properties with BigQuery syntax
130127
- pipeline:
131128
type: chain
132129
transforms:
@@ -139,6 +136,10 @@ pipelines:
139136

140137
- type: Sql
141138
name: BigQueryArrayFunctions
139+
options:
140+
calcite_connection_properties:
141+
fun: "bigquery"
142+
lex: "big_query"
142143
config:
143144
query: |
144145
SELECT
@@ -152,11 +153,6 @@ pipelines:
152153
elements:
153154
- {id: 1, tags_string: "tag1|tag2|tag3", tag_count: 3}
154155
- {id: 2, tags_string: "tagA|tagB", tag_count: 2}
155-
156-
options:
157-
calcite_connection_properties:
158-
fun: "bigquery"
159-
lex: "big_query"
160156

161157
# Test calcite_connection_properties with case sensitivity settings
162158
- pipeline:
@@ -171,6 +167,10 @@ pipelines:
171167

172168
- type: Sql
173169
name: CaseSensitiveSQL
170+
options:
171+
calcite_connection_properties:
172+
caseSensitive: "false"
173+
unquotedCasing: "TO_LOWER"
174174
config:
175175
query: |
176176
SELECT
@@ -183,9 +183,4 @@ pipelines:
183183
config:
184184
elements:
185185
- {lower_id: 1, lower_name: "Alice", lower_email: "[email protected]"}
186-
- {lower_id: 2, lower_name: "Bob", lower_email: "[email protected]"}
187-
188-
options:
189-
calcite_connection_properties:
190-
caseSensitive: "false"
191-
unquotedCasing: "TO_LOWER"
186+
- {lower_id: 2, lower_name: "Bob", lower_email: "[email protected]"}

0 commit comments

Comments
 (0)