Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
We may already handle this (if so please close), but it's possible that a CREATE VIEW statement could reference a table that was created in a different connection. We should add a test for this in UpdateCacheAcrossDifferentClientsIT and a similar retry loop as was done in PhoenixStatement within CreateTableCompiler here:
return new BaseMutationPlan(context, operation) { @Override public MutationState execute() throws SQLException { try { return client.createTable(finalCreate, splits, parent, viewStatement, viewType, viewColumnConstants, isViewColumnReferenced); } finally { if (client.getConnection() != connection) { client.getConnection().close(); } } }