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

Node starts with incorrect QueryEntity configuration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.9
    • sql
    • None

    Description

      When QueryEntity.keyFields property is used to specify compound key fields, it is possible to set the field names in wrong register.
      The node would start normally, but for SQL queries requesting key fields the resultset contains nulls in corresponding columns.
      The query processor internally fails to tell the key field from value field in this case.
      Note that for optimized marshaller, the keyFields aren't taken into account and queries return valid data.

      I believe the node shall not start with such configuration at all.

      See the attached test that reproduces the case.

      Attachments

        1. QueryEntityCaseMismatchTest.java
          5 kB
          Sergey Kalashnikov

        Activity

          People

            skalashnikov Sergey Kalashnikov
            skalashnikov Sergey Kalashnikov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: