private MetaResultSet s(String s) { try { logger.debug("Running {}", s); AvaticaStatement statement = connection.createStatement(); return MetaResultSet.create(connection.id, statement.getId(), true, newSignature(s), null); } catch (Exception e) { // Wrap in RuntimeException because Avatica's abstract method declarations // didn't allow for SQLException! throw new DrillRuntimeException("Failure while attempting to get DatabaseMetadata.", e); } }
return MetaResultSet.create(connection.id, statement.getId(), true, signature, frame); } catch (SQLException e) {
private MetaResultSet s(String s) throws SQLException { try { logger.debug("Running {}", s); AvaticaStatement statement = connection.createStatement(); return MetaResultSet.create(connection.id, statement.getId(), true, DremioMetaImpl.newSignature(s), null); } catch (Exception e) { throw new SQLException("Failure while attempting to get DatabaseMetadata.", e); } }
protected MetaResultSet createResultSet( Map<String, Object> internalParameters, List<ColumnMetaData> columns, CursorFactory cursorFactory, Frame firstFrame) { try { final AvaticaStatement statement = connection.createStatement(); final Signature signature = new Signature(columns, "", Collections.<AvaticaParameter>emptyList(), internalParameters, cursorFactory, Meta.StatementType.SELECT); return MetaResultSet.create(connection.id, statement.getId(), true, signature, firstFrame); } catch (SQLException e) { throw new RuntimeException(e); } }
protected MetaResultSet createResultSet( Map<String, Object> internalParameters, List<ColumnMetaData> columns, CursorFactory cursorFactory, Frame firstFrame) { try { final AvaticaStatement statement = connection.createStatement(); final Signature signature = new Signature(columns, "", Collections.<AvaticaParameter>emptyList(), internalParameters, cursorFactory, Meta.StatementType.SELECT); return MetaResultSet.create(connection.id, statement.getId(), true, signature, firstFrame); } catch (SQLException e) { throw new RuntimeException(e); } }
protected MetaResultSet createResultSet( Map<String, Object> internalParameters, List<ColumnMetaData> columns, CursorFactory cursorFactory, Frame firstFrame) { try { final AvaticaStatement statement = connection.createStatement(); final Signature signature = new Signature(columns, "", Collections.<AvaticaParameter>emptyList(), internalParameters, cursorFactory, Meta.StatementType.SELECT); return MetaResultSet.create(connection.id, statement.getId(), true, signature, firstFrame); } catch (SQLException e) { throw new RuntimeException(e); } }
protected MetaResultSet createResultSet( Map<String, Object> internalParameters, List<ColumnMetaData> columns, CursorFactory cursorFactory, final Frame firstFrame) { try { final QuarkConnectionImpl connection = getConnection(); final AvaticaStatement statement = connection.createStatement(); final CalcitePrepare.CalciteSignature<Object> signature = new CalcitePrepare.CalciteSignature<Object>("", ImmutableList.<AvaticaParameter>of(), internalParameters, null, columns, cursorFactory, null, ImmutableList.<RelCollation>of(), -1, null, Meta.StatementType.SELECT) { @Override public Enumerable<Object> enumerable( DataContext dataContext) { return Linq4j.asEnumerable(firstFrame.rows); } }; return MetaResultSet.create(connection.id, statement.getId(), true, signature, firstFrame); } catch (SQLException e) { throw new RuntimeException(e); } }
protected MetaResultSet createResultSet( Map<String, Object> internalParameters, List<ColumnMetaData> columns, CursorFactory cursorFactory, final Frame firstFrame) { try { final CalciteConnectionImpl connection = getConnection(); final AvaticaStatement statement = connection.createStatement(); final CalcitePrepare.CalciteSignature<Object> signature = new CalcitePrepare.CalciteSignature<Object>("", ImmutableList.of(), internalParameters, null, columns, cursorFactory, null, ImmutableList.of(), -1, null, Meta.StatementType.SELECT) { @Override public Enumerable<Object> enumerable( DataContext dataContext) { return Linq4j.asEnumerable(firstFrame.rows); } }; return MetaResultSet.create(connection.id, statement.getId(), true, signature, firstFrame); } catch (SQLException e) { throw new RuntimeException(e); } }
protected MetaResultSet createResultSet( Map<String, Object> internalParameters, List<ColumnMetaData> columns, CursorFactory cursorFactory, final Frame firstFrame) { try { final CalciteConnectionImpl connection = getConnection(); final AvaticaStatement statement = connection.createStatement(); final CalcitePrepare.CalciteSignature<Object> signature = new CalcitePrepare.CalciteSignature<Object>("", ImmutableList.of(), internalParameters, null, columns, cursorFactory, null, ImmutableList.of(), -1, null, Meta.StatementType.SELECT) { @Override public Enumerable<Object> enumerable( DataContext dataContext) { return Linq4j.asEnumerable(firstFrame.rows); } }; return MetaResultSet.create(connection.id, statement.getId(), true, signature, firstFrame); } catch (SQLException e) { throw new RuntimeException(e); } }
private MetaResultSet s(String s) { try { logger.debug("Running {}", s); AvaticaStatement statement = connection.createStatement(); return MetaResultSet.create(connection.id, statement.getId(), true, newSignature(s), null); } catch (Exception e) { // Wrap in RuntimeException because Avatica's abstract method declarations // didn't allow for SQLException! throw new DrillRuntimeException("Failure while attempting to get DatabaseMetadata.", e); } }
return MetaResultSet.create(connection.id, statement.getId(), true, signature, frame); } catch (SQLException e) {
return MetaResultSet.create(connection.id, statement.getId(), true, signature, frame); } catch (SQLException e) {