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

SQL properties ownership flag should be set at configuration parsing, not query execution.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.8
    • sql
    • None

    Description

      At processing time, query entities are transformed and validated, table descriptors with properties are created.
      Now in some case (thre's no keyFields and key is of complex non-sql type), ownership flag of query property is calculated at execution time (for example at first put()):
      https://github.com/apache/ignite/blob/dcdb27a24a450f63487290360b265e1570534629/modules/core/src/main/java/org/apache/ignite/internal/processors/query/property/QueryBinaryProperty.java#L132

      So we can't access metadata, that uses this not-yet-initialized field before we put the data.
      But we already have all necessary info to set this field at processing time.

      Attachments

        Issue Links

          Activity

            People

              pkouznet Pavel Kuznetsov
              pkouznet Pavel Kuznetsov
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 10m
                  10m