Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-20167

Query execution flow refactoring for proper using catalog version.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0
    • sql

    Description

      As for now, we misuse SqlSchemaManager methods for getting a schema.
      1. We should always use a version that is visible to a current transaction at query start, instead of getting the latest one.
      2. When getting query message on remot, we wait for an actual schema version first, and then get the latest version one more time for fragment execution. However, we already know the required version and must use it, otherwise fragment can use schema "from the future".
      3. Query plan cache key must have a version as well.
      Also, there is a bug IgniteSchemaTable.unwrap method, we should be able to unwrap table descriptor.

      Attachments

        Issue Links

          Activity

            People

              amashenkov Andrey Mashenkov
              amashenkov Andrey Mashenkov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h