OpenMetadata
OpenMetadata copied to clipboard
SingleStore metadata ingestion (JSON type fields)
Affected module Ingestion Framework
Describe the bug Metadata ingestion for SingleStore tables with JSON data type fields always fails with the following error:
[2023-07-04 13:36:33,455] {logging_mixin.py:115} WARNING - /home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/sql_column_handler.py:113 SAWarning: Unknown schema content: ' , SHARD KEY () '
[2023-07-04 13:36:33,630] {logging_mixin.py:115} WARNING - /home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/mysql/utils.py:70 SAWarning: Did not recognize type 'JSON' of column 'ARGUMENTS'
[2023-07-04 13:36:33,631] {common_db_source.py:425} WARNING - Unexpected exception to yield table [CALLS]: NullType() takes no arguments
[2023-07-04 13:36:33,799] {logging_mixin.py:115} WARNING - /home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/mysql/utils.py:70 SAWarning: Did not recognize type 'JSON' of column 'RAW_PARAMETERS'
[2023-07-04 13:36:33,799] {common_db_source.py:425} WARNING - Unexpected exception to yield table [EVENTS]: NullType() takes no arguments
[2023-07-04 13:36:33,965] {logging_mixin.py:115} WARNING - /home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/sql_column_handler.py:113 SAWarning: Unknown schema content: ' KEY `TIMESTAMP` (`TIMESTAMP`,`ORDER_INDEX`) USING CLUSTERED COLUMNSTORE,'
[2023-07-04 13:36:34,114] {logging_mixin.py:115} WARNING - /home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/mysql/utils.py:70 SAWarning: Did not recognize type 'JSON' of column 'KEYS'
[2023-07-04 13:36:34,115] {common_db_source.py:425} WARNING - Unexpected exception to yield table [STORAGE_DIFFS]: NullType() takes no arguments
[2023-07-04 13:36:34,212] {logging_mixin.py:115} WARNING - /home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/sql_column_handler.py:113 SAWarning: Unknown schema content: ' KEY `TIMESTAMP` (`TIMESTAMP`,`TX_INDEX`) USING CLUSTERED COLUMNSTORE,'
[2023-07-04 13:36:34,703] {logging_mixin.py:115} WARNING - /home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/sql_column_handler.py:113 SAWarning: Unknown schema content: ' KEY `__UNORDERED` () USING CLUSTERED COLUMNSTORE,'
[2023-07-04 13:36:34,769] {database_service.py:398} INFO - Mark Deleted Tables set to True. Processing database [EDW]
[2023-07-04 13:36:34,844] {common_db_source.py:429} INFO - Processing Lineage for Views
[2023-07-04 13:36:35,002] {taskinstance.py:1909} ERROR - Task failed with exception
Traceback (most recent call last):
File "/home/airflow/.local/lib/python3.9/site-packages/airflow/operators/python.py", line 171, in execute
return_value = self.execute_callable()
File "/home/airflow/.local/lib/python3.9/site-packages/airflow/operators/python.py", line 189, in execute_callable
return self.python_callable(*self.op_args, **self.op_kwargs)
File "/home/airflow/.local/lib/python3.9/site-packages/openmetadata_managed_apis/workflows/ingestion/common.py", line 229, in metadata_ingestion_workflow
workflow.raise_from_status()
File "/home/airflow/.local/lib/python3.9/site-packages/metadata/workflow/workflow_status_mixin.py", line 91, in raise_from_status
raise err
File "/home/airflow/.local/lib/python3.9/site-packages/metadata/workflow/workflow_status_mixin.py", line 88, in raise_from_status
self._raise_from_status_internal(raise_warnings)
File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/api/workflow.py", line 253, in _raise_from_status_internal
raise WorkflowExecutionError(
metadata.config.common.WorkflowExecutionError: ('Source reported errors', SourceStatus(records=['SingleStore_EDW.EDW.EDW.BLOCK_STATS', 'SingleStore_EDW.EDW.EDW.CALL_STATS', 'SingleStore_EDW.EDW.EDW.IMPLEMENTATIONS', 'SingleStore_EDW.EDW.EDW.LABELS', 'SingleStore_EDW.EDW.EDW.STATE_DIFFS', 'SingleStore_EDW.EDW.EDW.TOKENS', 'SingleStore_EDW.EDW.EDW.TRANSACTIONS', 'SingleStore_EDW.EDW.EDW.TRANSFERS', 'SingleStore_EDW.EDW.EDW.TX_STATS', 'SingleStore_EDW.EDW.EDW.WITHDRAWALS'], warnings=[], failures=[StackTraceError(name='BLOCKS', error='Unexpected exception to yield table [BLOCKS]: NullType() takes no arguments', stack_trace='Traceback (most recent call last):\n File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/common_db_source.py", line 362, in yield_table\n ) = self.get_columns_and_constraints(\n File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/sql_column_handler.py", line 213, in get_columns_and_constraints\n ) = self._get_columns_with_constraints(schema_name, table_name, inspector)\n File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/sql_column_handler.py", line 113, in _get_columns_with_constraints\n pk_constraints = inspector.get_pk_constraint(table_name, schema_name)\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/reflection.py", line 528, in get_pk_constraint\n return self.dialect.get_pk_constraint(\n File "<string>", line 2, in get_pk_constraint\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/reflection.py", line 55, in cache\n ret = fn(self, con, *args, **kw)\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/dialects/mysql/base.py", line 2827, in get_pk_constraint\n parsed_state = self._parsed_state_or_create(\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/dialects/mysql/base.py", line 3062, in _parsed_state_or_create\n return self._setup_parser(\n File "<string>", line 2, in _setup_parser\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/reflection.py", line 55, in cache\n ret = fn(self, con, *args, **kw)\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/dialects/mysql/base.py", line 3098, in _setup_parser\n return parser.parse(sql, charset)\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/dialects/mysql/reflection.py", line 46, in parse\n self._parse_column(line, state)\n File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/mysql/utils.py", line 100, in parse_column\n type_instance = col_type(*type_args, **type_kw)\nTypeError: NullType() takes no arguments\n'), StackTraceError(name='CALLS', error='Unexpected exception to yield table [CALLS]: NullType() takes no arguments', stack_trace='Traceback (most recent call last):\n File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/common_db_source.py", line 362, in yield_table\n ) = self.get_columns_and_constraints(\n File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/sql_column_handler.py", line 213, in get_columns_and_constraints\n ) = self._get_columns_with_constraints(schema_name, table_name, inspector)\n File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/sql_column_handler.py", line 113, in _get_columns_with_constraints\n pk_constraints = inspector.get_pk_constraint(table_name, schema_name)\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/reflection.py", line 528, in get_pk_constraint\n return self.dialect.get_pk_constraint(\n File "<string>", line 2, in get_pk_constraint\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/reflection.py", line 55, in cache\n ret = fn(self, con, *args, **kw)\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/dialects/mysql/base.py", line 2827, in get_pk_constraint\n parsed_state = self._parsed_state_or_create(\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/dialects/mysql/base.py", line 3062, in _parsed_state_or_create\n return self._setup_parser(\n File "<string>", line 2, in _setup_parser\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/reflection.py", line 55, in cache\n ret = fn(self, con, *args, **kw)\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/dialects/mysql/base.py", line 3098, in _setup_parser\n return parser.parse(sql, charset)\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/dialects/mysql/reflection.py", line 46, in parse\n self._parse_column(line, state)\n File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/mysql/utils.py", line 100, in parse_column\n type_instance = col_type(*type_args, **type_kw)\nTypeError: NullType() takes no arguments\n'), StackTraceError(name='EVENTS', error='Unexpected exception to yield table [EVENTS]: NullType() takes no arguments', stack_trace='Traceback (most recent call last):\n File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/common_db_source.py", line 362, in yield_table\n ) = self.get_columns_and_constraints(\n File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/sql_column_handler.py", line 213, in get_columns_and_constraints\n ) = self._get_columns_with_constraints(schema_name, table_name, inspector)\n File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/sql_column_handler.py", line 113, in _get_columns_with_constraints\n pk_constraints = inspector.get_pk_constraint(table_name, schema_name)\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/reflection.py", line 528, in get_pk_constraint\n return self.dialect.get_pk_constraint(\n File "<string>", line 2, in get_pk_constraint\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/reflection.py", line 55, in cache\n ret = fn(self, con, *args, **kw)\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/dialects/mysql/base.py", line 2827, in get_pk_constraint\n parsed_state = self._parsed_state_or_create(\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/dialects/mysql/base.py", line 3062, in _parsed_state_or_create\n return self._setup_parser(\n File "<string>", line 2, in _setup_parser\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/reflection.py", line 55, in cache\n ret = fn(self, con, *args, **kw)\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/dialects/mysql/base.py", line 3098, in _setup_parser\n return parser.parse(sql, charset)\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/dialects/mysql/reflection.py", line 46, in parse\n self._parse_column(line, state)\n File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/mysql/utils.py", line 100, in parse_column\n type_instance = col_type(*type_args, **type_kw)\nTypeError: NullType() takes no arguments\n'), StackTraceError(name='STORAGE_DIFFS', error='Unexpected exception to yield table [STORAGE_DIFFS]: NullType() takes no arguments', stack_trace='Traceback (most recent call last):\n File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/common_db_source.py", line 362, in yield_table\n ) = self.get_columns_and_constraints(\n File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/sql_column_handler.py", line 213, in get_columns_and_constraints\n ) = self._get_columns_with_constraints(schema_name, table_name, inspector)\n File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/sql_column_handler.py", line 113, in _get_columns_with_constraints\n pk_constraints = inspector.get_pk_constraint(table_name, schema_name)\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/reflection.py", line 528, in get_pk_constraint\n return self.dialect.get_pk_constraint(\n File "<string>", line 2, in get_pk_constraint\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/reflection.py", line 55, in cache\n ret = fn(self, con, *args, **kw)\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/dialects/mysql/base.py", line 2827, in get_pk_constraint\n parsed_state = self._parsed_state_or_create(\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/dialects/mysql/base.py", line 3062, in _parsed_state_or_create\n return self._setup_parser(\n File "<string>", line 2, in _setup_parser\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/reflection.py", line 55, in cache\n ret = fn(self, con, *args, **kw)\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/dialects/mysql/base.py", line 3098, in _setup_parser\n return parser.parse(sql, charset)\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/dialects/mysql/reflection.py", line 46, in parse\n self._parse_column(line, state)\n File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/mysql/utils.py", line 100, in parse_column\n type_instance = col_type(*type_args, **type_kw)\nTypeError: NullType() takes no arguments\n')], success=[], filtered=[], source_start_time=1688477788.4615276))
[2023-07-04 13:36:35,011] {taskinstance.py:1415} INFO - Marking task as FAILED. dag_id=SingleStore_EDW_metadata_M9bGxtcY, task_id=ingestion_task, execution_date=20230704T133622, start_date=20230704T133631, end_date=20230704T133635
[2023-07-04 13:36:35,028] {standard_task_runner.py:92} ERROR - Failed to execute job 138 for task ingestion_task (('Source reported errors', SourceStatus(records=['SingleStore_EDW.EDW.EDW.BLOCK_STATS', 'SingleStore_EDW.EDW.EDW.CALL_STATS', 'SingleStore_EDW.EDW.EDW.IMPLEMENTATIONS', 'SingleStore_EDW.EDW.EDW.LABELS', 'SingleStore_EDW.EDW.EDW.STATE_DIFFS', 'SingleStore_EDW.EDW.EDW.TOKENS', 'SingleStore_EDW.EDW.EDW.TRANSACTIONS', 'SingleStore_EDW.EDW.EDW.TRANSFERS', 'SingleStore_EDW.EDW.EDW.TX_STATS', 'SingleStore_EDW.EDW.EDW.WITHDRAWALS'], warnings=[], failures=[StackTraceError(name='BLOCKS', error='Unexpected exception to yield table [BLOCKS]: NullType() takes no arguments', stack_trace='Traceback (most recent call last):\n File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/common_db_source.py", line 362, in yield_table\n ) = self.get_columns_and_constraints(\n File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/sql_column_handler.py", line 213, in get_columns_and_constraints\n ) = self._get_columns_with_constraints(schema_name, table_name, inspector)\n File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/sql_column_handler.py", line 113, in _get_columns_with_constraints\n pk_constraints = inspector.get_pk_constraint(table_name, schema_name)\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/reflection.py", line 528, in get_pk_constraint\n return self.dialect.get_pk_constraint(\n File "<string>", line 2, in get_pk_constraint\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/reflection.py", line 55, in cache\n ret = fn(self, con, *args, **kw)\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/dialects/mysql/base.py", line 2827, in get_pk_constraint\n parsed_state = self._parsed_state_or_create(\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/dialects/mysql/base.py", line 3062, in _parsed_state_or_create\n return self._setup_parser(\n File "<string>", line 2, in _setup_parser\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/reflection.py", line 55, in cache\n ret = fn(self, con, *args, **kw)\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/dialects/mysql/base.py", line 3098, in _setup_parser\n return parser.parse(sql, charset)\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/dialects/mysql/reflection.py", line 46, in parse\n self._parse_column(line, state)\n File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/mysql/utils.py", line 100, in parse_column\n type_instance = col_type(*type_args, **type_kw)\nTypeError: NullType() takes no arguments\n'), StackTraceError(name='CALLS', error='Unexpected exception to yield table [CALLS]: NullType() takes no arguments', stack_trace='Traceback (most recent call last):\n File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/common_db_source.py", line 362, in yield_table\n ) = self.get_columns_and_constraints(\n File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/sql_column_handler.py", line 213, in get_columns_and_constraints\n ) = self._get_columns_with_constraints(schema_name, table_name, inspector)\n File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/sql_column_handler.py", line 113, in _get_columns_with_constraints\n pk_constraints = inspector.get_pk_constraint(table_name, schema_name)\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/reflection.py", line 528, in get_pk_constraint\n return self.dialect.get_pk_constraint(\n File "<string>", line 2, in get_pk_constraint\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/reflection.py", line 55, in cache\n ret = fn(self, con, *args, **kw)\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/dialects/mysql/base.py", line 2827, in get_pk_constraint\n parsed_state = self._parsed_state_or_create(\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/dialects/mysql/base.py", line 3062, in _parsed_state_or_create\n return self._setup_parser(\n File "<string>", line 2, in _setup_parser\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/reflection.py", line 55, in cache\n ret = fn(self, con, *args, **kw)\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/dialects/mysql/base.py", line 3098, in _setup_parser\n return parser.parse(sql, charset)\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/dialects/mysql/reflection.py", line 46, in parse\n self._parse_column(line, state)\n File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/mysql/utils.py", line 100, in parse_column\n type_instance = col_type(*type_args, **type_kw)\nTypeError: NullType() takes no arguments\n'), StackTraceError(name='EVENTS', error='Unexpected exception to yield table [EVENTS]: NullType() takes no arguments', stack_trace='Traceback (most recent call last):\n File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/common_db_source.py", line 362, in yield_table\n ) = self.get_columns_and_constraints(\n File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/sql_column_handler.py", line 213, in get_columns_and_constraints\n ) = self._get_columns_with_constraints(schema_name, table_name, inspector)\n File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/sql_column_handler.py", line 113, in _get_columns_with_constraints\n pk_constraints = inspector.get_pk_constraint(table_name, schema_name)\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/reflection.py", line 528, in get_pk_constraint\n return self.dialect.get_pk_constraint(\n File "<string>", line 2, in get_pk_constraint\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/reflection.py", line 55, in cache\n ret = fn(self, con, *args, **kw)\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/dialects/mysql/base.py", line 2827, in get_pk_constraint\n parsed_state = self._parsed_state_or_create(\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/dialects/mysql/base.py", line 3062, in _parsed_state_or_create\n return self._setup_parser(\n File "<string>", line 2, in _setup_parser\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/reflection.py", line 55, in cache\n ret = fn(self, con, *args, **kw)\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/dialects/mysql/base.py", line 3098, in _setup_parser\n return parser.parse(sql, charset)\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/dialects/mysql/reflection.py", line 46, in parse\n self._parse_column(line, state)\n File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/mysql/utils.py", line 100, in parse_column\n type_instance = col_type(*type_args, **type_kw)\nTypeError: NullType() takes no arguments\n'), StackTraceError(name='STORAGE_DIFFS', error='Unexpected exception to yield table [STORAGE_DIFFS]: NullType() takes no arguments', stack_trace='Traceback (most recent call last):\n File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/common_db_source.py", line 362, in yield_table\n ) = self.get_columns_and_constraints(\n File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/sql_column_handler.py", line 213, in get_columns_and_constraints\n ) = self._get_columns_with_constraints(schema_name, table_name, inspector)\n File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/sql_column_handler.py", line 113, in _get_columns_with_constraints\n pk_constraints = inspector.get_pk_constraint(table_name, schema_name)\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/reflection.py", line 528, in get_pk_constraint\n return self.dialect.get_pk_constraint(\n File "<string>", line 2, in get_pk_constraint\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/reflection.py", line 55, in cache\n ret = fn(self, con, *args, **kw)\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/dialects/mysql/base.py", line 2827, in get_pk_constraint\n parsed_state = self._parsed_state_or_create(\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/dialects/mysql/base.py", line 3062, in _parsed_state_or_create\n return self._setup_parser(\n File "<string>", line 2, in _setup_parser\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/reflection.py", line 55, in cache\n ret = fn(self, con, *args, **kw)\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/dialects/mysql/base.py", line 3098, in _setup_parser\n return parser.parse(sql, charset)\n File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/dialects/mysql/reflection.py", line 46, in parse\n self._parse_column(line, state)\n File "/home/airflow/.local/lib/python3.9/site-packages/metadata/ingestion/source/database/mysql/utils.py", line 100, in parse_column\n type_instance = col_type(*type_args, **type_kw)\nTypeError: NullType() takes no arguments\n')], success=[], filtered=[], source_start_time=1688477788.4615276)); 4088)
[2023-07-04 13:36:35,050] {local_task_job.py:156} INFO - Task exited with return code 1
[2023-07-04 13:36:35,075] {common.py:303} INFO - Sending failed status from callback...
[2023-07-04 13:36:35,084] {common.py:309} INFO - Sending status to Ingestion Pipeline SingleStore_EDW.SingleStore_EDW_metadata_M9bGxtcY
[2023-07-04 13:36:35,129] {local_task_job.py:273} INFO - 0 downstream tasks scheduled from follow-on schedule check
To Reproduce Sample table DDL:
CREATE TABLE `BLOCKS` (
`LOAD_ID` timestamp NOT NULL,
`BLOCK` bigint(20) unsigned NOT NULL,
`WITHDRAWALS_ROOT` char(66) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`WITHDRAWALS` JSON COLLATE utf8mb4_general_ci,
UNIQUE KEY `PRIMARY` (`BLOCK`) USING HASH,
SHARD KEY `__SHARDKEY` (`BLOCK`),
) AUTOSTATS_CARDINALITY_MODE=INCREMENTAL AUTOSTATS_HISTOGRAM_MODE=CREATE AUTOSTATS_SAMPLING=ON SQL_MODE='STRICT_ALL_TABLES'
Expected behavior Properly ingest metadata.
Version:
- OS: ubuntu
- OpenMetadata version: 1.0.5
- OpenMetadata Ingestion package version: 1.0.5