Closed RayetSena closed 8 months ago
I think this is likely to be due to rate limiting on the API you're querying. Each FROM http.feed.____
clause you've got is going to result in a separate HTTP request to the API, and probably too many of those are being sent in too short a space of time for the server's liking. I can't remember if @cgivre added a throttling feature to the HTTP plugin but another possibility might be to split the query into a few pieces, which you could separate by delays, using CTAS to keep retrieved data around locally for later queries that rely on it.
One more thing... I was wrong. There are some throttling parameters. You can set the timeout parameter as well as a retryDelay parameter.
Best,
-- C
On Jan 10, 2024, at 02:54, James Turton @.***> wrote:
I think this is likely to be due to rate limiting on the API you're querying. Each FROM http.feed.____ clause you've got is going to result in a separate HTTP request to the API, and probably too many of those are being sent in too short a space of time for the server's liking. I can't remember if @cgivre https://github.com/cgivre added a throttling feature to the HTTP plugin but another possibility might be to split the query into a few pieces using CTAS to keep retrieved data around locally for later queries that rely on it.
— Reply to this email directly, view it on GitHub https://github.com/apache/drill/issues/2869#issuecomment-1884350260, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABKB7PU2W4CRC676LRBAE23YNZCMPAVCNFSM6AAAAABBSY4EASVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBUGM2TAMRWGA. You are receiving this because you were mentioned.
Hello, When I make a query, I sometimes get the result I expect, but I usually get a timeout error. The result contains only 3000 rows and 3 columns. I use the http plugin for my query; you can see its configuration below. I checked for network issues and timeout settings, but I keep getting the error. When I use a more complex query, I almost always get an error. I added both queries to the below.
Configuration
Expected behavior Query
Error detail, log output or screenshots
Drill version 1.21.1
Additional context Complex Query