cool-boots-36947
09/14/2022, 7:39 PM'ProgrammingError: (snowflake.connector.errors.ProgrammingError) 090105 (22000): Cannot perform SELECT. This session does not have a '
"current database. Call 'USE DATABASE', or use a qualified name.\n"
'[SQL: \n'
'select table_catalog, table_schema, table_name\n'
'from information_schema.tables\n'
"where last_altered >= to_timestamp_ltz(1663086530849, 3) and table_type= 'BASE TABLE'\n"
' ]\n'
'(Background on this error at: <http://sqlalche.me/e/13/f405>)\n'
'[2022-09-14 16:28:52,024] INFO {datahub.entrypoints:187} - DataHub CLI version: 0.8.41 at '
'/tmp/datahub/ingest/venv-snowflake-0.8.41/lib/python3.9/site-packages/datahub/__init__.py\n'
'[2022-09-14 16:28:52,024] INFO {datahub.entrypoints:190} - Python version: 3.9.9 (main, Dec 21 2021, 10:03:34) \n'
'[GCC 10.2.1 20210110] at /tmp/datahub/ingest/venv-snowflake-0.8.41/bin/python3 on '
'Linux-5.4.196-108.356.amzn2.x86_64-x86_64-with-glibc2.31\n'
"[2022-09-14 16:28:52,024] INFO {datahub.entrypoints:193} - GMS config {'models': {}, 'versions': {'linkedin/datahub': {'version': "
"'v0.8.42', 'commit': '4f35a6c43dcd058e4e85b1ed7e4818100ab224e0'}}, 'managedIngestion': {'defaultCliVersion': '0.8.41', 'enabled': True}, "
"'statefulIngestionCapable': True, 'supportsImpactAnalysis': True, 'telemetry': {'enabledCli': True, 'enabledIngestion': False}, "
"'datasetUrnNameCasing': False, 'retention': 'true', 'datahub': {'serverType': 'prod'}, 'noCode': 'true'}\n",
"2022-09-14 16:28:53.137401 [exec_id=2dc5382a-f673-489f-b9bf-4cf1328b7bf7] INFO: Failed to execute 'datahub ingest'",
'2022-09-14 16:28:53.137719 [exec_id=2dc5382a-f673-489f-b9bf-4cf1328b7bf7] INFO: Caught exception EXECUTING '
'task_id=2dc5382a-f673-489f-b9bf-4cf1328b7bf7, name=RUN_INGEST, stacktrace=Traceback (most recent call last):\n'
' File "/usr/local/lib/python3.9/site-packages/acryl/executor/execution/default_executor.py", line 122, in execute_task\n'
' self.event_loop.run_until_complete(task_future)\n'
' File "/usr/local/lib/python3.9/site-packages/nest_asyncio.py", line 89, in run_until_complete\n'
' return f.result()\n'
' File "/usr/local/lib/python3.9/asyncio/futures.py", line 201, in result\n'
' raise self._exception\n'
' File "/usr/local/lib/python3.9/asyncio/tasks.py", line 256, in __step\n'
' result = coro.send(None)\n'
' File "/usr/local/lib/python3.9/site-packages/acryl/executor/execution/sub_process_ingestion_task.py", line 112, in execute\n'
' raise TaskError("Failed to execute \'datahub ingest\'")\n'
"acryl.executor.execution.task.TaskError: Failed to execute 'datahub ingest'\n"]}
Execution finished with errors.
Here is recipe.
source:
type: snowflake
config:
username: xxxxx
password: xxxxx
role: xxxx
warehouse: xxxxx
check_role_grants: true
account_id: xxxxx
include_table_lineage: true
include_view_lineage: true
ignore_start_time_lineage: true
upstream_lineage_in_report: true
profiling:
enabled: true
stateful_ingestion:
enabled: true
database_pattern:
allow:
- SNOWFLAKE
schema_pattern:
allow:
- ACCOUNT_USAGE
pipeline_name: 'urnlidataHubIngestionSource:xxxxxxxxxxxxxxxxxxxxxxxxxxx'gray-shoe-75895
09/14/2022, 9:21 PMcool-boots-36947
09/14/2022, 9:44 PM'sqlalchemy.exc.ProgrammingError: (snowflake.connector.errors.ProgrammingError) 090105 (22000): Cannot perform SELECT. This session does '
"not have a current database. Call 'USE DATABASE', or use a qualified name.\n"
'[SQL: \n'
'select table_catalog, table_schema, table_name\n'
'from information_schema.tables\n'
"where last_altered >= to_timestamp_ltz(1663105153351, 3) and table_type= 'BASE TABLE'\n"
' ]\n'
'(Background on this error at: <http://sqlalche.me/e/13/f405>)\n'
'[2022-09-14 21:39:14,772] ERROR {datahub.entrypoints:195} - Command failed: \n'
'\t(snowflake.connector.errors.ProgrammingError) 090105 (22000): Cannot perform SELECT. This session does not have a current database. '
"Call 'USE DATABASE', or use a qualified name.\n"
'[SQL: \n'
'select table_catalog, table_schema, table_name\n'
'from information_schema.tables\n'
"where last_altered >= to_timestamp_ltz(1663105153351, 3) and table_type= 'BASE TABLE'\n"
' ]\n'
'(Background on this error at: <http://sqlalche.me/e/13/f405>) due to \n'
"\t\t'090105 (22000): Cannot perform SELECT. This session does not have a current database. Call 'USE DATABASE', or use a qualified "
"name.'.\n"
'\tRun with --debug to get full stacktrace.\n'
"\te.g. 'datahub --debug ingest run -c /tmp/datahub/ingest/bb16b21b-b079-4da0-9d73-2869c7d71535/recipe.yml --report-to "
"/tmp/datahub/ingest/bb16b21b-b079-4da0-9d73-2869c7d71535/ingestion_report.json'\n",
"2022-09-14 21:39:15.479957 [exec_id=bb16b21b-b079-4da0-9d73-2869c7d71535] INFO: Failed to execute 'datahub ingest'",
'2022-09-14 21:39:15.480285 [exec_id=bb16b21b-b079-4da0-9d73-2869c7d71535] INFO: Caught exception EXECUTING '
'task_id=bb16b21b-b079-4da0-9d73-2869c7d71535, name=RUN_INGEST, stacktrace=Traceback (most recent call last):\n'
' File "/usr/local/lib/python3.9/site-packages/acryl/executor/execution/default_executor.py", line 122, in execute_task\n'
' self.event_loop.run_until_complete(task_future)\n'
' File "/usr/local/lib/python3.9/site-packages/nest_asyncio.py", line 89, in run_until_complete\n'
' return f.result()\n'
' File "/usr/local/lib/python3.9/asyncio/futures.py", line 201, in result\n'
' raise self._exception\n'
' File "/usr/local/lib/python3.9/asyncio/tasks.py", line 256, in __step\n'
' result = coro.send(None)\n'
' File "/usr/local/lib/python3.9/site-packages/acryl/executor/execution/sub_process_ingestion_task.py", line 112, in execute\n'
' raise TaskError("Failed to execute \'datahub ingest\'")\n'
"acryl.executor.execution.task.TaskError: Failed to execute 'datahub ingest'\n"],cool-boots-36947
09/14/2022, 9:45 PMcool-boots-36947
09/14/2022, 9:46 PMgray-shoe-75895
09/14/2022, 9:47 PMsnowflake-beta source and see if that one works?gray-shoe-75895
09/14/2022, 9:48 PMcool-boots-36947
09/14/2022, 9:50 PMgray-shoe-75895
09/14/2022, 9:50 PMtype: snowflake-betagray-shoe-75895
09/14/2022, 9:53 PMcool-boots-36947
09/14/2022, 9:56 PMgray-shoe-75895
09/14/2022, 9:57 PMcool-boots-36947
09/14/2022, 9:59 PM'pydantic.error_wrappers.ValidationError: 1 validation error for SnowflakeV2Config\n'
'__root__\n'
' Check role grants is not supported. Set `check_role_grants` to False. (type=value_error)\n'
'\n'
'The above exception was the direct cause of the following exception:\n'
'\n'
'Traceback (most recent call last):\n'
' File "/tmp/datahub/ingest/venv-snowflake-beta-0.8.44.2/lib/python3.9/site-packages/datahub/cli/ingest_cli.py", line 197, in run\n'
' pipeline = Pipeline.create(\n'
' File "/tmp/datahub/ingest/venv-snowflake-beta-0.8.44.2/lib/python3.9/site-packages/datahub/ingestion/run/pipeline.py", line 317, in '
'create\n'
' return cls(\n'
' File "/tmp/datahub/ingest/venv-snowflake-beta-0.8.44.2/lib/python3.9/site-packages/datahub/ingestion/run/pipeline.py", line 202, in '
'__init__\n'
' self._record_initialization_failure(\n'
' File "/tmp/datahub/ingest/venv-snowflake-beta-0.8.44.2/lib/python3.9/site-packages/datahub/ingestion/run/pipeline.py", line 129, in '
'_record_initialization_failure\n'
' raise PipelineInitError(msg) from e\n'
'datahub.ingestion.run.pipeline.PipelineInitError: Failed to configure source (snowflake-beta)\n'
'[2022-09-14 21:52:36,879] ERROR {datahub.entrypoints:195} - Command failed: \n'
'\tFailed to configure source (snowflake-beta) due to \n'
"\t\t'1 validation error for SnowflakeV2Config\n"
'__root__\n'
" Check role grants is not supported. Set `check_role_grants` to False. (type=value_error)'.\n"
'\tRun with --debug to get full stacktrace.\n'
"\te.g. 'datahub --debug ingest run -c /tmp/datahub/ingest/47750afb-ae23-42c1-9dbd-4d9fa5017151/recipe.yml --report-to "
"/tmp/datahub/ingest/47750afb-ae23-42c1-9dbd-4d9fa5017151/ingestion_report.json'\n",
"2022-09-14 21:52:37.215010 [exec_id=47750afb-ae23-42c1-9dbd-4d9fa5017151] INFO: Failed to execute 'datahub ingest'",
'2022-09-14 21:52:37.215353 [exec_id=47750afb-ae23-42c1-9dbd-4d9fa5017151] INFO: Caught exception EXECUTING '
'task_id=47750afb-ae23-42c1-9dbd-4d9fa5017151, name=RUN_INGEST, stacktrace=Traceback (most recent call last):\n'
' File "/usr/local/lib/python3.9/site-packages/acryl/executor/execution/default_executor.py", line 122, in execute_task\n'
' self.event_loop.run_until_complete(task_future)\n'
' File "/usr/local/lib/python3.9/site-packages/nest_asyncio.py", line 89, in run_until_complete\n'
' return f.result()\n'
' File "/usr/local/lib/python3.9/asyncio/futures.py", line 201, in result\n'
' raise self._exception\n'
' File "/usr/local/lib/python3.9/asyncio/tasks.py", line 256, in __step\n'
' result = coro.send(None)\n'
' File "/usr/local/lib/python3.9/site-packages/acryl/executor/execution/sub_process_ingestion_task.py", line 112, in execute\n'
' raise TaskError("Failed to execute \'datahub ingest\'")\n'
"acryl.executor.execution.task.TaskError: Failed to execute 'datahub ingest'\n"]}
Execution finished with errors.gray-shoe-75895
09/14/2022, 10:00 PMcool-boots-36947
09/14/2022, 10:00 PMCheck role grants is not supported.
Looks like I need to remove thisgray-shoe-75895
09/14/2022, 10:01 PMgray-shoe-75895
09/14/2022, 10:01 PMcool-boots-36947
09/14/2022, 10:02 PMcool-boots-36947
09/14/2022, 10:03 PMcool-boots-36947
09/14/2022, 10:26 PMcool-boots-36947
09/14/2022, 10:29 PMcool-boots-36947
09/14/2022, 10:32 PMcool-boots-36947
09/14/2022, 10:33 PMgray-shoe-75895
09/15/2022, 12:29 AMgray-shoe-75895
09/15/2022, 12:30 AMgray-shoe-75895
09/15/2022, 12:31 AMgray-shoe-75895
09/15/2022, 12:32 AMcool-boots-36947
09/15/2022, 12:46 AMcool-boots-36947
09/15/2022, 12:46 AMcool-boots-36947
09/15/2022, 12:56 AMcool-boots-36947
09/15/2022, 2:04 AM"warnings": [], "failures": [{"error": "Unable to emit '
'metadata to DataHub GMS", "info": {"exceptionClass": "com.linkedin.restli.server.RestLiServiceException", "stackTrace": '
'"com.linkedin.restli.server.RestLiServiceException [HTTP Status:422]: Failed to validate record with class '
'com.linkedin.dataset.DatasetProfile: ERROR :: /sizeInBytes :: unrecognized field found but not allowed\\n\\n\\tat '
'com.linkedin.metadata.resources.entity.AspectResource.lambda$ingestProposal$3(AspectResource.java:142)", "message": "Failed '
'to validate record with class com.linkedin.dataset.DatasetProfile: ERROR :: /sizeInBytes :: unrecognized field found but not '
'allowed", "status": 422, "id": 'cool-boots-36947
09/15/2022, 2:09 AM, {"error": "Unable '
'to emit metadata to DataHub GMS", "info": {"exceptionClass": "com.linkedin.restli.server.RestLiServiceException", '
'"stackTrace": "com.linkedin.restli.server.RestLiServiceException [HTTP Status:500]: INTERNAL SERVER ERROR\\n\\tat '
'com.linkedin.restli.internal.server.RestLiMethodInvoker.doInvoke(RestLiMethodInvoker.java:210)\\n\\tat '
'com.linkedin.restli.internal.server.RestLiMethodInvoker.invoke(RestLiMethodInvoker.java:333)", "message": "INTERNAL SERVER '
'ERROR", "status": 500, "id": '
'"urn:li:dataset:(urn:li:dataPlatform:snowflake,max_dev.workspace.MAX_DEV\\",\\"WORKSPACE\\".temp,PROD)"}}], "start_time": '
'"2022-09-14 23:02:25.268523 (50 minutes and 45.29 seconds ago).", "current_time": "2022-09-14 23:53:10.555770 (now).", '
'"total_duration_in_seconds": "3045.29", "gms_version": "v0.8.42", "pending_requests": "0"}}}'}
Execution finished with errors.hundreds-photographer-13496
09/15/2022, 3:41 AMhundreds-photographer-13496
09/15/2022, 6:24 AMcool-boots-36947
09/15/2022, 12:35 PMcool-boots-36947
09/15/2022, 1:00 PMcool-boots-36947
09/15/2022, 1:01 PMcool-boots-36947
09/15/2022, 1:04 PMhundreds-photographer-13496
09/15/2022, 2:54 PMcool-boots-36947
09/15/2022, 3:01 PMcool-boots-36947
09/15/2022, 5:21 PMcool-boots-36947
09/15/2022, 5:59 PMcool-boots-36947
09/15/2022, 5:59 PM"profile_candidates": {}, "start_time": "2022-09-15 17:07:23.832015", "running_time_in_seconds": "2082", '
'"include_usage_stats": "True", "include_operational_stats": "True", "include_technical_schema": "True", '
'"table_lineage_query_secs": "321.60150102712214", "view_upstream_lineage_query_secs": "26.883752648020163", '
'"view_downstream_lineage_query_secs": "255.40169666311704", "external_lineage_queries_secs": "235.59301565494388"}}, "sink": '
'{"type": "datahub-rest", "report": {"total_records_written": "64948", "records_written_per_second": "31", "warnings": [], '
'"failures": [{"error": "Unable to emit metadata to DataHub GMS", "info": {"exceptionClass": '
'"com.linkedin.restli.server.RestLiServiceException", "stackTrace": "com.linkedin.restli.server.RestLiServiceException [HTTP '
'Status:500]: INTERNAL SERVER ERROR\\n\\tat '
'com.linkedin.restli.internal.server.RestLiMethodInvoker.doInvoke(RestLiMethodInvoker.java:210)\\n\\tat '
'com.linkedin.restli.internal.server.RestLiMethodInvoker.invoke(RestLiMethodInvoker.java:333)", "message": "INTERNAL SERVER '
'ERROR", "status": 500}}, {"error": "Unable to emit metadata to DataHub GMS", "info": {"exceptionClass": '
'"com.linkedin.restli.server.RestLiServiceException", "stackTrace": "com.linkedin.restli.server.RestLiServiceException [HTTP '
'Status:500]: INTERNAL SERVER ERROR\\n\\tat '
'com.linkedin.restli.internal.server.RestLiMethodInvoker.doInvoke(RestLiMethodInvoker.java:210)\\n\\tat '
'com.linkedin.restli.internal.server.RestLiMethodInvoker.invoke(RestLiMethodInvoker.java:333)", "message": "INTERNAL SERVER '
'ERROR", "status": 500}}, {"error": "Unable to emit metadata to DataHub GMS", "info": {"exceptionClass": '
'"com.linkedin.restli.server.RestLiServiceException", "stackTrace": "com.linkedin.restli.server.RestLiServiceException [HTTP '
'Status:500]: INTERNAL SERVER ERROR\\n\\tat '
'com.linkedin.restli.internal.server.RestLiMethodInvoker.doInvoke(RestLiMethodInvoker.java:210)\\n\\tat '
'com.linkedin.restli.internal.server.RestLiMethodInvoker.invoke(RestLiMethodInvoker.java:333)", "message": "INTERNAL SERVER '
'ERROR", "status": 500}}, {"error": "Unable to emit metadata to DataHub GMS", "info": {"exceptionClass": '
'"com.linkedin.restli.server.RestLiServiceException", "stackTrace": "com.linkedin.restli.server.RestLiServiceException [HTTP '
'Status:500]: INTERNAL SERVER ERROR\\n\\tat '
'com.linkedin.restli.internal.server.RestLiMethodInvoker.doInvoke(RestLiMethodInvoker.java:210)\\n\\tat '
'com.linkedin.restli.internal.server.RestLiMethodInvoker.invoke(RestLiMethodInvoker.java:333)", "message": "INTERNAL SERVER '
'ERROR", "status": 500}}, {"error": "Unable to emit metadata to DataHub GMS", "info": {"exceptionClass": '
'"com.linkedin.restli.server.RestLiServiceException", "stackTrace": "com.linkedin.restli.server.RestLiServiceException [HTTP '
'Status:500]: INTERNAL SERVER ERROR\\n\\tat '
'com.linkedin.restli.internal.server.RestLiMethodInvoker.doInvoke(RestLiMethodInvoker.java:210)\\n\\tat '
'com.linkedin.restli.internal.server.RestLiMethodInvoker.invoke(RestLiMethodInvoker.java:333)", "message": "INTERNAL SERVER '
'ERROR", "status": 500}}], "start_time": "2022-09-15 17:07:21.342508", "current_time": "2022-09-15 17:42:06.802729", '
'"total_duration_in_seconds": "2085.46", "gms_version": "v0.8.42", "pending_requests": "0"}}}'}
Execution finished with errors.cool-boots-36947
09/15/2022, 7:22 PMgray-shoe-75895
09/15/2022, 9:12 PMgray-shoe-75895
09/15/2022, 9:13 PMcool-boots-36947
09/15/2022, 9:13 PMgray-shoe-75895
09/15/2022, 9:15 PMcool-boots-36947
09/15/2022, 9:16 PMcool-boots-36947
09/15/2022, 9:16 PMcool-boots-36947
09/15/2022, 9:16 PMgray-shoe-75895
09/15/2022, 9:25 PMcool-boots-36947
09/15/2022, 9:32 PMcool-boots-36947
09/15/2022, 9:32 PMcool-boots-36947
09/15/2022, 9:56 PMgray-shoe-75895
09/15/2022, 10:35 PMgray-shoe-75895
09/15/2022, 10:35 PM