<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Phoenix Query Server does not return results (HDP 2.5) in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Server-does-not-return-results-HDP-2-5/m-p/134667#M43722</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I use HDP 2.5 on Azure (HDInsight Template : HDI 3.5)&lt;/P&gt;&lt;P&gt;When I query  Phoenix with PQS with PhoenixDb + Python or curl, I got no results but this message 
Do you have any idea why ?&lt;/P&gt;&lt;P&gt;{"response":"executeResults","missingStatement":false,"rpcMetadata":{"response":"rpcMetadata","serverAddress":"xxx-xxxxxx:8765"},"results":[{"response":"resultSet","connectionId":"000000-0000-0000-00000000","statementId":1,"ownStatement":true,"signature":{"columns":[{"ordinal":0,"autoIncrement":false,"caseSensitive":false,"searchable":true,"currency":false,"nullable":0,"signed":true,"displaySize":40,"label":"COMPANY_ID","columnName":"COMPANY_ID","schemaName":"","precision":0,"scale":0,"tableName":"COMPANY","catalogName":"","type":{"type":"scalar","id":4,"name":"INTEGER","rep":"PRIMITIVE_INT"},"readOnly":true,"writable":false,"definitelyWritable":false,"columnClassName":"java.lang.Integer"},{"ordinal":1,"autoIncrement":false,"caseSensitive":false,"searchable":true,"currency":false,"nullable":1,"signed":false,"displaySize":225,"label":"NAME","columnName":"NAME","schemaName":"","precision":225,"scale":0,"tableName":"COMPANY","catalogName":"","type":{"type":"scalar","id":12,"name":"VARCHAR","rep":"STRING"},"readOnly":true,"writable":false,"definitelyWritable":false,"columnClassName":"java.lang.String"}],"sql":null,"parameters":[],"cursorFactory":{"style":"LIST","clazz":null,"fieldNames":null},"statementType":null},"firstFrame":{"offset":0,"done":true,"rows":[]},"updateCount":-1,"rpcMetadata":{"response":"rpcMetadata","serverAddress":"xxx-xxxxx:8765"}}]}&lt;/P&gt;&lt;P&gt;CREATE TABLE Company (COMPANY_ID INTEGER PRIMARY KEY, NAME VARCHAR(225)); &lt;/P&gt;&lt;P&gt;UPSERT INTO Company VALUES(1, 'Microsoft');&lt;/P&gt;&lt;P&gt;curl -XPOST -H 'request:{"request":"openConnection","connectionId":"000000-0000-0000-00000000"}' &amp;lt;URL&amp;gt; --user xxxxxxxx:xxxxxxxx --basic --insecure -v -d '' &lt;/P&gt;&lt;P&gt;curl -XPOST -H 'request:{"request":"createStatement","connectionId":"000000-0000-0000-00000000"}' &amp;lt;URL&amp;gt; --user xxxxxxxx:xxxxxxxx --basic --insecure -v -d '' &lt;/P&gt;&lt;P&gt;curl -XPOST -H 'request:{"request":"prepareAndExecute","connectionId":"000000-0000-0000-00000000","statementId": 1,"sql": "SELECT * FROM COMPANY","maxRowCount":-1}' &amp;lt;URL&amp;gt; --user xxxxxxxx:xxxxxxxx --basic --insecure -v -d ''&lt;/P&gt;</description>
    <pubDate>Mon, 17 Oct 2016 18:38:15 GMT</pubDate>
    <dc:creator>alexandre1</dc:creator>
    <dc:date>2016-10-17T18:38:15Z</dc:date>
    <item>
      <title>Phoenix Query Server does not return results (HDP 2.5)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Server-does-not-return-results-HDP-2-5/m-p/134667#M43722</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I use HDP 2.5 on Azure (HDInsight Template : HDI 3.5)&lt;/P&gt;&lt;P&gt;When I query  Phoenix with PQS with PhoenixDb + Python or curl, I got no results but this message 
Do you have any idea why ?&lt;/P&gt;&lt;P&gt;{"response":"executeResults","missingStatement":false,"rpcMetadata":{"response":"rpcMetadata","serverAddress":"xxx-xxxxxx:8765"},"results":[{"response":"resultSet","connectionId":"000000-0000-0000-00000000","statementId":1,"ownStatement":true,"signature":{"columns":[{"ordinal":0,"autoIncrement":false,"caseSensitive":false,"searchable":true,"currency":false,"nullable":0,"signed":true,"displaySize":40,"label":"COMPANY_ID","columnName":"COMPANY_ID","schemaName":"","precision":0,"scale":0,"tableName":"COMPANY","catalogName":"","type":{"type":"scalar","id":4,"name":"INTEGER","rep":"PRIMITIVE_INT"},"readOnly":true,"writable":false,"definitelyWritable":false,"columnClassName":"java.lang.Integer"},{"ordinal":1,"autoIncrement":false,"caseSensitive":false,"searchable":true,"currency":false,"nullable":1,"signed":false,"displaySize":225,"label":"NAME","columnName":"NAME","schemaName":"","precision":225,"scale":0,"tableName":"COMPANY","catalogName":"","type":{"type":"scalar","id":12,"name":"VARCHAR","rep":"STRING"},"readOnly":true,"writable":false,"definitelyWritable":false,"columnClassName":"java.lang.String"}],"sql":null,"parameters":[],"cursorFactory":{"style":"LIST","clazz":null,"fieldNames":null},"statementType":null},"firstFrame":{"offset":0,"done":true,"rows":[]},"updateCount":-1,"rpcMetadata":{"response":"rpcMetadata","serverAddress":"xxx-xxxxx:8765"}}]}&lt;/P&gt;&lt;P&gt;CREATE TABLE Company (COMPANY_ID INTEGER PRIMARY KEY, NAME VARCHAR(225)); &lt;/P&gt;&lt;P&gt;UPSERT INTO Company VALUES(1, 'Microsoft');&lt;/P&gt;&lt;P&gt;curl -XPOST -H 'request:{"request":"openConnection","connectionId":"000000-0000-0000-00000000"}' &amp;lt;URL&amp;gt; --user xxxxxxxx:xxxxxxxx --basic --insecure -v -d '' &lt;/P&gt;&lt;P&gt;curl -XPOST -H 'request:{"request":"createStatement","connectionId":"000000-0000-0000-00000000"}' &amp;lt;URL&amp;gt; --user xxxxxxxx:xxxxxxxx --basic --insecure -v -d '' &lt;/P&gt;&lt;P&gt;curl -XPOST -H 'request:{"request":"prepareAndExecute","connectionId":"000000-0000-0000-00000000","statementId": 1,"sql": "SELECT * FROM COMPANY","maxRowCount":-1}' &amp;lt;URL&amp;gt; --user xxxxxxxx:xxxxxxxx --basic --insecure -v -d ''&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2016 18:38:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Server-does-not-return-results-HDP-2-5/m-p/134667#M43722</guid>
      <dc:creator>alexandre1</dc:creator>
      <dc:date>2016-10-17T18:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix Query Server does not return results (HDP 2.5)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Server-does-not-return-results-HDP-2-5/m-p/134668#M43723</link>
      <description>&lt;PRE&gt;"firstFrame":{"offset":0,"done":true,"rows":[]}&lt;/PRE&gt;&lt;P&gt;Is showing that there were no results read from your query. Can you verify that the results are actually present in your table?&lt;/P&gt;&lt;P&gt;Also, I do not believe the author is maintaining the Python PhoenixDB library. Please refer to the official Apache Calcite Avatica documentation on how to use the JSON API: &lt;A href="http://calcite.apache.org/avatica/docs/json_reference.html" target="_blank"&gt;http://calcite.apache.org/avatica/docs/json_reference.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2016 22:10:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Server-does-not-return-results-HDP-2-5/m-p/134668#M43723</guid>
      <dc:creator>elserj</dc:creator>
      <dc:date>2016-10-17T22:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix Query Server does not return results (HDP 2.5)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Server-does-not-return-results-HDP-2-5/m-p/134669#M43724</link>
      <description>&lt;P&gt;I don't think the problem is related to phoenixdb since i used curl also to check if it's a driver's problem
I downgraded the version of HDI to 3.4 and it works again&lt;/P&gt;&lt;P&gt;I will try another upgrade later and will let you know if I have the problem again&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2016 14:40:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Server-does-not-return-results-HDP-2-5/m-p/134669#M43724</guid>
      <dc:creator>alexandre1</dc:creator>
      <dc:date>2016-10-18T14:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix Query Server does not return results (HDP 2.5)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Server-does-not-return-results-HDP-2-5/m-p/134670#M43725</link>
      <description>&lt;P&gt;Turns out this was a bug in the Phoenix Query Server (technically Apache Avatica): &lt;A href="https://issues.apache.org/jira/browse/CALCITE-1458" target="_blank"&gt;https://issues.apache.org/jira/browse/CALCITE-1458&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The author of the Phoenix-Sharp (C# driver) &lt;A href="https://github.com/Azure/hdinsight-phoenix-sharp" target="_blank"&gt;https://github.com/Azure/hdinsight-phoenix-sharp&lt;/A&gt; had a similar problem to what you were saying. What happens is that a change in serialization was not made fully backwards compatible and the attribute which the phoenixdb driver was likely expected (I have not verified this) was no longer being serialized over the wire. As such, the server was sending the data back in an attribute the client was not aware existed.&lt;/P&gt;&lt;P&gt;I have a fix I'm putting up on CALCITE-1458 shortly which should address the issue without requiring a change in the client.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2016 23:22:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Server-does-not-return-results-HDP-2-5/m-p/134670#M43725</guid>
      <dc:creator>elserj</dc:creator>
      <dc:date>2016-10-21T23:22:09Z</dc:date>
    </item>
  </channel>
</rss>

