tagomoris / presto-client-node

Distributed query engine Presto client library for node.js
MIT License
126 stars 57 forks source link

Prepare statement too large for header #90

Closed patxu closed 1 month ago

patxu commented 1 month ago

I'm passing in a large prepare query but unfortunately getting a response like Error: execution error: Bad Message 431 reason: Request Header Fields Too Large. These queries are defined by 3rd parties so I don't have direct control over it.

My goal is to DESCRIBE OUTPUT preparedQuery, but I can't do this if preparing the query fails. Any workaround or suggestions?

tagomoris commented 1 month ago

I have completely no idea which HTTP headers you're sending or what query engine you're using (Presto or Trino, version, etc). The most important thing is that you should have control of our query by yourself. Anyway, I don't know anything about it. How about dump and check the all headers and the request body then check Presto/Trino's limitations of those things?