Skip to content

Commit e682cbc

Browse files
Fix JSON cast test column alias names
- Change json_array to arr_json to avoid potential reserved word conflicts - Shorten alias names for better compatibility - Test CAST(ARRAY AS JSON) syntax with simpler identifiers 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 45ab10b commit e682cbc

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

tests/pyathena/test_cursor.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,16 +1029,16 @@ def test_array_types_with_structs(self, cursor, query, description):
10291029
"query,description",
10301030
[
10311031
(
1032-
"SELECT CAST(ARRAY[1, 2, 3] AS JSON) AS json_array",
1033-
"json_array",
1032+
"SELECT CAST(ARRAY[1, 2, 3] AS JSON) AS arr_json",
1033+
"arr_json",
10341034
),
10351035
(
1036-
"SELECT CAST(ARRAY['a', 'b', 'c'] AS JSON) AS json_string_array",
1037-
"json_string_array",
1036+
"SELECT CAST(ARRAY['a', 'b', 'c'] AS JSON) AS str_arr_json",
1037+
"str_arr_json",
10381038
),
10391039
(
1040-
"SELECT CAST(ARRAY[ROW(1, 'Alice'), ROW(2, 'Bob')] AS JSON) AS json_struct_array",
1041-
"json_struct_array",
1040+
"SELECT CAST(ARRAY[ROW(1, 'Alice'), ROW(2, 'Bob')] AS JSON) AS struct_arr_json",
1041+
"struct_arr_json",
10421042
),
10431043
],
10441044
)

0 commit comments

Comments
 (0)