Skip to content

Commit

Permalink
feat: add contains, starts_with and ends_with functions definitions (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rui-mo authored Jun 19, 2022
1 parent fdf7c19 commit a5fa851
Showing 1 changed file with 119 additions and 0 deletions.
119 changes: 119 additions & 0 deletions extensions/functions_string.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,122 @@ scalar_functions:
- value: i32
- value: i32
return: "string"
- name: starts_with
description: Whether this string starts with another string.
impls:
- args:
- value: "varchar<L1>"
- value: "varchar<L2>"
return: "BOOLEAN"
- args:
- value: "varchar<L1>"
- value: "string"
return: "BOOLEAN"
- args:
- value: "varchar<L1>"
- value: "fixedchar<L2>"
return: "BOOLEAN"
- args:
- value: "string"
- value: "string"
return: "BOOLEAN"
- args:
- value: "string"
- value: "varchar<L1>"
return: "BOOLEAN"
- args:
- value: "string"
- value: "fixedchar<L1>"
return: "BOOLEAN"
- args:
- value: "fixedchar<L1>"
- value: "fixedchar<L2>"
return: "BOOLEAN"
- args:
- value: "fixedchar<L1>"
- value: "string"
return: "BOOLEAN"
- args:
- value: "fixedchar<L1>"
- value: "varchar<L2>"
return: "BOOLEAN"
-
name: ends_with
description: Whether this string ends with another string.
impls:
- args:
- value: "varchar<L1>"
- value: "varchar<L2>"
return: "BOOLEAN"
- args:
- value: "varchar<L1>"
- value: "string"
return: "BOOLEAN"
- args:
- value: "varchar<L1>"
- value: "fixedchar<L2>"
return: "BOOLEAN"
- args:
- value: "string"
- value: "string"
return: "BOOLEAN"
- args:
- value: "string"
- value: "varchar<L1>"
return: "BOOLEAN"
- args:
- value: "string"
- value: "fixedchar<L1>"
return: "BOOLEAN"
- args:
- value: "fixedchar<L1>"
- value: "fixedchar<L2>"
return: "BOOLEAN"
- args:
- value: "fixedchar<L1>"
- value: "string"
return: "BOOLEAN"
- args:
- value: "fixedchar<L1>"
- value: "varchar<L2>"
return: "BOOLEAN"
-
name: contains
description: Whether this string contains another string.
impls:
- args:
- value: "varchar<L1>"
- value: "varchar<L2>"
return: "BOOLEAN"
- args:
- value: "varchar<L1>"
- value: "string"
return: "BOOLEAN"
- args:
- value: "varchar<L1>"
- value: "fixedchar<L2>"
return: "BOOLEAN"
- args:
- value: "string"
- value: "string"
return: "BOOLEAN"
- args:
- value: "string"
- value: "varchar<L1>"
return: "BOOLEAN"
- args:
- value: "string"
- value: "fixedchar<L1>"
return: "BOOLEAN"
- args:
- value: "fixedchar<L1>"
- value: "fixedchar<L2>"
return: "BOOLEAN"
- args:
- value: "fixedchar<L1>"
- value: "string"
return: "BOOLEAN"
- args:
- value: "fixedchar<L1>"
- value: "varchar<L2>"
return: "BOOLEAN"

0 comments on commit a5fa851

Please sign in to comment.