Skip to content

Commit 5542274

Browse files
authored
[hotfix] Fix iceberg quickstart sql (apache#1964)
1 parent 9c7c3ad commit 5542274

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

website/docs/quickstart/lakehouse.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -520,10 +520,13 @@ SELECT o.order_key,
520520
c.acctbal,
521521
c.mktsegment,
522522
n.name
523-
FROM fluss_order o
524-
LEFT JOIN fluss_customer FOR SYSTEM_TIME AS OF `o`.`ptime` AS `c`
523+
FROM (
524+
SELECT *, PROCTIME() as ptime
525+
FROM `default_catalog`.`default_database`.source_order
526+
) o
527+
LEFT JOIN fluss_customer FOR SYSTEM_TIME AS OF o.ptime AS c
525528
ON o.cust_key = c.cust_key
526-
LEFT JOIN fluss_nation FOR SYSTEM_TIME AS OF `o`.`ptime` AS `n`
529+
LEFT JOIN fluss_nation FOR SYSTEM_TIME AS OF o.ptime AS n
527530
ON c.nation_key = n.nation_key;
528531
```
529532

0 commit comments

Comments
 (0)