diff --git a/ibis/backends/base/sql/alchemy/datatypes.py b/ibis/backends/base/sql/alchemy/datatypes.py index e866f48ea6952..84e16ca49dfcf 100644 --- a/ibis/backends/base/sql/alchemy/datatypes.py +++ b/ibis/backends/base/sql/alchemy/datatypes.py @@ -9,7 +9,7 @@ import ibis.expr.datatypes as dt from ibis.backends.base.sql.alchemy.geospatial import geospatial_supported -from ibis.backends.base.sql.glot.datatypes import SqlglotType +from ibis.backends.base.sqlglot.datatypes import SqlglotType from ibis.common.collections import FrozenDict from ibis.formats import TypeMapper diff --git a/ibis/backends/base/sql/glot/__init__.py b/ibis/backends/base/sqlglot/__init__.py similarity index 100% rename from ibis/backends/base/sql/glot/__init__.py rename to ibis/backends/base/sqlglot/__init__.py diff --git a/ibis/backends/base/sql/glot/datatypes.py b/ibis/backends/base/sqlglot/datatypes.py similarity index 100% rename from ibis/backends/base/sql/glot/datatypes.py rename to ibis/backends/base/sqlglot/datatypes.py diff --git a/ibis/backends/base/sql/glot/tests/__init__.py b/ibis/backends/base/sqlglot/tests/__init__.py similarity index 100% rename from ibis/backends/base/sql/glot/tests/__init__.py rename to ibis/backends/base/sqlglot/tests/__init__.py diff --git a/ibis/backends/base/sql/glot/tests/test_datatypes.py b/ibis/backends/base/sqlglot/tests/test_datatypes.py similarity index 96% rename from ibis/backends/base/sql/glot/tests/test_datatypes.py rename to ibis/backends/base/sqlglot/tests/test_datatypes.py index de9f590678f98..4d6aae2c2a3f1 100644 --- a/ibis/backends/base/sql/glot/tests/test_datatypes.py +++ b/ibis/backends/base/sqlglot/tests/test_datatypes.py @@ -6,7 +6,7 @@ import ibis.expr.datatypes as dt import ibis.tests.strategies as its -from ibis.backends.base.sql.glot.datatypes import SqlglotType +from ibis.backends.base.sqlglot.datatypes import SqlglotType def assert_dtype_roundtrip(ibis_type, sqlglot_expected=None): diff --git a/ibis/backends/clickhouse/datatypes.py b/ibis/backends/clickhouse/datatypes.py index 92b25c9bf587a..7250bafd4c0fb 100644 --- a/ibis/backends/clickhouse/datatypes.py +++ b/ibis/backends/clickhouse/datatypes.py @@ -6,7 +6,7 @@ import ibis import ibis.expr.datatypes as dt -from ibis.backends.base.sql.glot.datatypes import SqlglotType +from ibis.backends.base.sqlglot.datatypes import SqlglotType from ibis.common.collections import FrozenDict typecode = sge.DataType.Type diff --git a/ibis/backends/druid/datatypes.py b/ibis/backends/druid/datatypes.py index 5e027094e1732..be1493fd35d99 100644 --- a/ibis/backends/druid/datatypes.py +++ b/ibis/backends/druid/datatypes.py @@ -7,7 +7,7 @@ import ibis.expr.datatypes as dt from ibis.backends.base.sql.alchemy.datatypes import AlchemyType -from ibis.backends.base.sql.glot.datatypes import DruidType as SqlglotDruidType +from ibis.backends.base.sqlglot.datatypes import DruidType as SqlglotDruidType class DruidDateTime(sat.TypeDecorator): diff --git a/ibis/backends/duckdb/datatypes.py b/ibis/backends/duckdb/datatypes.py index 1c4eaab187f55..e931867f4b14b 100644 --- a/ibis/backends/duckdb/datatypes.py +++ b/ibis/backends/duckdb/datatypes.py @@ -5,7 +5,7 @@ import ibis.expr.datatypes as dt from ibis.backends.base.sql.alchemy.datatypes import AlchemyType -from ibis.backends.base.sql.glot.datatypes import DuckDBType as SqlglotDuckdbType +from ibis.backends.base.sqlglot.datatypes import DuckDBType as SqlglotDuckdbType _from_duckdb_types = { psql.BYTEA: dt.Binary, diff --git a/ibis/backends/mysql/datatypes.py b/ibis/backends/mysql/datatypes.py index 9b35423a6d1b7..05ef1cc5a4969 100644 --- a/ibis/backends/mysql/datatypes.py +++ b/ibis/backends/mysql/datatypes.py @@ -5,7 +5,7 @@ import ibis.expr.datatypes as dt from ibis.backends.base.sql.alchemy.datatypes import UUID, AlchemyType -from ibis.backends.base.sql.glot.datatypes import MySQLType as SqlglotMySQLType +from ibis.backends.base.sqlglot.datatypes import MySQLType as SqlglotMySQLType class MySQLDateTime(mysql.DATETIME): diff --git a/ibis/backends/oracle/datatypes.py b/ibis/backends/oracle/datatypes.py index eb7b8d3170e18..82d71bfbac4e0 100644 --- a/ibis/backends/oracle/datatypes.py +++ b/ibis/backends/oracle/datatypes.py @@ -5,7 +5,7 @@ import ibis.expr.datatypes as dt from ibis.backends.base.sql.alchemy.datatypes import AlchemyType -from ibis.backends.base.sql.glot.datatypes import OracleType as SqlglotOracleType +from ibis.backends.base.sqlglot.datatypes import OracleType as SqlglotOracleType class OracleType(AlchemyType): diff --git a/ibis/backends/postgres/datatypes.py b/ibis/backends/postgres/datatypes.py index 4b921f80b4c72..4a2bd2c1f71fc 100644 --- a/ibis/backends/postgres/datatypes.py +++ b/ibis/backends/postgres/datatypes.py @@ -6,7 +6,7 @@ import ibis.expr.datatypes as dt from ibis.backends.base.sql.alchemy.datatypes import AlchemyType -from ibis.backends.base.sql.glot.datatypes import PostgresType as SqlglotPostgresType +from ibis.backends.base.sqlglot.datatypes import PostgresType as SqlglotPostgresType _from_postgres_types = { psql.DOUBLE_PRECISION: dt.Float64, diff --git a/ibis/backends/snowflake/datatypes.py b/ibis/backends/snowflake/datatypes.py index 9dbbf72e3e7b2..f93b0cc9b8558 100644 --- a/ibis/backends/snowflake/datatypes.py +++ b/ibis/backends/snowflake/datatypes.py @@ -13,7 +13,7 @@ import ibis.expr.datatypes as dt from ibis.backends.base.sql.alchemy.datatypes import AlchemyType -from ibis.backends.base.sql.glot.datatypes import SnowflakeType as SqlglotSnowflakeType +from ibis.backends.base.sqlglot.datatypes import SnowflakeType as SqlglotSnowflakeType @compiles(sat.NullType, "snowflake") diff --git a/ibis/backends/sqlite/datatypes.py b/ibis/backends/sqlite/datatypes.py index c0da145040853..5d92a8d89b90f 100644 --- a/ibis/backends/sqlite/datatypes.py +++ b/ibis/backends/sqlite/datatypes.py @@ -9,7 +9,7 @@ import ibis.expr.datatypes as dt from ibis.backends.base.sql.alchemy.datatypes import AlchemyType -from ibis.backends.base.sql.glot.datatypes import SQLiteType as SqlglotSQLiteType +from ibis.backends.base.sqlglot.datatypes import SQLiteType as SqlglotSQLiteType class SqliteType(AlchemyType): diff --git a/ibis/backends/trino/datatypes.py b/ibis/backends/trino/datatypes.py index e734c1ea3eff3..fc9e33cd2200d 100644 --- a/ibis/backends/trino/datatypes.py +++ b/ibis/backends/trino/datatypes.py @@ -10,7 +10,7 @@ import ibis.expr.datatypes as dt from ibis.backends.base.sql.alchemy.datatypes import AlchemyType -from ibis.backends.base.sql.glot.datatypes import TrinoType as SqlglotTrinoType +from ibis.backends.base.sqlglot.datatypes import TrinoType as SqlglotTrinoType class ROW(_ROW):