Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add i32 return type for length functions #606

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
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
36 changes: 36 additions & 0 deletions extensions/functions_string.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1042,6 +1042,18 @@ scalar_functions:
description: >-
Return the number of characters in the input string. The length includes trailing spaces.
impls:
- args:
- value: "string"
name: "input"
return: i32
- args:
- value: "varchar<L1>"
name: "input"
return: i32
vibhatha marked this conversation as resolved.
Show resolved Hide resolved
- args:
- value: "fixedchar<L1>"
name: "input"
return: i32
- args:
- value: "string"
name: "input"
Expand All @@ -1058,6 +1070,18 @@ scalar_functions:
name: bit_length
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
- args:
- value: "string"
name: "input"
Expand All @@ -1074,6 +1098,18 @@ scalar_functions:
name: octet_length
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
- args:
- value: "string"
name: "input"
Expand Down
Loading