jaceksan opened a new issue #2320: URL: https://github.com/apache/drill/issues/2320
**Is your feature request related to a problem? Please describe.** We have to handle certain SqlStates by parsing exception text, which is dangerous taking future changes into account. Particularly we need to handle: - table does not exists when dropping or selecting a table - table already exists when creating a table **Describe the solution you'd like** SqlState is filled with deterministic codes. **Describe alternatives you've considered** We have to handle certain SqlStates by parsing exception text, which is dangerous taking future changes into account. **Additional context** My use case: we create cache tables in Drill/Dremio and register related metadata about those tables in our Redis. It may happen that cache table disappears or Redis is purged. Then we may try to create duplicate table or drop non-existing table. We need to be able to detect TABLE DOES NOT EXIST and TABLE ALREADY EXISTS states and react accordingly. Parsing exception text is definitely not optimal solution, message can be changed and bad things can happen. -- 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]
