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

Sql. DistributionFunction compares strings by reference

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • sql
    • Docs Required, Release Notes Required

    Description

      Issue detected by SpotBugs. Specifically the warning reported is:

      M B ES_COMPARING_STRINGS_WITH_EQ ES: Comparison of String objects using == or != in org.apache.ignite.internal.sql.engine.trait.DistributionFunction.equals(Object)  At DistributionFunction.java:[line 76]
      M B ES_COMPARING_STRINGS_WITH_EQ ES: Comparison of String objects using == or != in org.apache.ignite.internal.sql.engine.trait.DistributionFunction.satisfy(DistributionFunction, DistributionFunction)  At DistributionFunction.java:[line 117]
      

      This might be wrong.

      Investigate whenever this is a false-positive and we should suppress it, or make a proper fix.

      At the result of investigation corresponding TODO should be removed in spotbugs-excludes.xml

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vblinov Viacheslav Blinov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: