Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions extensions/functions_string.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1093,6 +1093,23 @@ scalar_functions:
- value: "fixedchar<L1>"
name: "input"
return: i64
-
name: char_length_32
description: >-
Return the number of characters in the input string. The length includes trailing spaces.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is characters mean code points?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ping @richtia for clarity on what character means. In some system this means bytes. In some system it means utf8 codepoints.

impls:
- args:
- value: "string"
name: "input"
return: i32
- args:
- value: "varchar<L1>"
name: "input"
return: i32
- args:
- value: "fixedchar<L1>"
name: "input"
return: i32
-
name: bit_length
description: Return the number of bits in the input string.
Expand All @@ -1109,6 +1126,22 @@ scalar_functions:
- value: "fixedchar<L1>"
name: "input"
return: i64
-
name: bit_length_32
description: Return the number of bits in the input string.
impls:
- args:
- value: "string"
name: "input"
return: i32
- args:
- value: "varchar<L1>"
name: "input"
return: i32
- args:
- value: "fixedchar<L1>"
name: "input"
return: i32
-
name: octet_length
description: Return the number of bytes in the input string.
Expand All @@ -1125,6 +1158,22 @@ scalar_functions:
- value: "fixedchar<L1>"
name: "input"
return: i64
-
name: octet_length_32
description: Return the number of bytes in the input string.
impls:
- args:
- value: "string"
name: "input"
return: i32
- args:
- value: "varchar<L1>"
name: "input"
return: i32
- args:
- value: "fixedchar<L1>"
name: "input"
return: i32
-
name: regexp_replace
description: >-
Expand Down