Closed juripetersen closed 8 months ago
The SqlContext's constructor hard-codes three platforms and provides no options to customise the desired plugins and therefore used platforms:
public SqlContext(Configuration configuration) throws SQLException { Configuration configuration1 = configuration.fork(String.format("SqlContext(%s)", configuration.getName())); wayangContext = new WayangContext(configuration1) .withPlugin(Java.basicPlugin()) .withPlugin(Spark.basicPlugin()) .withPlugin(Postgres.plugin()); calciteSchema = SchemaUtils.getSchema(configuration); }
A proposed solution would be to change SqlContext so that it extends WayangContext, providing the desired functionality.
SqlContext
WayangContext
@juripetersen Indeed. Can you go ahead with your proposed solution and create a PR?
@kbeedkar the PR is now linked.
The SqlContext's constructor hard-codes three platforms and provides no options to customise the desired plugins and therefore used platforms:
A proposed solution would be to change
SqlContext
so that it extendsWayangContext
, providing the desired functionality.