Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-5437

Implement st_explode with a cursor

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • core
    • None

    Description

      The goal is to implement ST_Explode with a cursor function, so that the geometry column of a row can be unnested into multiple rows. Ideally, we would like to execute a query such as the following:

      SELECT *FROM table(ST_Explode(cursor(
          SELECT ST_GeomFromText('MULTIPOINT((1 1), (2 2))') as points
          UNION ALL    SELECT ST_GeomFromText('MULTIPOINT((3 3), (4 4))') as points
      )));
      GEOM, INDEXPOINT (1 1), 0
      POINT (2 2), 1
      POINT (3 3), 0
      POINT (4 4), 1

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bchapuis Bertil Chapuis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: