Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-1136

MySql_5.0 OUTER JOIN - Unexpected Query Results

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0
    • 7.0
    • Query Engine
    • None
    • Low

      Receiving unexpected query results on the following query in MySQL 5.0:

      Query: SELECT BQT2.SmallA.IntNum, BQT2.MediumB.IntNum FROM BQT2.SmallA FULL OUTER JOIN BQT2.MediumB ON BQT2.SmallA.IntNum = BQT2.MediumB.IntNum ORDER BY BQT2.SmallA.IntNum, BQT2.MediumB.IntNum

      Database: jdbc:mysql://SLNTDS03.mm.atl2.redhat.com:3306/bqt2

      Driver: mysql-connector-java-5.1.5

      Expected results is 1007 records but MySQL is returning 1006. There are also some other issues.

      It appears (MediumB.IntNum = 26) is not being returned but it is expected and does exist in MediumB.IntNum. In addition one row is returning -21 when we expect -8 and many rows are returning "null" for MediumB.IntNum when we are expecting a value.

      I am attaching the log file, actual results file, expected results file, and the VDB.

        1. MySQL_QueryLog
          90 kB
        2. MySQL50-actual_results
          153 kB
        3. MySQL50-expected_results
          154 kB
        4. QT_MySql50_Push.vdb
          149 kB

              rhn-engineering-shawkins Steven Hawkins
              wgibson_jira Warren Gibson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: