letian-jiang commented on PR #3086:
URL: https://github.com/apache/drill/pull/3086#issuecomment-6690011084

   @cgivre I’ve added a general fallback: when parameterized planning fails, 
Drill logs the SQL template and exception at WARN, then retries the original 
SQL with a fresh parser, converter and handler, bypassing the cache.
   
   `planner.enable_plan_cache_fallback` defaults to `true`; setting it to 
`false` exposes the parameterized-planning error without this retry.
   
   `drill.plan_cache.planning_failures` increments only when parameterized 
planning fails but ordinary planning succeeds. This can produce false 
positives: transient metadata changes or resource conditions may allow the 
second attempt to succeed even when parameterization did not cause the first 
failure. The option and counter semantics are documented.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to