ソースを参照

fix(doc): fix invalid links in json_expr.md

ngjaying 3 年 前
コミット
4ca37e69b8
2 ファイル変更4 行追加4 行削除
  1. 2 2
      docs/en_US/sqls/json_expr.md
  2. 2 2
      docs/zh_CN/sqls/json_expr.md

+ 2 - 2
docs/en_US/sqls/json_expr.md

@@ -168,7 +168,7 @@ json_path_query(col, jsonpath)
 json_path_query_first(col, jsonpath)
 json_path_query_first(col, jsonpath)
 ```
 ```
 
 
-Please refer to [json functions](sqls/built-in_functions.md#json-functions) for detail.
+Please refer to [json functions](./built-in_functions.md#json-functions) for detail.
 
 
 All these functions share the same parameter signatures, among which, the second parameter is a jsonpath string. The jsonpath grammer used by Kuiper is based on [JsonPath](https://goessner.net/articles/JsonPath/).
 All these functions share the same parameter signatures, among which, the second parameter is a jsonpath string. The jsonpath grammer used by Kuiper is based on [JsonPath](https://goessner.net/articles/JsonPath/).
 
 
@@ -184,7 +184,7 @@ So for example, when applied to the previous JSON data sample we can reach the f
 - `$.friends.first` refers to “dale”.
 - `$.friends.first` refers to “dale”.
 - `$.friends` refers to the full array of friends.
 - `$.friends` refers to the full array of friends.
 - `$.friends[0]` refers to the first friend listed in the previous array (contrary to arrays members are zero-based).
 - `$.friends[0]` refers to the first friend listed in the previous array (contrary to arrays members are zero-based).
-- `$.friends[0][lastname]` refers to the lastname of the first friend listed. Use bracket if [there are reserved words](sqls/lexical_elements.md) or special characters (such as space ' ', '.' and Chinese etc) in the field key.
+- `$.friends[0][lastname]` refers to the lastname of the first friend listed. Use bracket if [there are reserved words](./lexical_elements.md) or special characters (such as space ' ', '.' and Chinese etc) in the field key.
 - `$.friends[? @.age>60].first` or `$.friends[? (@.age>60)].first` refers to the first name of the friends whose age is bigger than 60. Notice that the space between ? and the condition is required even the condition is with braces.
 - `$.friends[? @.age>60].first` or `$.friends[? (@.age>60)].first` refers to the first name of the friends whose age is bigger than 60. Notice that the space between ? and the condition is required even the condition is with braces.
 
 
 Developers can use the json functions in the SQL statement. Here are some examples.
 Developers can use the json functions in the SQL statement. Here are some examples.

+ 2 - 2
docs/zh_CN/sqls/json_expr.md

@@ -176,7 +176,7 @@ json_path_query(col, jsonpath)
 json_path_query_first(col, jsonpath)
 json_path_query_first(col, jsonpath)
 ```
 ```
 
 
-请参考 [json 函数](sqls/built-in_functions.md#json-functions) 获得详细信息.
+请参考 [json 函数](./built-in_functions.md#json-functions) 获得详细信息.
 
 
 所有这些函数共享相同的参数签名,其中,第二个参数是 jsonpath 字符串。 Kuiper 使用的 jsonpath 语法基于[JsonPath](https://goessner.net/articles/JsonPath/)
 所有这些函数共享相同的参数签名,其中,第二个参数是 jsonpath 字符串。 Kuiper 使用的 jsonpath 语法基于[JsonPath](https://goessner.net/articles/JsonPath/)
 
 
@@ -192,7 +192,7 @@ json_path_query_first(col, jsonpath)
 - `$.friends.first` 指的是 "dale"。
 - `$.friends.first` 指的是 "dale"。
 - `$.friends` 指的是完整的朋友数组。
 - `$.friends` 指的是完整的朋友数组。
 - `$.friends[0]` 指的是上一个数组中列出的第一个朋友(与数组成员相反,它们从零开始)。
 - `$.friends[0]` 指的是上一个数组中列出的第一个朋友(与数组成员相反,它们从零开始)。
-- `$.friends[0][lastname]` 是指列出的第一个朋友的姓氏.。如果 fields key 中有 [保留字](sqls/lexical_elements.md)或特殊字符(例如空格 ' '、 '.'和中文等),请使用括号。
+- `$.friends[0][lastname]` 是指列出的第一个朋友的姓氏.。如果 fields key 中有 [保留字](./lexical_elements.md)或特殊字符(例如空格 ' '、 '.'和中文等),请使用括号。
 - `$.friends[? @.age>60].first` 或者 `$.friends[? (@.age>60)].first` 是指年龄大于60岁的朋友的名字。请注意,?之间有空格, 并且条件是必需的,即使条件带有括号。
 - `$.friends[? @.age>60].first` 或者 `$.friends[? (@.age>60)].first` 是指年龄大于60岁的朋友的名字。请注意,?之间有空格, 并且条件是必需的,即使条件带有括号。
 
 
 开发人员可以在 SQL 语句中使用 json 函数。 这里有些例子。
 开发人员可以在 SQL 语句中使用 json 函数。 这里有些例子。