Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postgres Ingestion Fails #3041

Closed
ulixius9 opened this issue Mar 1, 2022 · 0 comments · Fixed by #3042
Closed

Postgres Ingestion Fails #3041

ulixius9 opened this issue Mar 1, 2022 · 0 comments · Fixed by #3042
Assignees

Comments

@ulixius9
Copy link
Member

ulixius9 commented Mar 1, 2022

Describe the bug
While ingesting postgres getting following error in log

Traceback (most recent call last):
  File "/Users/mayursingal/Desktop/ulixius1/OpenMetadata/venv/lib/python3.8/site-packages/metadata/ingestion/source/sql_source.py", line 551, in _get_columns
    col_data_length = self._check_col_length(
  File "/Users/mayursingal/Desktop/ulixius1/OpenMetadata/venv/lib/python3.8/site-packages/metadata/ingestion/source/sql_source.py", line 647, in _check_col_length
    return col_raw_type.length if col_raw_type.length else 1
AttributeError: 'OID' object has no attribute 'length'
ERROR: 'OID' object has no attribute 'length' : {'name': 'oid', 'type': OID(), 'nullable': True, 'default': None, 'autoincrement': False, 'comment': None}
ERROR: Failed to ingest sample data for table __root__='_pg_foreign_servers'
Traceback (most recent call last):
  File "/Users/mayursingal/Desktop/ulixius1/OpenMetadata/venv/lib/python3.8/site-packages/metadata/ingestion/source/sql_source.py", line 551, in _get_columns
    col_data_length = self._check_col_length(
  File "/Users/mayursingal/Desktop/ulixius1/OpenMetadata/venv/lib/python3.8/site-packages/metadata/ingestion/source/sql_source.py", line 647, in _check_col_length
    return col_raw_type.length if col_raw_type.length else 1
AttributeError: 'OID' object has no attribute 'length'
ERROR: 'OID' object has no attribute 'length' : {'name': 'oid', 'type': OID(), 'nullable': True, 'default': None, 'autoincrement': False, 'comment': None}
Traceback (most recent call last):
  File "/Users/mayursingal/Desktop/ulixius1/OpenMetadata/venv/lib/python3.8/site-packages/metadata/ingestion/source/sql_source.py", line 551, in _get_columns
    col_data_length = self._check_col_length(
  File "/Users/mayursingal/Desktop/ulixius1/OpenMetadata/venv/lib/python3.8/site-packages/metadata/ingestion/source/sql_source.py", line 647, in _check_col_length
    return col_raw_type.length if col_raw_type.length else 1
AttributeError: 'OID' object has no attribute 'length'
ERROR: 'OID' object has no attribute 'length' : {'name': 'fdwowner', 'type': OID(), 'nullable': True, 'default': None, 'autoincrement': False, 'comment': None}
ERROR: Failed to ingest sample data for table __root__='_pg_foreign_data_wrappers'
Traceback (most recent call last):
  File "/Users/mayursingal/Desktop/ulixius1/OpenMetadata/venv/lib/python3.8/site-packages/metadata/ingestion/source/sql_source.py", line 551, in _get_columns
    col_data_length = self._check_col_length(
  File "/Users/mayursingal/Desktop/ulixius1/OpenMetadata/venv/lib/python3.8/site-packages/metadata/ingestion/source/sql_source.py", line 647, in _check_col_length
    return col_raw_type.length if col_raw_type.length else 1
AttributeError: 'OID' object has no attribute 'length'
ERROR: 'OID' object has no attribute 'length' : {'name': 'oid', 'type': OID(), 'nullable': True, 'default': None, 'autoincrement': False, 'comment': None}
Traceback (most recent call last):
  File "/Users/mayursingal/Desktop/ulixius1/OpenMetadata/venv/lib/python3.8/site-packages/metadata/ingestion/source/sql_source.py", line 551, in _get_columns
    col_data_length = self._check_col_length(
  File "/Users/mayursingal/Desktop/ulixius1/OpenMetadata/venv/lib/python3.8/site-packages/metadata/ingestion/source/sql_source.py", line 647, in _check_col_length
    return col_raw_type.length if col_raw_type.length else 1
AttributeError: 'OID' object has no attribute 'length'
ERROR: 'OID' object has no attribute 'length' : {'name': 'umuser', 'type': OID(), 'nullable': True, 'default': None, 'autoincrement': False, 'comment': None}
ERROR: Failed to ingest sample data for table __root__='_pg_user_mappings'
@ulixius9 ulixius9 self-assigned this Mar 1, 2022
@ulixius9 ulixius9 added this to To do in Release 0.9.0 via automation Mar 1, 2022
@ulixius9 ulixius9 added this to the Milestone 5 - 0.9.0 Release milestone Mar 1, 2022
ulixius9 added a commit to ulixius9/OpenMetadata that referenced this issue Mar 1, 2022
Release 0.9.0 automation moved this from To do to Done Mar 1, 2022
harshach pushed a commit that referenced this issue Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

1 participant