Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new:dev:Upgrade Apache Calcite to 1.13 #95

Merged
merged 13 commits into from
Jul 10, 2017
Prev Previous commit
Next Next commit
Initialize schema after defaultSchema is set
  • Loading branch information
Rajat Venkatesh committed Jun 20, 2017
commit 4aebe4bf679e87b529e03cd3d87d8b58d2b0681a
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,15 @@ public QueryContext(Properties info) throws QuarkException {
SchemaPlus schemaPlus = rootSchema.add(schema.getName(), schema);
schema.setSchemaPlus(schemaPlus);
}
for (QuarkSchema schema : schemas) {
schema.initialize(this);
}
if (info.getProperty("defaultSchema") == null) {
throw new QuarkException(new Throwable("Default schema has to be specified"));
}
final ObjectMapper mapper = new ObjectMapper();
defaultSchema =
Arrays.asList(mapper.readValue(info.getProperty("defaultSchema"), String[].class));
for (QuarkSchema schema : schemas) {
schema.initialize(this);
}
}
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException
| IOException e) {
Expand Down