Merge pull request #25546 from taosdata/docs/joinOperator

docs: correct join operator
This commit is contained in:
dapan1121 2024-04-28 13:44:01 +08:00 committed by GitHub
commit 1737ee47a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 8 deletions

View File

@ -191,11 +191,11 @@ Left/Right ASOF Join are supported between super tables, normal tables, child ta
| **Operator** | **Meaning for Left ASOF Join** |
| :-------------: | ------------------------ |
| > | Match rows in the right table whose primary key timestamp is less than and the most closed to the left table's primary key timestamp |
| >= | Match rows in the right table whose primary key timestamp is less than or equal to and the most closed to the left table's primary key timestamp |
| > | Match rows in the right table whose primary key timestamp is less than and the most closed to the left table's primary key timestamp |
| >= | Match rows in the right table whose primary key timestamp is less than or equal to and the most closed to the left table's primary key timestamp |
| = | Match rows in the right table whose primary key timestamp is equal to the left table's primary key timestamp |
| < | Match rows in the right table whose the primary key timestamp is greater than and the most closed to the left table's primary key timestamp |
| <= | Match rows in the right table whose primary key timestamp is greater than or equal to and the most closed to the left table's primary key timestamp |
| &lt; | Match rows in the right table whose the primary key timestamp is greater than and the most closed to the left table's primary key timestamp |
| &lt;= | Match rows in the right table whose primary key timestamp is greater than or equal to and the most closed to the left table's primary key timestamp |
For Right ASOF Join, the above operators have the opposite meaning.

View File

@ -185,11 +185,11 @@ SELECT ... FROM table_name1 LEFT|RIGHT ASOF JOIN table_name2 [ON ...] [JLIMIT jl
| **运算符** | **Left ASOF 时含义** |
| :-------------: | ------------------------ |
| > | 匹配右表中主键时间戳小于左表主键时间戳且时间戳最接近的数据行 |
| >= | 匹配右表中主键时间戳小于等于左表主键时间戳且时间戳最接近的数据行 |
| &gt; | 匹配右表中主键时间戳小于左表主键时间戳且时间戳最接近的数据行 |
| &gt;= | 匹配右表中主键时间戳小于等于左表主键时间戳且时间戳最接近的数据行 |
| = | 匹配右表中主键时间戳等于左表主键时间戳的行 |
| < | 匹配右表中主键时间戳大于左表主键时间戳且时间戳最接近的数据行 |
| <= | 匹配右表中主键时间戳大于等于左表主键时间戳且时间戳最接近的数据行 |
| &lt; | 匹配右表中主键时间戳大于左表主键时间戳且时间戳最接近的数据行 |
| &lt;= | 匹配右表中主键时间戳大于等于左表主键时间戳且时间戳最接近的数据行 |
对于 Right ASOF 来说,上述运算符含义正好相反。