Search in sources :

Example 1 with BaseJdbcRowExpressionConverter

use of io.prestosql.plugin.jdbc.optimization.BaseJdbcRowExpressionConverter in project hetu-core by openlookeng.

the class TestApplyRemoteFunctionPushDown method setup.

@BeforeTest
public void setup() {
    BaseJdbcConfig baseJdbcConfig = new BaseJdbcConfig();
    baseJdbcConfig.setPushDownExternalFunctionNamespace("jdbc.v1");
    TesterParameter testerParameter = TesterParameter.getTesterParameter();
    this.baseJdbcRowExpressionConverter = new BaseJdbcRowExpressionConverter(testerParameter.getMetadata().getFunctionAndTypeManager(), testerParameter.getFunctionResolution(), testerParameter.getRowExpressionService(), testerParameter.getDeterminismEvaluator());
    this.applyRemoteFunctionPushDown = new TestingApplyRemoteFunctionPushDown(baseJdbcConfig, "foo");
    columnA = planSymbolAllocator.newSymbol("a", BIGINT);
}
Also used : TesterParameter(io.prestosql.plugin.jdbc.optimization.TesterParameter) BaseJdbcRowExpressionConverter(io.prestosql.plugin.jdbc.optimization.BaseJdbcRowExpressionConverter) BaseJdbcConfig(io.prestosql.plugin.jdbc.BaseJdbcConfig) BeforeTest(org.testng.annotations.BeforeTest)

Aggregations

BaseJdbcConfig (io.prestosql.plugin.jdbc.BaseJdbcConfig)1 BaseJdbcRowExpressionConverter (io.prestosql.plugin.jdbc.optimization.BaseJdbcRowExpressionConverter)1 TesterParameter (io.prestosql.plugin.jdbc.optimization.TesterParameter)1 BeforeTest (org.testng.annotations.BeforeTest)1