Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-48273

Late rewrite of PlanWithUnresolvedIdentifier

    XMLWordPrintableJSON

Details

    Description

      PlanWithUnresolvedIdentifier is rewritten later in analysis which causes rules likeĀ 
      SubstituteUnresolvedOrdinals to miss the new plan. This causes following queries to fail:

      create temporary view identifier('v1') as (select my_col from (values (1), (2), (1) as (my_col)) group by 1);
      --
      cache table identifier('t1') as (select my_col from (values (1), (2), (1) as (my_col)) group by 1); 
      --
      create table identifier('t2') as (select my_col from (values (1), (2), (1) 
      as (my_col)) group by 1);
      insert into identifier('t2') select my_col from (values (3) as (my_col)) group by 1; 

      Attachments

        Activity

          People

            nikolamand-db Nikola Mandic
            nikolamand-db Nikola Mandic
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: