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

Calcite. Equals predicate with multiple results from subqueries must fail.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: sql
    • Labels:
    • Ignite Flags:
      Docs Required, Release Notes Required

      Description

      Suppose table looks like :

      products

      name cat_id subcat_id
      n1 1 10
      n2 2 10
      n3 3 11

      and request :

      SELECT NAME FROM products WHERE CAT_ID = (SELECT CAT_ID FROM products WHERE SUBCAT_ID = 10)
      

      for now it correctly executed and returns undefined results, proposal : return ERROR and appropriate message.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                zstan Stanilovsky Evgeny
                Reporter:
                zstan Stanilovsky Evgeny
              • Votes:
                0 Vote for this issue
                Watchers:
                3 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 - 40m
                  40m