XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.11.0
    • 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();
                          }
                      }
                  }
      

      Attachments

        1. PHOENIX-3908.patch
          3 kB
          Maddineni Sukumar

        Activity

          People

            sukunaidu@gmail.com Maddineni Sukumar
            jamestaylor James R. Taylor
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: