mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-01 03:09:12 +00:00
fix(snowflake): support geo types (#3686)
* Mapping Snowflake's GEOPGRAPHY type to Nulltype as a workaround as SqlAlchemy does not know about it Co-authored-by: treff7es <treff7es@gmail.com>
This commit is contained in:
parent
0576b76eb3
commit
1c17ba76d2
@ -7,10 +7,10 @@ import pydantic
|
||||
|
||||
# This import verifies that the dependencies are available.
|
||||
import snowflake.sqlalchemy # noqa: F401
|
||||
from snowflake.sqlalchemy import custom_types
|
||||
from snowflake.sqlalchemy import custom_types, snowdialect
|
||||
from sqlalchemy import create_engine, inspect
|
||||
from sqlalchemy.engine.reflection import Inspector
|
||||
from sqlalchemy.sql import text
|
||||
from sqlalchemy.sql import sqltypes, text
|
||||
|
||||
import datahub.emitter.mce_builder as builder
|
||||
from datahub.configuration.common import AllowDenyPattern
|
||||
@ -44,6 +44,8 @@ logger: logging.Logger = logging.getLogger(__name__)
|
||||
|
||||
APPLICATION_NAME = "acryl_datahub"
|
||||
|
||||
snowdialect.ischema_names["GEOGRAPHY"] = sqltypes.NullType
|
||||
|
||||
|
||||
class BaseSnowflakeConfig(BaseTimeWindowConfig):
|
||||
# Note: this config model is also used by the snowflake-usage source.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user