Details

    Description

      To convert a insert-only table to versioned table, the recommended way is use deduplicate query as following, the converted versioned_view owns primary key and event time and thus can be a versioned table.

      CREATE VIEW versioned_rates AS
      SELECT currency, rate, currency_time
      FROM (
            SELECT *,
            ROW_NUMBER() OVER (PARTITION BY currency   -- inferred primary key
                  ORDER BY currency_time               -- the event time  
              DESC) AS rowNum
            FROM rates)
      WHERE rowNum = 1;
      

      But currently deduplicate operator only support on process time, this issue aims to support deduplicate on Event time.

       

      Attachments

        Issue Links

          Activity

            People

              leonard Leonard Xu
              leonard Leonard Xu
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: