title: Phoenix doesn't display negative integer values correctly
body: <p>I am creating a HBASE table with a value of integer -17678. But when i retrieve it from pheonix it gives me a different positive value. RowKey is a composite rowkey and there is no problem with rowkey.</p>
  
  <p>Hbase insertion:</p>
  
  <pre><code>public class test
  {
  public static void main(String args[])
  {
          Configuration config = HBaseConfiguration.create();
  
            Connection connection = ConnectionFactory.createConnection(config);
            Table table = connection.getTable(TableName.valueOf("TEST"));
            Integer i=-17678;
  
            try
            {
            Put p = new Put(Bytes.toBytes("rowkey"));
            p.addColumn(Bytes.toBytes("test"),Bytes.toBytes("test"),Bytes.toBytes(i));
            table.put(p);
            }
            finally
            {
               table.close();
               connection.close();
            }
  
      }
  }
  </code></pre>
  
  <p>Phoenix retrieval:</p>
  
  <p>select CAST("Value" AS INTEGER) from TEST ;</p>
  
  <pre><code>+------------------------------------------+
  |         TO_INTEGER(test."Value")         | 
  +------------------------------------------+
  | 2147465970                               | 
  +------------------------------------------+
  </code></pre>
  
  <p>Anything wrong here? or a phoenix issue?</p>