Uploaded image for project: 'Apache AsterixDB'
  1. Apache AsterixDB
  2. ASTERIXDB-3340

Incorrect assignment of runtime partition when mixing external-internal data scans with UNION ALL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • EXT - External data

    Description

      To reproduce:
      1- Create an external link
      2- Create an external dataset: ext_dataset
      3- Create an internal dataset: int_dataset
      4- Create the following view:

      CREATE OR REPLACE VIEW `view1` (`city` STRING, `country` STRING, `lat` DOUBLE, `lon` DOUBLE, `name` STRING, `type` STRING)
      DEFAULT NULL PRIMARY KEY ( `name` ) NOT ENFORCED AS 
      SELECT name, city, country, geo.lat, geo.lon
      FROM ext_dataset
      WHERE `type` = "br" and geo.lat IS NOT NULL and geo.lon IS NOT NULL
      UNION ALL
      SELECT name, city, country, geo.lat, geo.lon
      FROM int_dataset
      

      5- run the following query:

      SELECT *
      FROM view1 m, int_dataset h
      WHERE m.x /*+hash-bcast*/ = h.x
      

      The query will fail with an internal error.

      Attachments

        Activity

          People

            alsuliman Ali Alsuliman
            alsuliman Ali Alsuliman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: