-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Exasol: IMPORT/EXPORT #2256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exasol: IMPORT/EXPORT #2256
Conversation
Implement Exasol EXPORT statement (see https://docs.exasol.com/db/latest/sql/export.htm)
Thank you for your contribution, I will look into it over the weekend. a) your tests look super slow in general (I am recording only 80 ms on a cheap laptop) Not a real concern or show stopper, I am just curious! |
4db2a71
to
40f916d
Compare
Yes, the benchmark results are super high. Probably because I had quite a few other tools and tasks running consuming lots of CPU and memory. However, my specifications are 32GB of RAM and an Intel Core i7-1185G7 (3.00GHz) CPU. I've just reexecuted the benchmark (inside WSL) while having lower load on the machine, but the results are still a bit high although the variances are lower:
|
I have benchmarked your branch on my laptop and get more reasonable results:
Although there is a deterioration in performance I think we can accept that. |
Hi @manticore-projects , |
Good Morning Stefan, the decision is all yours because you understand your implementation best.
Best way would be to have RDBMS specific parsers and I will look for ways to achieve that soon.
(This is an abstract illustration only, of course.) My hope and goal was to reduce the performance penalty for common RDMS and use-cases to a minimum. |
Example: line 4663/4664
could be changed into:
|
You have introduced new tokens Beside that we are good to merge! |
Greetings! I have added already a new Feature for |
Thank you very much for your support and effort on this. I've implemented the feature flag for EXPORT and IMPORT statements including the Furthermore, I've added tests for RTRIM and LTRIM functions in order to ensure, there is no clash between the keywords and usage of functions (see 3b74289). If you don't have any further suggestions or concerns, we are good to merge from my point of view. |
3a0438c
to
82e2f78
Compare
Thank you very much, excellent work and I am going to merge this. Interestingly, the performance deterioration is all about the addition tokens and the white listing of such tokens for Object Identifiers. Your productions have no impact. So in the future I will need to look for a way to reduce those tokens again (especially any token used less than 3 times in the grammar). Also, the |
This PR adds support for Exasols IMPORT and EXPORT statements:
https://docs.exasol.com/db/latest/sql/import.htm
https://docs.exasol.com/db/latest/sql/export.htm
The JMH benchmark looks good on my machine: