Removed serviceType as a configuration option from workflow configs (#371)

* Removed serviceType as a configuration option from workflow configs

* Removed serviceType as a configuration option from workflow configs

Co-authored-by: parthp2107 <parth.panchal@deuexsoultions.com>
This commit is contained in:
parthp2107 2021-09-02 19:45:41 +05:30 committed by GitHub
parent 244b5b73da
commit d3d0ac19d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
27 changed files with 14 additions and 21 deletions

View File

@ -9,7 +9,6 @@
"options": {
"credentials_path": "examples/creds/bigquery-cred.json"
},
"service_type": "BigQuery",
"filter_pattern": {
"excludes": [
"[\\w]*cloudaudit.*",

View File

@ -9,8 +9,7 @@
"duration": 2,
"options": {
"credentials_path": "examples/creds/bigquery-cred.json"
},
"service_type": "BigQuery"
}
}
},
"processor": {

View File

@ -3,7 +3,6 @@
"type": "kafka",
"config": {
"service_name": "local_kafka",
"service_type": "Kafka",
"bootstrap_servers": "192.168.1.32:9092",
"schema_registry_url": "http://192.168.1.32:8081",
"filter_pattern": {

View File

@ -3,7 +3,6 @@
"type": "hive",
"config": {
"service_name": "local_hive",
"service_type": "Hive",
"host_port": "localhost:10000"
}
},

View File

@ -4,7 +4,6 @@
"config": {
"host_port": "localhost:1433",
"service_name": "local_mssql",
"service_type": "MSSQL",
"database":"catalog_test",
"username": "sa",
"password": "test!Password",

View File

@ -6,8 +6,7 @@
"password": "openmetadata_password",
"host_port": "localhost:5432",
"database": "pagila",
"service_name": "local_postgres",
"service_type": "Postgres"
"service_name": "local_postgres"
}
},
"processor": {

View File

@ -3,7 +3,6 @@
"type": "presto",
"config": {
"service_name": "local_presto",
"service_type": "Presto",
"host_port": "192.168.1.32:8080",
"database": "default"
}

View File

@ -7,7 +7,6 @@
"password": "strong_password",
"database": "warehouse",
"service_name": "aws_redshift",
"service_type": "Redshift",
"filter_pattern": {
"excludes": ["information_schema.*","[\\w]*event_vw.*"]
}

View File

@ -8,7 +8,6 @@
"database": "warehouse",
"where_clause": "and q.label != 'metrics' and q.label != 'health' and q.label != 'cmstats'",
"service_name": "aws_redshift",
"service_type": "Redshift",
"duration": 2
}
},

View File

@ -8,7 +8,6 @@
"database": "SNOWFLAKE_SAMPLE_DATA",
"account": "account_name",
"service_name": "snowflake",
"service_type": "Snowflake",
"filter_pattern": {
"excludes": [
"tpcds_sf100tcl"

View File

@ -8,7 +8,6 @@
"database": "SNOWFLAKE_SAMPLE_DATA",
"account": "account_name",
"service_name": "snowflake",
"service_type": "Snowflake",
"duration": 2
}
},

View File

@ -5,8 +5,7 @@
"url": "http://localhost:8088",
"username": "admin",
"password": "admin",
"service_name": "local_superset",
"service_type": "Superset"
"service_name": "local_superset"
}
},
"sink": {

View File

@ -5,7 +5,6 @@
"username": "openmetadata_user",
"password": "openmetadata_password",
"service_name": "local_mysql",
"service_type": "MySQL",
"filter_pattern": {
"excludes": ["mysql.*", "information_schema.*"]
}

View File

@ -3,7 +3,6 @@
"type": "sample-dashboards",
"config": {
"service_name": "sample_superset",
"service_type": "Superset",
"sample_dashboard_folder": "./examples/superset_data/"
}
},

View File

@ -4,7 +4,6 @@
"config": {
"database": "warehouse",
"service_name": "gcp_bigquery",
"service_type": "BigQuery",
"sample_schema_folder": "./examples/shopify_schemas/"
}
},

View File

@ -3,7 +3,6 @@
"type": "sample-topics",
"config": {
"service_name": "sample_kafka",
"service_type": "Kafka",
"sample_schema_folder": "./examples/kafka_schemas/"
}
},

View File

@ -4,7 +4,6 @@
"config": {
"database": "warehouse",
"service_name": "gcp_bigquery",
"service_type": "BigQuery",
"sample_schema_folder": "./examples/shopify_schemas/"
}
},

View File

@ -27,6 +27,7 @@ class BigQueryConfig(SQLConnectionConfig, SQLSource):
scheme = "bigquery"
project_id: Optional[str] = None
duration: int = 1
service_type = "BigQuery"
def get_connection_url(self):
if self.project_id:

View File

@ -32,6 +32,7 @@ register_custom_type(HiveDecimal, "NUMBER")
class HiveConfig(SQLConnectionConfig):
scheme = "hive"
auth_options: Optional[str] = None
service_type = "Hive"
def get_connection_url(self):
url = super().get_connection_url()

View File

@ -23,6 +23,7 @@ from ..ometa.openmetadata_rest import MetadataServerConfig
class MssqlConfig(SQLConnectionConfig):
host_port = "localhost:1433"
scheme = "mssql+pytds"
service_type = "MSSQL"
def get_connection_url(self):
return super().get_connection_url()

View File

@ -20,6 +20,7 @@ from ..ometa.openmetadata_rest import MetadataServerConfig
class MySQLConfig(SQLConnectionConfig):
host_port = "localhost:3306"
scheme = "mysql+pymysql"
service_type = "MySQL"
def get_connection_url(self):
return super().get_connection_url()

View File

@ -28,7 +28,7 @@ class PostgresSourceConfig(SQLConnectionConfig):
# defaults
scheme = "postgresql+psycopg2"
service_name = "postgres"
service_type = "POSTGRES"
service_type = "Postgres"
def get_service_type(self) -> DatabaseServiceType:
return DatabaseServiceType[self.service_type]

View File

@ -21,6 +21,7 @@ from ..ometa.openmetadata_rest import MetadataServerConfig
class PrestoConfig(SQLConnectionConfig):
host_port = "localhost:8080"
scheme = "presto"
service_type = "Presto"
def get_connection_url(self):
url = f"{self.scheme}://"

View File

@ -27,6 +27,7 @@ class RedshiftConfig(SQLConnectionConfig):
scheme = "postgresql+psycopg2"
where_clause: Optional[str] = None
duration: int = 1
service_type = "Redshift"
def get_identifier(self, schema: str, table: str) -> str:
regular = f"{schema}.{table}"

View File

@ -10,6 +10,8 @@ from ..ometa.openmetadata_rest import OpenMetadataAPIClient, MetadataServerConfi
class SampleUsageSource(Source):
service_type = 'BigQuery'
def __init__(self, config: SampleTableSourceConfig, metadata_config: MetadataServerConfig, ctx):
super().__init__(ctx)
self.status = SampleTableSourceStatus()

View File

@ -36,6 +36,7 @@ class SnowflakeConfig(SQLConnectionConfig):
warehouse: Optional[str]
role: Optional[str]
duration: Optional[int]
service_type = "Snowflake"
def get_connection_url(self):
connect_string = super().get_connection_url()

View File

@ -82,6 +82,7 @@ class SupersetSource(Source):
metadata_config: MetadataServerConfig
status: SourceStatus
platform = "superset"
service_type = "Superset"
def __init__(self, config: SupersetConfig, metadata_config: MetadataServerConfig, ctx: WorkflowContext):
super().__init__(ctx)