Skip to content

Commit

Permalink
[hotfix][python][docs] Correct the docs of interval join
Browse files Browse the repository at this point in the history
  • Loading branch information
dianfu committed Jul 19, 2021
1 parent 8807db1 commit 18055bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/content.zh/docs/dev/table/tableApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ from pyflink.table.expressions import col
left = t_env.from_path("Source1").select(col('a'), col('b'), col('c'), col('rowtime1'))
right = t_env.from_path("Source2").select(col('d'), col('e'), col('f'), col('rowtime2'))

joined_table = left.join(right).where(left.a == right.d & left.rowtime1 >= right.rowtime2 - lit(1).second & left.rowtime1 <= right.rowtime2 + lit(2).seconds)
joined_table = left.join(right).where((left.a == right.d) & (left.rowtime1 >= right.rowtime2 - lit(1).second) & (left.rowtime1 <= right.rowtime2 + lit(2).seconds))
result = joined_table.select(joined_table.a, joined_table.b, joined_table.e, joined_table.rowtime1)
```
{{< /tab >}}
Expand Down
2 changes: 1 addition & 1 deletion docs/content/docs/dev/table/tableApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ from pyflink.table.expressions import col
left = t_env.from_path("Source1").select(col('a'), col('b'), col('c'), col('rowtime1'))
right = t_env.from_path("Source2").select(col('d'), col('e'), col('f'), col('rowtime2'))

joined_table = left.join(right).where(left.a == right.d & left.rowtime1 >= right.rowtime2 - lit(1).second & left.rowtime1 <= right.rowtime2 + lit(2).seconds)
joined_table = left.join(right).where((left.a == right.d) & (left.rowtime1 >= right.rowtime2 - lit(1).second) & (left.rowtime1 <= right.rowtime2 + lit(2).seconds))
result = joined_table.select(joined_table.a, joined_table.b, joined_table.e, joined_table.rowtime1)
```
{{< /tab >}}
Expand Down

0 comments on commit 18055bb

Please sign in to comment.