Skip to content

Commit

Permalink
remove promotions and function definitions for fixedchar. Add option …
Browse files Browse the repository at this point in the history
…for center padding.
  • Loading branch information
richtia committed Jul 21, 2022
1 parent b44804b commit 8f0d7e3
Showing 1 changed file with 16 additions and 75 deletions.
91 changes: 16 additions & 75 deletions extensions/functions_string.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ scalar_functions:
- value: "varchar<L1>"
name: "input"
description: "The string to remove characters from."
- value: "varchar<L2>"
- value: "varchar<L1>"
name: "characters"
description: "The set of characters to remove."
return: "varchar<L1>"
Expand All @@ -187,14 +187,6 @@ scalar_functions:
name: "characters"
description: "The set of characters to remove."
return: "string"
- args:
- value: "fixedchar<L1>"
name: "input"
description: "The string to remove characters from."
- value: "fixedchar<L2>"
name: "characters"
description: "The set of characters to remove."
return: "string"
-
name: rtrim
description: >-
Expand All @@ -205,7 +197,7 @@ scalar_functions:
- value: "varchar<L1>"
name: "input"
description: "The string to remove characters from."
- value: "varchar<L2>"
- value: "varchar<L1>"
name: "characters"
description: "The set of characters to remove."
return: "varchar<L1>"
Expand All @@ -217,14 +209,6 @@ scalar_functions:
name: "characters"
description: "The set of characters to remove."
return: "string"
- args:
- value: "fixedchar<L1>"
name: "input"
description: "The string to remove characters from."
- value: "fixedchar<L2>"
name: "characters"
description: "The set of characters to remove."
return: "string"
-
name: trim
description: >-
Expand All @@ -235,7 +219,7 @@ scalar_functions:
- value: "varchar<L1>"
name: "input"
description: "The string to remove characters from."
- value: "varchar<L2>"
- value: "varchar<L1>"
name: "characters"
description: "The set of characters to remove."
return: "varchar<L1>"
Expand All @@ -247,14 +231,6 @@ scalar_functions:
name: "characters"
description: "The set of characters to remove."
return: "string"
- args:
- value: "fixedchar<L1>"
name: "input"
description: "The string to remove characters from."
- value: "fixedchar<L2>"
name: "characters"
description: "The set of characters to remove."
return: "string"
-
name: lpad
description: Left-pad the string with the characters until the specified length of the string has been reached.
Expand All @@ -266,10 +242,10 @@ scalar_functions:
- value: i32
name: "length"
description: "The length of the output string."
- value: "varchar<L2>"
- value: "varchar<L1>"
name: "characters"
description: "The set of characters to use for padding."
return: "string"
return: "varchar<L1>"
- args:
- value: "string"
name: "input"
Expand All @@ -281,17 +257,6 @@ scalar_functions:
name: "characters"
description: "The set of characters to use for padding."
return: "string"
- args:
- value: "fixedchar<L1>"
name: "input"
description: "The string to pad."
- value: i32
name: "length"
description: "The length of the output string."
- value: "fixedchar<L2>"
name: "characters"
description: "The set of characters to use for padding."
return: "string"
-
name: rpad
description: Right-pad the string with the characters until the specified length of the string has been reached.
Expand All @@ -303,10 +268,10 @@ scalar_functions:
- value: i32
name: "length"
description: "The length of the output string."
- value: "varchar<L2>"
- value: "varchar<L1>"
name: "characters"
description: "The set of characters to use for padding."
return: "string"
return: "varchar<L1>"
- args:
- value: "string"
name: "input"
Expand All @@ -318,33 +283,28 @@ scalar_functions:
name: "characters"
description: "The set of characters to use for padding."
return: "string"
- args:
- value: "fixedchar<L1>"
name: "input"
description: "The string to pad."
- value: i32
name: "length"
description: "The length of the output string."
- value: "fixedchar<L2>"
name: "characters"
description: "The set of characters to use for padding."
return: "string"
-
name: center
description: Pad the string with characters from each side until the specified length of the string has been reached.
description: >-
Pad the string with characters from each side until the specified length of the string has
been reached. If padding is uneven, the default option is to have extra padding on the right.
impls:
- args:
- options: [ RIGHT, LEFT ]
required: false
- value: "varchar<L1>"
name: "input"
description: "The string to pad."
- value: i32
name: "length"
description: "The length of the output string."
- value: "varchar<L2>"
- value: "varchar<L1>"
name: "characters"
description: "The set of characters to use for padding."
return: "string"
return: "varchar<L1>"
- args:
- options: [ RIGHT, LEFT ]
required: false
- value: "string"
name: "input"
description: "The string to pad."
Expand All @@ -355,17 +315,6 @@ scalar_functions:
name: "characters"
description: "The set of characters to use for padding."
return: "string"
- args:
- value: "fixedchar<L1>"
name: "input"
description: "The string to pad."
- value: i32
name: "length"
description: "The length of the output string."
- value: "fixedchar<L2>"
name: "characters"
description: "The set of characters to use for padding."
return: "string"
-
name: left
description: Extract count characters starting from the left of the string.
Expand All @@ -378,10 +327,6 @@ scalar_functions:
- value: "string"
- value: i32
return: "string"
- args:
- value: "fixedchar<l1>"
- value: i32
return: "string"
-
name: right
description: Extract count characters starting from the right of the string.
Expand All @@ -394,7 +339,3 @@ scalar_functions:
- value: "string"
- value: i32
return: "string"
- args:
- value: "fixedchar<l1>"
- value: i32
return: "string"

0 comments on commit 8f0d7e3

Please sign in to comment.