tagomoris / presto-client-node

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

Set Presto Session variables #5

Closed tarekrached closed 7 years ago

tagomoris commented 7 years ago

Could you add any descriptions or links about documents for that http header?

tarekrached commented 7 years ago

The X-Presto-Session header is actually poorly documented in the presto docs, but it's the only way to set presto session properties when querying via the REST API. I found out about it via this self-answered StackOverflow question (and that one vote is mine).

The header itself isn't referenced at all on prestodb.io. Here it is defined in the presto source, and here it's used.

I linked to the StackOverflow question in README.md, let me know if you'd like to see more.

tagomoris commented 7 years ago

I got it. LGTM. Thank you!