Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
1.26.0
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-19670.
Attachments
Issue Links
- causes
-
FLINK-19670 Query on a view of temporal join throws ParseException
- Open
- is duplicated by
-
CALCITE-4527 SqlSnapshot unparse problem when tablRef is As-SqlBasicCall
- Closed
- is related to
-
CALCITE-1912 Support "FOR SYSTEM_TIME AS OF" in regular queries
- Closed
- links to