From a2f22a4248119e1737aee9edef477eb2d92b6b5a Mon Sep 17 00:00:00 2001 From: "abby.huang" <78209557+abby-cyber@users.noreply.github.com> Date: Tue, 17 Jan 2023 18:21:25 +0800 Subject: [PATCH] change-returned-`UnknownProp`-to-`NULL` (#1884) --- .../2.quick-start/6.cheatsheet-for-ngql.md | 2 +- .../7.general-query-statements/3.go.md | 8 ++--- .../8.clauses-and-options/limit.md | 14 ++++---- .../8.clauses-and-options/sample.md | 34 +++++++++---------- 4 files changed, 29 insertions(+), 29 deletions(-) diff --git a/docs-2.0/2.quick-start/6.cheatsheet-for-ngql.md b/docs-2.0/2.quick-start/6.cheatsheet-for-ngql.md index 297bf2d9f2a..603ee19ed25 100644 --- a/docs-2.0/2.quick-start/6.cheatsheet-for-ngql.md +++ b/docs-2.0/2.quick-start/6.cheatsheet-for-ngql.md @@ -252,7 +252,7 @@ | `GO FROM "player102" OVER serve YIELD dst(edge)` | Returns the teams that player 102 serves. | | `GO 2 STEPS FROM "player102" OVER follow YIELD dst(edge)` | Returns the friends of player 102 with 2 hops. | | `GO FROM "player100", "player102" OVER serve WHERE properties(edge).start_year > 1995 YIELD DISTINCT properties($$).name AS team_name, properties(edge).start_year AS start_year, properties($^).name AS player_name` | Adds a filter for the traversal. | - | `GO FROM "player100" OVER follow, serve YIELD properties(edge).degree, properties(edge).start_year` | The following example traverses along with multiple edge types. If there is no value for a property, the output is `UNKNOWN_PROP`. | + | `GO FROM "player100" OVER follow, serve YIELD properties(edge).degree, properties(edge).start_year` | The following example traverses along with multiple edge types. If there is no value for a property, the output is `NULL`. | | `GO FROM "player100" OVER follow REVERSELY YIELD src(edge) AS destination` | The following example returns the neighbor vertices in the incoming direction of player 100. | | `GO FROM "player100" OVER follow REVERSELY YIELD src(edge) AS id | GO FROM $-.id OVER serve WHERE properties($^).age > 20 YIELD properties($^).name AS FriendOf, properties($$).name AS Team` | The following example retrieves the friends of player 100 and the teams that they serve. | | `GO FROM "player102" OVER follow YIELD dst(edge) AS both` | The following example returns all the neighbor vertices of player 102. | diff --git a/docs-2.0/3.ngql-guide/7.general-query-statements/3.go.md b/docs-2.0/3.ngql-guide/7.general-query-statements/3.go.md index 1259029371a..ab30d4175ee 100644 --- a/docs-2.0/3.ngql-guide/7.general-query-statements/3.go.md +++ b/docs-2.0/3.ngql-guide/7.general-query-statements/3.go.md @@ -109,15 +109,15 @@ nebula> GO FROM "player100", "player102" OVER serve \ ``` ```ngql -# The following example traverses along with multiple edge types. If there is no value for a property, the output is UNKNOWN_PROP. +# The following example traverses along with multiple edge types. If there is no value for a property, the output is `NULL`. nebula> GO FROM "player100" OVER follow, serve \ YIELD properties(edge).degree, properties(edge).start_year; +-------------------------+-----------------------------+ | properties(EDGE).degree | properties(EDGE).start_year | +-------------------------+-----------------------------+ -| 95 | UNKNOWN_PROP | -| 95 | UNKNOWN_PROP | -| UNKNOWN_PROP | 1997 | +| 95 | __NULL__ | +| 95 | __NULL__ | +| __NULL__ | 1997 | +-------------------------+-----------------------------+ ``` diff --git a/docs-2.0/3.ngql-guide/8.clauses-and-options/limit.md b/docs-2.0/3.ngql-guide/8.clauses-and-options/limit.md index f7c68df2c0c..10d64bfecac 100644 --- a/docs-2.0/3.ngql-guide/8.clauses-and-options/limit.md +++ b/docs-2.0/3.ngql-guide/8.clauses-and-options/limit.md @@ -81,13 +81,13 @@ nebula> GO 3 STEPS FROM "player100" \ OVER * \ YIELD properties($$).name AS NAME, properties($$).age AS Age \ LIMIT [3,3,3]; -+-----------------+--------------+ -| NAME | Age | -+-----------------+--------------+ -| "Spurs" | UNKNOWN_PROP | -| "Tony Parker" | 36 | -| "Manu Ginobili" | 41 | -+-----------------+--------------+ ++-----------------+----------+ +| NAME | Age | ++-----------------+----------+ +| "Tony Parker" | 36 | +| "Manu Ginobili" | 41 | +| "Spurs" | __NULL__ | ++-----------------+----------+ nebula> GO 3 STEPS FROM "player102" OVER * BIDIRECT\ YIELD dst(edge) \ diff --git a/docs-2.0/3.ngql-guide/8.clauses-and-options/sample.md b/docs-2.0/3.ngql-guide/8.clauses-and-options/sample.md index 43f131cf7ac..b5ad167297b 100644 --- a/docs-2.0/3.ngql-guide/8.clauses-and-options/sample.md +++ b/docs-2.0/3.ngql-guide/8.clauses-and-options/sample.md @@ -23,26 +23,26 @@ nebula> GO 3 STEPS FROM "player100" \ OVER * \ YIELD properties($$).name AS NAME, properties($$).age AS Age \ SAMPLE [1,2,3]; -+-----------------+--------------+ -| NAME | Age | -+-----------------+--------------+ -| "Spurs" | UNKNOWN_PROP | -| "Tony Parker" | 36 | -| "Manu Ginobili" | 41 | -+-----------------+--------------+ ++-----------------+----------+ +| NAME | Age | ++-----------------+----------+ +| "Tony Parker" | 36 | +| "Manu Ginobili" | 41 | +| "Spurs" | __NULL__ | ++-----------------+----------+ nebula> GO 1 TO 3 STEPS FROM "player100" \ OVER * \ YIELD properties($$).name AS NAME, properties($$).age AS Age \ SAMPLE [2,2,2]; -+---------------------+-----+ -| NAME | Age | -+---------------------+-----+ -| "Manu Ginobili" | 41 | -| "Tony Parker" | 36 | -| "Tim Duncan" | 42 | -| "LaMarcus Aldridge" | 33 | -| "Tony Parker" | 36 | -| "Tim Duncan" | 42 | -+---------------------+-----+ ++-----------------+----------+ +| NAME | Age | ++-----------------+----------+ +| "Manu Ginobili" | 41 | +| "Spurs" | __NULL__ | +| "Tim Duncan" | 42 | +| "Spurs" | __NULL__ | +| "Manu Ginobili" | 41 | +| "Spurs" | __NULL__ | ++-----------------+----------+ ```