[FEATURE] CCJSqlParserUtil.parse(sqlStr) to something generic, in order to get table name #2037
Unanswered
KafkaProServerless
asked this question in
Q&A
Replies: 1 comment
-
Greetings, please check out the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello team,
This is my first post in this repository.
If not anything else, I just wanted to say thank you for this project.
It is clear, easy to use, and interesting.
Just wanted to reach out with an enhancement request.
What I am trying to do, is to get table names from different types of statements (not just select)
The example from the project, which is a select statement, is very clear.
However, this is only for select. As I need to scale this to other verbs, such as drop, insert, alter, analyze, etc... (just not want to write them all here, but imagine a lot of other verbs)
I ended up with an ugly and horrible code block which looks like this.
This code is confusing, especially I feel I am repeating
Would it be possible to have a piece of code, something like this, which would scale verbs other than select?
Thank you for your time.
Beta Was this translation helpful? Give feedback.
All reactions