Skip to content

Commit

Permalink
chore: remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Feb 8, 2024
1 parent b8d2b55 commit 1cc5344
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions ibis/backends/base/sqlglot/datatypes.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
from __future__ import annotations

from functools import partial
from typing import Literal, NoReturn
from typing import NoReturn

import sqlglot as sg
import sqlglot.expressions as sge

import ibis
import ibis.common.exceptions as com
import ibis.expr.datatypes as dt
from ibis.common.collections import FrozenDict
Expand Down Expand Up @@ -945,11 +944,6 @@ def _from_sqlglot_STRUCT(cls) -> sge.DataType:
raise com.UnsupportedBackendType("SQL Server does not support structs")


# TODO(kszucs): add a bool converter method to support different clickhouse bool types
def _bool_type() -> Literal["Bool", "UInt8", "Int8"]:
return getattr(getattr(ibis.options, "clickhouse", None), "bool_type", "Bool")


class ClickHouseType(SqlglotType):
dialect = "clickhouse"
default_decimal_precision = None
Expand Down

0 comments on commit 1cc5344

Please sign in to comment.