test_class.file: parser/src/test/java/com/qihoo/qsql/org/apache/calcite/tools/FrameworksTest.java
test_class.identifier: FrameworksTest
test_case.body: @Test public void testJdbcValues() throws Exception {
      CalciteAssert.that()
          .with(CalciteAssert.SchemaSpec.JDBC_SCOTT)
          .doWithConnection(connection -> {
            try {
              final FrameworkConfig config = Frameworks.newConfigBuilder()
                  .defaultSchema(connection.getRootSchema())
                  .build();
              final RelBuilder builder = RelBuilder.create(config);
              final RelRunner runner = connection.unwrap(RelRunner.class);
  
              final RelNode values =
                  builder.values(new String[]{"a", "b"}, "X", 1, "Y", 2)
                      .project(builder.field("a"))
                      .build();
  
              // If you run the "values" query before the "scan" query,
              // everything works fine. JdbcValues is never instantiated in any
              // of the 3 queries.
              if (false) {
                runner.prepare(values).executeQuery();
              }
  
              final RelNode scan = builder.scan("JDBC_SCOTT", "EMP").build();
              runner.prepare(scan).executeQuery();
              builder.clear();
  
              // running this after the scott query causes the exception
              RelRunner runner2 = connection.unwrap(RelRunner.class);
              runner2.prepare(values).executeQuery();
            } catch (Exception e) {
              throw TestUtil.rethrow(e);
            }
          });
    }
test_case.class_method_signature: FrameworksTest.testJdbcValues()
test_case.full_signature: @Test public void testJdbcValues()
test_case.identifier: testJdbcValues
test_case.invocations: doWithConnection with that build defaultSchema newConfigBuilder getRootSchema create unwrap build project values field executeQuery prepare build scan executeQuery prepare clear unwrap executeQuery prepare rethrow
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testJdbcValues()
focal_class.file: parser/src/main/java/com/qihoo/qsql/org/apache/calcite/tools/Frameworks.java
focal_class.identifier: Frameworks
focal_class.class_method_signature: Frameworks.Frameworks()
focal_class.full_signature: private  Frameworks()
focal_class.identifier: Frameworks
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  Frameworks()
focal_class.class_method_signature: Frameworks.getPlanner(FrameworkConfig config)
focal_class.full_signature: public static Planner getPlanner(FrameworkConfig config)
focal_class.identifier: getPlanner
focal_class.modifiers: public static
focal_class.parameters: (FrameworkConfig config)
focal_class.return: Planner
focal_class.signature: Planner getPlanner(FrameworkConfig config)
focal_class.class_method_signature: Frameworks.withPlanner(final PlannerAction<R> action,
        final FrameworkConfig config)
focal_class.full_signature: public static R withPlanner(final PlannerAction<R> action,
        final FrameworkConfig config)
focal_class.identifier: withPlanner
focal_class.modifiers: public static
focal_class.parameters: (final PlannerAction<R> action,
        final FrameworkConfig config)
focal_class.return: R
focal_class.signature: R withPlanner(final PlannerAction<R> action,
        final FrameworkConfig config)
focal_class.class_method_signature: Frameworks.withPlanner(final PlannerAction<R> action)
focal_class.full_signature: public static R withPlanner(final PlannerAction<R> action)
focal_class.identifier: withPlanner
focal_class.modifiers: public static
focal_class.parameters: (final PlannerAction<R> action)
focal_class.return: R
focal_class.signature: R withPlanner(final PlannerAction<R> action)
focal_class.class_method_signature: Frameworks.withPrepare(PrepareAction<R> action)
focal_class.full_signature: @Deprecated // to be removed before 2.0 public static R withPrepare(PrepareAction<R> action)
focal_class.identifier: withPrepare
focal_class.modifiers: @Deprecated // to be removed before 2.0 public static
focal_class.parameters: (PrepareAction<R> action)
focal_class.return: R
focal_class.signature: R withPrepare(PrepareAction<R> action)
focal_class.class_method_signature: Frameworks.withPrepare(BasePrepareAction<R> action)
focal_class.full_signature: public static R withPrepare(BasePrepareAction<R> action)
focal_class.identifier: withPrepare
focal_class.modifiers: public static
focal_class.parameters: (BasePrepareAction<R> action)
focal_class.return: R
focal_class.signature: R withPrepare(BasePrepareAction<R> action)
focal_class.class_method_signature: Frameworks.withPrepare(FrameworkConfig config,
        BasePrepareAction<R> action)
focal_class.full_signature: public static R withPrepare(FrameworkConfig config,
        BasePrepareAction<R> action)
focal_class.identifier: withPrepare
focal_class.modifiers: public static
focal_class.parameters: (FrameworkConfig config,
        BasePrepareAction<R> action)
focal_class.return: R
focal_class.signature: R withPrepare(FrameworkConfig config,
        BasePrepareAction<R> action)
focal_class.class_method_signature: Frameworks.createRootSchema(boolean addMetadataSchema)
focal_class.full_signature: public static SchemaPlus createRootSchema(boolean addMetadataSchema)
focal_class.identifier: createRootSchema
focal_class.modifiers: public static
focal_class.parameters: (boolean addMetadataSchema)
focal_class.return: SchemaPlus
focal_class.signature: SchemaPlus createRootSchema(boolean addMetadataSchema)
focal_class.class_method_signature: Frameworks.newConfigBuilder()
focal_class.full_signature: public static ConfigBuilder newConfigBuilder()
focal_class.identifier: newConfigBuilder
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: ConfigBuilder
focal_class.signature: ConfigBuilder newConfigBuilder()
focal_class.class_method_signature: Frameworks.newConfigBuilder(FrameworkConfig config)
focal_class.full_signature: public static ConfigBuilder newConfigBuilder(FrameworkConfig config)
focal_class.identifier: newConfigBuilder
focal_class.modifiers: public static
focal_class.parameters: (FrameworkConfig config)
focal_class.return: ConfigBuilder
focal_class.signature: ConfigBuilder newConfigBuilder(FrameworkConfig config)
focal_method.body: public static ConfigBuilder newConfigBuilder() {
      return new ConfigBuilder();
    }
focal_method.class_method_signature: Frameworks.newConfigBuilder()
focal_method.full_signature: public static ConfigBuilder newConfigBuilder()
focal_method.identifier: newConfigBuilder
focal_method.modifiers: public static
focal_method.parameters: ()
focal_method.return: ConfigBuilder
focal_method.signature: ConfigBuilder newConfigBuilder()