vladimirg-db opened a new pull request, #52875:
URL: https://github.com/apache/spark/pull/52875

   ### What changes were proposed in this pull request?
   
   Improve error for ResolveSQLOnFile - generic error does not mean that the 
data source is not supported!
   
   ### Why are the changes needed?
   
   Currently `ResolveSQLOnFile` throws 
`UNSUPPORTED_DATASOURCE_FOR_DIRECT_QUERY` for a generic failure when 
discovering files and figuring out the file schemas. This is confusing. We need 
a separate error.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Better error message.
   
   ### How was this patch tested?
   
   Updated the test.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Claude.
   


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to