I'm using Calcite to query from both MySql and Vertica.
When running this query:
statement.executeQuery(
"SELECT a.name, b.name " +
"FROM mysqlschema.tableA as a " +
"INNER JOIN verticaschema.tableB as b ON a.id = b.id " +
"WHERE a.id = 1 AND b.id = 1 "));
For some reason, I see that Calcite is properly accesing tableA whith the correct predicate but it's doing SELECT * FROM verticaschema.tableB
for some reason over the second table.
Is there a way of optimizing it so Calcite will run the predicate b.id=1
over tableB too?
Thanks