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

SqlSnapshot unparse problem when tablRef is As-SqlBasicCall

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Duplicate
    • 1.26.0
    • None
    • core
    • None

    Description

      hi,community. now calcite support SqlSnapshot. 

      when a sql like SELECT orders.order_id, products.pro_id, products.product_name
      FROM default_catalog.default_database.orders AS orders
      LEFT JOIN default_catalog.default_database.products FOR SYSTEM_TIME AS OF orders.proctime AS products ON orders.product_id = products.pro_id .

       

      default_catalog.default_database.products FOR SYSTEM_TIME AS OF orders.proctime AS products  parse to SqlSnapshot .however, when unparse. it is default_catalog.default_database.products AS products FOR SYSTEM_TIME AS OF orders.proctime. which can not be parsed again.

       

      if we should consider this condition.

      the same problem when I found in flink link title
       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yr jibiyr
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: