Skip to content

Commit

Permalink
apache druid datasource
Browse files Browse the repository at this point in the history
  • Loading branch information
gagan-bhullar-tech committed Nov 6, 2024
1 parent eac8be8 commit b8830fe
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
10 changes: 0 additions & 10 deletions ibis-server/app/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ class QuerySnowflakeDTO(QueryDTO):
class QueryDruidDTO(QueryDTO):
connection_info: DruidConnectionInfo = connection_info_field

class QueryDruidDTO(QueryDTO):
connection_info: DruidConnectionInfo = connection_info_field


class QueryTrinoDTO(QueryDTO):
connection_info: ConnectionUrl | TrinoConnectionInfo = connection_info_field

Expand Down Expand Up @@ -86,12 +82,6 @@ class DruidConnectionInfo(BaseModel):
port: SecretStr = Field(examples=[8082])
path: str

class DruidConnectionInfo(BaseModel):
host: SecretStr = Field(examples=["localhost"])
port: SecretStr = Field(examples=[8082])
path: str


class MSSqlConnectionInfo(BaseModel):
host: SecretStr
port: SecretStr
Expand Down
8 changes: 0 additions & 8 deletions ibis-server/app/model/data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,6 @@ def get_druid_connection(info: DruidConnectionInfo) -> BaseBackend:
path=info.path,
)

@staticmethod
def get_druid_connection(info: DruidConnectionInfo) -> BaseBackend:
return ibis.druid.connect(
host=info.host.get_secret_value(),
port=int(info.port.get_secret_value()),
path=info.path,
)

@classmethod
def get_mssql_connection(cls, info: MSSqlConnectionInfo) -> BaseBackend:
return ibis.mssql.connect(
Expand Down

0 comments on commit b8830fe

Please sign in to comment.