We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcc79a8 commit 4c8283bCopy full SHA for 4c8283b
ibis/backends/sql/datatypes.py
@@ -215,10 +215,13 @@ def _from_sqlglot_ARRAY(
215
def _from_sqlglot_VARCHAR(
216
cls, length: sge.DataTypeParam | None = None, nullable: bool | None = None
217
) -> dt.String:
218
- return dt.String(
219
- length=int(length.this.this) if length is not None else None,
220
- nullable=nullable,
221
- )
+ if length is None:
+ length_value = None
+ elif length.this.this == "MAX":
222
+ else:
223
+ length_value = int(length.this.this)
224
+ return dt.String(length=length_value, nullable=nullable)
225
226
_from_sqlglot_NVARCHAR = _from_sqlglot_NCHAR = _from_sqlglot_CHAR = (
227
_from_sqlglot_FIXEDSTRING
0 commit comments