Skip to content

Commit bbcd5b9

Browse files
ted0928cpcloud
authored andcommitted
feat(pyflink): fix type mapping from BINARY to VARBINARY
1 parent 9486319 commit bbcd5b9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ibis/backends/sql/dialects.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,8 @@ class Generator(Hive.Generator):
222222
TYPE_MAPPING = Hive.Generator.TYPE_MAPPING.copy() | {
223223
sge.DataType.Type.TIME: "TIME",
224224
sge.DataType.Type.STRUCT: "ROW",
225+
sge.DataType.Type.BINARY: "VARBINARY",
226+
sge.DataType.Type.VARBINARY: "VARBINARY",
225227
}
226228

227229
TRANSFORMS = Hive.Generator.TRANSFORMS.copy() | {

ibis/backends/tests/test_binary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"trino": "varbinary",
1717
"postgres": "bytea",
1818
"risingwave": "bytea",
19-
"flink": "BINARY(1) NOT NULL",
19+
"flink": "BYTES NOT NULL",
2020
"databricks": "binary",
2121
"athena": "varbinary",
2222
}

0 commit comments

Comments
 (0)