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

Query method not working for large files #417

Open
jiexixi opened this issue Feb 18, 2022 · 3 comments
Open

Query method not working for large files #417

jiexixi opened this issue Feb 18, 2022 · 3 comments
Labels
needs: feedback An issue that needs feedback question

Comments

@jiexixi
Copy link

jiexixi commented Feb 18, 2022

Documentation feedback


@jiexixi jiexixi changed the title Hi there, Hi there, I tried to query some large files on crateDB with the above method but it threw the error message 'crate.client.exceptions.ProgrammingError: CircuitBreakingException[[query] Data too large, data for [http-result] would be [645922816/616mb], which is larger than the limit of [644245094/614.3mb]]'. It seems that the file has exceeded the size limit of the function. Could you please recommend a way to query the large files (around 18GB)? Feb 18, 2022
@jiexixi jiexixi changed the title Hi there, I tried to query some large files on crateDB with the above method but it threw the error message 'crate.client.exceptions.ProgrammingError: CircuitBreakingException[[query] Data too large, data for [http-result] would be [645922816/616mb], which is larger than the limit of [644245094/614.3mb]]'. It seems that the file has exceeded the size limit of the function. Could you please recommend a way to query the large files (around 18GB)? Hi there, I tried to query some large files on crateDB with the above method but it threw the error message 'crate.client.exceptions.ProgrammingError: CircuitBreakingException[[query] Data too large, data for [http-result] would be [645922816/616mb], which is larger than the limit of [644245094/614.3mb]]'. It seems that the file has exceeded the size limit of the function. Could you please recommend a way to query the large files (around 18GB)? Thank you. Feb 18, 2022
@jiexixi
Copy link
Author

jiexixi commented Feb 18, 2022

Hi there, I tried to query some large files on crateDB with the above method but it threw the error message

crate.client.exceptions.ProgrammingError: CircuitBreakingException[[query] Data too large, data for [http-result] would be [645922816/616mb], which is larger than the limit of [644245094/614.3mb]]

It seems that the file has exceeded the size limit of the function. Could you please recommend a way to query the large files (around 18GB)? Thank you.

@jiexixi jiexixi changed the title Hi there, I tried to query some large files on crateDB with the above method but it threw the error message 'crate.client.exceptions.ProgrammingError: CircuitBreakingException[[query] Data too large, data for [http-result] would be [645922816/616mb], which is larger than the limit of [644245094/614.3mb]]'. It seems that the file has exceeded the size limit of the function. Could you please recommend a way to query the large files (around 18GB)? Thank you. Query method not working for large files Feb 18, 2022
@proddata
Copy link
Member

Hi @jiexixi

To retrieve large resultsets (i.e. larger than what would fit in the heap) you need to either use a client / driver that supports a fetch size like asyncpg https://github.com/MagicStack/asyncpg or JDBC on a protocol level or run multiple sub-queries and merge the result on the client.

@amotl amotl added question needs: feedback An issue that needs feedback labels Sep 29, 2022
@amotl
Copy link
Member

amotl commented Oct 31, 2024

Hi @jiexixi,

apologies for the late reply. Relating to the title of this ticket, are you transferring large files using the CrateDB BLOB interface, or are you running SQL queries that yield large result sets, so the circuit breakers kick in?

Relating to @proddata's answer, let me also share those resources with you:

With kind regards,
Andreas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: feedback An issue that needs feedback question
Projects
None yet
Development

No branches or pull requests

3 participants