nutritious-train-7865
11/18/2021, 2:19 PMsource:
type: trino
config:
# Coordinates
host_port: xxxx
database: xxxx
# Credentials
username: xxxx
password: xxxx
sink:
type: "file"
config:
filename: "./example_output_mces.json"
I was getting this error:
DBAPIError: (trino.exceptions.FailedToObtainAddedPrepareHeader)
[SQL: SELECT "table_name"
FROM "information_schema"."tables"
WHERE "table_schema" = ? and "table_type" != 'VIEW']
Can anybody help me with it?miniature-tiger-96062
11/18/2021, 4:45 PMminiature-tiger-96062
11/18/2021, 7:43 PMnutritious-train-7865
11/19/2021, 6:37 AMX-Trino-Added-Prepare from the response_headers when the trino connector try to get the table names for a specific schema name
File "/Users/houren.chen/datahub/datahub/datahub-python/lib/python3.9/site-packages/trino/dbapi.py", line 274, in _prepare_statement
240 def _prepare_statement(self, operation, statement_name):
(...)
270
271 if constants.HEADER_ADDED_PREPARE in response_headers:
272 return response_headers[constants.HEADER_ADDED_PREPARE]
273
--> 274 raise trino.exceptions.FailedToObtainAddedPrepareHeader
..................................................
self = <trino.dbapi.Cursor object at 0x1357598b0>
operation = 'SELECT "table_name"\nFROM "information_schema"."tables"\nWHERE "table_schema" = ? and "table_type" != \'VIEW\''
statement_name = 'st_a786a843d14243d491ca1d09a90971c6'
constants.HEADER_ADDED_PREPARE = 'X-Trino-Added-Prepare'
response_headers = {'Date': 'Fri, 19 Nov 2021 05:39:52 GMT', 'Content-Type': 'application/json', 'Content-Length': '592', 'Connection': 'ke
ep-alive', 'Cache-Control': 'max-age=300'}
trino.exceptions.FailedToObtainAddedPrepareHeader = <class 'trino.exceptions.FailedToObtainAddedPrepareHeader'>dazzling-judge-80093
11/19/2021, 9:01 AMnutritious-train-7865
11/19/2021, 9:23 AMdazzling-judge-80093
11/19/2021, 9:24 AMboundless-student-48844
11/19/2021, 11:33 AMhundreds-photographer-13496
11/19/2021, 1:00 PMhundreds-photographer-13496
11/19/2021, 1:06 PMboundless-student-48844
11/19/2021, 1:26 PMdazzling-judge-80093
11/19/2021, 1:56 PMX-Trino-Added-Prepare from the server and my gut feeling this header is returned only by Trino servers and not by Presto ones.boundless-student-48844
11/19/2021, 2:02 PMboundless-student-48844
11/19/2021, 2:03 PMhow is the Hive connector different from Trino connector?We tried with hive plugin before and it worked. But i suspect the Hive plugin cannot ingest Presto/Trino views
nutritious-train-7865
11/19/2021, 2:28 PMhundreds-photographer-13496
11/22/2021, 9:31 AMboundless-student-48844
11/22/2021, 2:29 PMnutritious-train-7865
12/20/2021, 4:35 PMTrinoExternalError for the trino_hive_to_file part in the test_trino.py, could you advise me on it?nutritious-train-7865
12/20/2021, 4:35 PMhundreds-photographer-13496
12/21/2021, 6:57 AMnutritious-train-7865
12/21/2021, 7:15 AMnutritious-train-7865
12/21/2021, 10:42 AMtest_trino.py and failed the test. So I was thinking to increase the memory might work. Thanks a lot for your help!stocky-midnight-78204
03/28/2022, 8:12 AM