Pass full session to avoid Unknown connector errors#22936
Pass full session to avoid Unknown connector errors#22936tdcmeehan merged 1 commit intoprestodb:masterfrom
Conversation
|
I was thinking about why this is, and my guess is it's because session properties from the original session could in theory alter the metadata listing itself. You wouldn't want any session properties to be applied, because what is returned by the system connector should be consistent across sessions. I think this problem of needing to check a session property value while inside the system connector is general, but also we should consider the above issue as well. So I'm thinking we should relax the validation. Basically, wherever we use |
|
When returning |
|
Any update on this? |
|
I think this should be fine. |
|
Is there any way to provide a test which would fail without this fix? |
|
The query causing the slowness is: The problem to test it is that it does not fail, it is just slow. Do you have any suggestion on how we can implement it? |
|
Any update on this? |
|
Unfortunately I don't have any quick suggestions. This should be fine to merge. |
Description
The session passed to the system connector did not retain any connector properties, so
cache.enabledproperty was not found and tasks were retried, resulting in slowness.Motivation and Context
Presto issue #19809 .
Same issue with the Delta connector. For future reference here is the trace using the Delta connector:
Impact
JDBC driver queries against Iceberg and Delta Lake tables are very slow the first time.
Contributor checklist
Release Notes
Please follow release notes guidelines and fill in the release notes below.