private static JsonNode parseCommandInGS(SFStatement statement,
                                           String command)
  throws SnowflakeSQLException
  {
    Object result = null;
    // send the command to GS
    try
    {
      result = statement.executeHelper(command,
                                       "application/json",
                                       null, // bindValues
                                       false, // describeOnly
                                       false // internal
      );
    }
    catch (SFException ex)
    {
      throw new SnowflakeSQLException(ex, ex.getSqlState(),
                                      ex.getVendorCode(), ex.getParams());
    }

    JsonNode jsonNode = (JsonNode) result;
    logger.debug("response: {}", jsonNode.toString());

    SnowflakeUtil.checkErrorAndThrowException(jsonNode);
    return jsonNode;
  }
private static JsonNode parseCommandInGS ( SFStatement statement , String command ) throws SnowflakeSQLException { Object result = null ; try { result = statement . executeHelper ( command , "application/json" , null , false , false ) ; } catch ( SFException ex ) { throw new SnowflakeSQLException ( ex , ex . getSqlState ( ) , ex . getVendorCode ( ) , ex . getParams ( ) ) ; } JsonNode jsonNode = ( JsonNode ) result ; logger . debug ( "response: {}" , jsonNode . toString ( ) ) ; SnowflakeUtil . checkErrorAndThrowException ( jsonNode ) ; return jsonNode ; }
@return JSON doc containing the command options returned by GS
@throws SnowflakeSQLException