You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2021/03/01 19:05:40 UTC

[GitHub] [druid] EwanValentine opened a new issue #10931: Question: am I able to use `x-jackson-smile` over the SQL endpoint?

EwanValentine opened a new issue #10931:
URL: https://github.com/apache/druid/issues/10931


   As the title says, I'm attempting to query the SQL v2 API endpoint, with `Accept: x-jackson-smile` set, however I get a `406` error. 
   
   Apologies if this is a silly question, new to Druid.
   
   Thanks in advance!


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


[GitHub] [druid] EwanValentine commented on issue #10931: Question: am I able to use `x-jackson-smile` over the SQL endpoint?

Posted by GitBox <gi...@apache.org>.
EwanValentine commented on issue #10931:
URL: https://github.com/apache/druid/issues/10931#issuecomment-788770262


   @FrankChen021 that's not for the SQL endpoint though is it? 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


[GitHub] [druid] clintropolis commented on issue #10931: Question: am I able to use `x-jackson-smile` over the SQL endpoint?

Posted by GitBox <gi...@apache.org>.
clintropolis commented on issue #10931:
URL: https://github.com/apache/druid/issues/10931#issuecomment-789561654


   Hmm, yeah it actually looks like the SQL endpoint doesn't accept or respond with Smile, https://github.com/apache/druid/blob/master/sql/src/main/java/org/apache/druid/sql/http/SqlResource.java#L85 (compare with native query endpoint: https://github.com/apache/druid/blob/master/server/src/main/java/org/apache/druid/server/QueryResource.java#L174).
   
   I'm unsure if this is an oversight or if there is a reason it is like this.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


[GitHub] [druid] FrankChen021 commented on issue #10931: Question: am I able to use `x-jackson-smile` over the SQL endpoint?

Posted by GitBox <gi...@apache.org>.
FrankChen021 commented on issue #10931:
URL: https://github.com/apache/druid/issues/10931#issuecomment-791345958


   I am so curious that why you want to use smile encoding ?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


[GitHub] [druid] FrankChen021 commented on issue #10931: Question: am I able to use `x-jackson-smile` over the SQL endpoint?

Posted by GitBox <gi...@apache.org>.
FrankChen021 commented on issue #10931:
URL: https://github.com/apache/druid/issues/10931#issuecomment-788527856


   The header should be `Accept:application/x-jackson-smile` according to the [doc](https://druid.apache.org/docs/latest/querying/querying.html)
   
   > The Content-Type/Accept Headers can also take 'application/x-jackson-smile'.
   > ```
   >  curl -X POST '<queryable_host>:<port>/druid/v2/?pretty' -H 'Content-Type:application/json' -H 'Accept:application/x-jackson-smile' -d @<query_json_file>
   > ```
   > > If the Accept header is not provided, it defaults to the value of 'Content-Type' header.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


[GitHub] [druid] EwanValentine edited a comment on issue #10931: Question: am I able to use `x-jackson-smile` over the SQL endpoint?

Posted by GitBox <gi...@apache.org>.
EwanValentine edited a comment on issue #10931:
URL: https://github.com/apache/druid/issues/10931#issuecomment-788770262






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org