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

Unable to parse queries that use BigQuery pseudo columns _PARTITIONDATE/_PARTITIONTIME

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • babel
    • None

    Description

      BigQuery supports partitioned tables using pseudo columns "_PARTITIONDATE"

      e.g. The following table has two columns you can select from but also partitions the data by creation date

      CREATE or REPLACE TABLE #{table} (            
        transaction_id STRING, 
        order_date DATE )
      PARTITION BY _PARTITIONDATE
      

       

      The following queries cannot be validated 

      select * from #{table} where _PARTITIONDATE = '2020-11-03' ;
      -- OR
      select * from #{table} where _PARTITIONTIME = '2020-11-03' ;

      Attachments

        Activity

          People

            julianhyde Julian Hyde
            jswett Justin Swett
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: