Skip to content

Commit 43833cb

Browse files
committed
use python3.9 compatible union type hint
Signed-off-by: shanhaikang.shk <shanhaikang.shk@oceanbase.com>
1 parent 0da573d commit 43833cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyobvector/json_table/oceanbase_dialect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def _parse_alter_table_alter(self) -> t.Optional[exp.Expression]:
6464
using=self._match(TokenType.USING) and self._parse_assignment(),
6565
)
6666

67-
def _parse_drop(self, exists: bool = False) -> exp.Drop | exp.Command:
67+
def _parse_drop(self, exists: bool = False) -> t.Union[exp.Drop, exp.Command]:
6868
temporary = self._match(TokenType.TEMPORARY)
6969
materialized = self._match_text_seq("MATERIALIZED")
7070

tests/test_json_table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def test_dml(self):
302302
)
303303

304304
res = self.client.perform_json_table_sql(
305-
"select * from t1 where CHAR_LENGTH(c2) > 10 or c4 > 50 order by c4"
305+
"select * from t1 where CHAR_LENGTH(c2) > 10 or c4 > '50' order by c4"
306306
)
307307
self.assertEqual(
308308
get_all_rows(res),

0 commit comments

Comments
 (0)