Skip to content
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

How can I get ResultSetMetaData without actual execution query ? #235

Closed
tac0x2a opened this issue Sep 24, 2018 · 2 comments
Closed

How can I get ResultSetMetaData without actual execution query ? #235

tac0x2a opened this issue Sep 24, 2018 · 2 comments
Labels

Comments

@tac0x2a
Copy link
Contributor

tac0x2a commented Sep 24, 2018

Hello.

Now, I'm trying to implement of ClichHousePreparedStatementImpl#getMetaData() for making runnable on embulk-input-jdbc.

This implementation of method needs result of execution query first.
But we don't want to execute query actual.
So I want to know how can I get ResultSetMetaData without execute query actual like QUERY_DESCRIBE_ONLY in pgjdbc.

I guess, it is possible by setting arguments additionalDBParams or additionalRequestParams for ClickHouseStatementImpl#executeQuery....

Best regards,

@serebrserg
Copy link
Contributor

Hello. To get metadata without executing query one should add limit 0 to the query.
Connecting the issue with your PR #238

@enqueue
Copy link
Contributor

enqueue commented Feb 1, 2019

@tac0x2a have you tried querying meta data using a recent clickhouse-jdbc release? What are your experiences?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants