You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Michael Carey (Code Review)" <do...@asterixdb.incubator.apache.org> on 2016/12/22 01:13:03 UTC

Change in asterixdb[master]: Cleaning up typos and clarifying examples in string function...

Michael Carey has uploaded a new change for review.

  https://asterix-gerrit.ics.uci.edu/1403

Change subject: Cleaning up typos and clarifying examples in string function doc.
......................................................................

Cleaning up typos and clarifying examples in string function doc.

Change-Id: I944d9dd1d1e23608b6a596190c3d89e19cfacead
---
M asterixdb/asterix-doc/src/main/markdown/builtins/2_string.md
1 file changed, 34 insertions(+), 23 deletions(-)


  git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb refs/changes/03/1403/1

diff --git a/asterixdb/asterix-doc/src/main/markdown/builtins/2_string.md b/asterixdb/asterix-doc/src/main/markdown/builtins/2_string.md
index 365b6f4..e7d0d5c 100644
--- a/asterixdb/asterix-doc/src/main/markdown/builtins/2_string.md
+++ b/asterixdb/asterix-doc/src/main/markdown/builtins/2_string.md
@@ -100,7 +100,7 @@
         { "v1": true, "v2": false }
 
 
-### initcap (title) ###
+### initcap (or title) ###
  * Syntax:
 
         initcap(string)
@@ -113,7 +113,7 @@
  * Return Value:
     * a `string` as the title form of the given `string`,
     * `missing` if the argument is a `missing` value,
-     * `null` if the argument is a `null` value,
+    * `null` if the argument is a `null` value,
     * any other non-string input value will cause a type error.
 
  * Example:
@@ -161,7 +161,7 @@
  * Return Value:
     * a `string` as the lowercase form of the given `string`,
     * `missing` if the argument is a `missing` value,
-     * `null` if the argument is a `null` value,
+    * `null` if the argument is a `null` value,
     * any other non-string input value will cause a type error.
 
  * Example:
@@ -193,7 +193,7 @@
 
  * Example:
 
-        ltrim("i like iphone", "iphone");
+        ltrim("me like iphone", "eml");
 
 
  * The expected result is:
@@ -220,14 +220,14 @@
  * Example:
 
         {
-          "v1": position("pphonepp", "phone"),
+          "v1": position("ppphonepp", "phone"),
           "v2": position("hone", "phone")
         };
 
 
  * The expected result is:
 
-        { "v1": 1, "v2": -1 }
+        { "v1": 2, "v2": -1 }
 
 
 ### regexp_contains ###
@@ -241,7 +241,7 @@
     * `string` : a `string` that might contain the pattern,
     * `string_pattern` : a pattern `string` to be matched,
     * `string_flag` : (Optional) a `string` with flags to be used during regular expression matching.
-        * The following modes are enabled with these flags: dotall (s), multiline (m), case_insenitive (i), and comments and whitespace (x).
+        * The following modes are enabled with these flags: dotall (s), multiline (m), case_insensitive (i), and comments and whitespace (x).
  * Return Value:
     * a `boolean`, returns `true` if `string` contains the pattern `string_pattern`,
     * `missing` if any argument is a `missing` value,
@@ -273,7 +273,7 @@
     * `string` : a `string` that might contain the pattern,
     * `string_pattern` : a pattern `string` that might be contained,
     * `string_flag` : (Optional) a `string` with flags to be used during regular expression matching.
-        * The following modes are enabled with these flags: dotall (s), multiline (m), case_insenitive (i), and comments and whitespace (x).
+        * The following modes are enabled with these flags: dotall (s), multiline (m), case_insensitive (i), and comments and whitespace (x).
  * Return Value:
     * a `boolean` value, `true` if `string` contains the pattern `string_pattern`,
     * `missing` if any argument is a `missing` value,
@@ -304,7 +304,7 @@
     * `string` : a `string` that might contain the pattern,
     * `string_pattern` : a pattern `string` to be matched,
     * `string_flag` : (Optional) a `string` with flags to be used during regular expression matching.
-        * The following modes are enabled with these flags: dotall (s), multiline (m), case_insenitive (i), and comments and whitespace (x).
+        * The following modes are enabled with these flags: dotall (s), multiline (m), case_insensitive (i), and comments and whitespace (x).
  * Return Value:
     * the first position that the regular expression `string_pattern` appears in `string`,
       or -1 if it does not appear.
@@ -338,7 +338,7 @@
     * `string_pattern` : a pattern `string` to be matched,
     * `string_replacement` : a pattern `string` to be used as the replacement,
     * `string_flag` : (Optional) a `string` with flags to be used during replace.
-        * The following modes are enabled with these flags: dotall (s), multiline (m), case_insenitive (i), and comments and whitespace (x).
+        * The following modes are enabled with these flags: dotall (s), multiline (m), case_insensitive (i), and comments and whitespace (x).
  * Return Value:
     * Returns a `string` that is obtained after the replacements,
     * `missing` if any argument is a `missing` value,
@@ -362,7 +362,7 @@
 
  * Returns a string formed by repeating the input `string` `n` times.
  * Arguments:
-    * `string` : a `string` to be extracted,
+    * `string` : a `string` to be repeated,
     * `offset` : an `tinyint`/`smallint`/`integer`/`bigint` value as the starting offset of the substring in `string`.
  * Return Value:
     * a string that repeats the input `string` `n` times,
@@ -401,13 +401,14 @@
 
  * Example:
 
-        rtrim("i like iphone", "iphone");
-
+        {
+          "v1": rtrim("i like iphone", "iphone"),
+          "v2": rtrim("i like iphone", "oneiph")
+        };
 
  * The expected result is:
 
-        "i like "
-
+        { "v1": "i like ", "v2": "i like " }
 
 ### split ###
  * Syntax:
@@ -493,10 +494,10 @@
 
         string_join(array, string)
 
- * Joins a array or multiset of strings `array` with the given separator `string` into a single string.
+ * Joins an array or multiset of strings `array` with the given separator `string` into a single string.
  * Arguments:
     * `array` : an `array` or `multiset` of strings (could be `null`) to be joined.
-    * `string` : a `string` as the separator.
+    * `string` : a `string` to serve as the separator.
  * Return Value:
     * the joined `string`,
     * `missing` if any argument is a `missing` value,
@@ -531,6 +532,14 @@
     * `null` if the argument is a `null` value,
     * any other non-string input value will cause a type error.
 
+ * Example:
+
+        string_to_codepoint("Hello ASTERIX!");
+
+
+ * The expected result is:
+
+        [ 72, 101, 108, 108, 111, 32, 65, 83, 84, 69, 82, 73, 88, 33 ]
 
 
 ### codepoint_to_string ###
@@ -551,12 +560,13 @@
 
  * Example:
 
-        { "codes": string_to_codepoint("Hello ASTERIX!"), "string": codepoint_to_string(string_to_codepoint("Hello ASTERIX!"))};
+        codepoint_to_string([72, 101, 108, 108, 111, 32, 65, 83, 84, 69, 82, 73, 88, 33]);
 
 
  * The expected result is:
 
-        { "codes": [ 72, 101, 108, 108, 111, 32, 65, 83, 84, 69, 82, 73, 88, 33 ], "string": "Hello ASTERIX!" }
+        "Hello ASTERIX!"
+
 
 
 ### substr ###
@@ -608,9 +618,10 @@
         substring_before(" like iphone", "iphone");
 
 
-* The expected result is:
+ * The expected result is:
 
         " like "
+
 
 ### substring_after ###
  * Syntax:
@@ -630,12 +641,12 @@
 
  * Example:
 
-        substring_after(" like iphone", "iphone");
+        substring_after(" like iphone", "iph");
 
 
  * The expected result is:
 
-        ""
+        "one"
 
 
 ### trim ###
@@ -657,7 +668,7 @@
 
  * Example:
 
-        trim("i like iphone", "iphone");
+        trim("i like iphone", "iphoen");
 
 
  * The expected result is:

-- 
To view, visit https://asterix-gerrit.ics.uci.edu/1403
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I944d9dd1d1e23608b6a596190c3d89e19cfacead
Gerrit-PatchSet: 1
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Michael Carey <dt...@gmail.com>

Change in asterixdb[master]: Cleaning up typos and clarifying examples in string function...

Posted by "Jenkins (Code Review)" <do...@asterixdb.incubator.apache.org>.
Jenkins has posted comments on this change.

Change subject: Cleaning up typos and clarifying examples in string function doc.
......................................................................


Patch Set 1:

Integration Tests Started https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-integration-tests/1385/

-- 
To view, visit https://asterix-gerrit.ics.uci.edu/1403
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I944d9dd1d1e23608b6a596190c3d89e19cfacead
Gerrit-PatchSet: 1
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Michael Carey <dt...@gmail.com>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Steven Jacobs <sj...@ucr.edu>
Gerrit-Reviewer: Yingyi Bu <bu...@gmail.com>
Gerrit-HasComments: No

Change in asterixdb[master]: Cleaning up typos and clarifying examples in string function...

Posted by "Jenkins (Code Review)" <do...@asterixdb.incubator.apache.org>.
Jenkins has posted comments on this change.

Change subject: Cleaning up typos and clarifying examples in string function doc.
......................................................................


Patch Set 1:

BAD Compatibility Tests Started https://asterix-jenkins.ics.uci.edu/job/asterixbad-compat/102/

-- 
To view, visit https://asterix-gerrit.ics.uci.edu/1403
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I944d9dd1d1e23608b6a596190c3d89e19cfacead
Gerrit-PatchSet: 1
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Michael Carey <dt...@gmail.com>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Yingyi Bu <bu...@gmail.com>
Gerrit-HasComments: No

Change in asterixdb[master]: Cleaning up typos and clarifying examples in string function...

Posted by "Jenkins (Code Review)" <do...@asterixdb.incubator.apache.org>.
Jenkins has posted comments on this change.

Change subject: Cleaning up typos and clarifying examples in string function doc.
......................................................................


Patch Set 1: BAD-1

BAD Compatibility Tests Failed

https://asterix-jenkins.ics.uci.edu/job/asterixbad-compat/102/ : UNSTABLE

-- 
To view, visit https://asterix-gerrit.ics.uci.edu/1403
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I944d9dd1d1e23608b6a596190c3d89e19cfacead
Gerrit-PatchSet: 1
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Michael Carey <dt...@gmail.com>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Yingyi Bu <bu...@gmail.com>
Gerrit-HasComments: No

Change in asterixdb[master]: Cleaning up typos and clarifying examples in string function...

Posted by "Jenkins (Code Review)" <do...@asterixdb.incubator.apache.org>.
Jenkins has posted comments on this change.

Change subject: Cleaning up typos and clarifying examples in string function doc.
......................................................................


Patch Set 1: Integration-Tests-1

Integration Tests Timed Out

https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-integration-tests/1378/ : ABORTED

-- 
To view, visit https://asterix-gerrit.ics.uci.edu/1403
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I944d9dd1d1e23608b6a596190c3d89e19cfacead
Gerrit-PatchSet: 1
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Michael Carey <dt...@gmail.com>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Yingyi Bu <bu...@gmail.com>
Gerrit-HasComments: No

Change in asterixdb[master]: Cleaning up typos and clarifying examples in string function...

Posted by "Jenkins (Code Review)" <do...@asterixdb.incubator.apache.org>.
Jenkins has posted comments on this change.

Change subject: Cleaning up typos and clarifying examples in string function doc.
......................................................................


Patch Set 1: BAD+1

BAD Compatibility Tests Successful

https://asterix-jenkins.ics.uci.edu/job/asterixbad-compat/114/ : SUCCESS

-- 
To view, visit https://asterix-gerrit.ics.uci.edu/1403
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I944d9dd1d1e23608b6a596190c3d89e19cfacead
Gerrit-PatchSet: 1
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Michael Carey <dt...@gmail.com>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Steven Jacobs <sj...@ucr.edu>
Gerrit-Reviewer: Yingyi Bu <bu...@gmail.com>
Gerrit-HasComments: No

Change in asterixdb[master]: Cleaning up typos and clarifying examples in string function...

Posted by "Steven Jacobs (Code Review)" <do...@asterixdb.incubator.apache.org>.
Steven Jacobs has posted comments on this change.

Change subject: Cleaning up typos and clarifying examples in string function doc.
......................................................................


Patch Set 1: Code-Review+1

I think the build failure is a fluke. It's definitely not caused by this change :)

-- 
To view, visit https://asterix-gerrit.ics.uci.edu/1403
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I944d9dd1d1e23608b6a596190c3d89e19cfacead
Gerrit-PatchSet: 1
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Michael Carey <dt...@gmail.com>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Steven Jacobs <sj...@ucr.edu>
Gerrit-Reviewer: Yingyi Bu <bu...@gmail.com>
Gerrit-HasComments: No

Change in asterixdb[master]: Cleaning up typos and clarifying examples in string function...

Posted by "Jenkins (Code Review)" <do...@asterixdb.incubator.apache.org>.
Jenkins has posted comments on this change.

Change subject: Cleaning up typos and clarifying examples in string function doc.
......................................................................


Patch Set 1:

BAD Compatibility Tests Started https://asterix-jenkins.ics.uci.edu/job/asterixbad-compat/114/

-- 
To view, visit https://asterix-gerrit.ics.uci.edu/1403
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I944d9dd1d1e23608b6a596190c3d89e19cfacead
Gerrit-PatchSet: 1
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Michael Carey <dt...@gmail.com>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Steven Jacobs <sj...@ucr.edu>
Gerrit-Reviewer: Yingyi Bu <bu...@gmail.com>
Gerrit-HasComments: No

Change in asterixdb[master]: Cleaning up typos and clarifying examples in string function...

Posted by "Jenkins (Code Review)" <do...@asterixdb.incubator.apache.org>.
Jenkins has posted comments on this change.

Change subject: Cleaning up typos and clarifying examples in string function doc.
......................................................................


Patch Set 1:

Integration Tests Started https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-integration-tests/1378/

-- 
To view, visit https://asterix-gerrit.ics.uci.edu/1403
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I944d9dd1d1e23608b6a596190c3d89e19cfacead
Gerrit-PatchSet: 1
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Michael Carey <dt...@gmail.com>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Yingyi Bu <bu...@gmail.com>
Gerrit-HasComments: No

Change in asterixdb[master]: Cleaning up typos and clarifying examples in string function...

Posted by "Jenkins (Code Review)" <do...@asterixdb.incubator.apache.org>.
Jenkins has posted comments on this change.

Change subject: Cleaning up typos and clarifying examples in string function doc.
......................................................................


Patch Set 1: Integration-Tests+1

Integration Tests Successful

https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-integration-tests/1385/ : SUCCESS

-- 
To view, visit https://asterix-gerrit.ics.uci.edu/1403
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I944d9dd1d1e23608b6a596190c3d89e19cfacead
Gerrit-PatchSet: 1
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Michael Carey <dt...@gmail.com>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Steven Jacobs <sj...@ucr.edu>
Gerrit-Reviewer: Yingyi Bu <bu...@gmail.com>
Gerrit-HasComments: No

Change in asterixdb[master]: Cleaning up typos and clarifying examples in string function...

Posted by "Yingyi Bu (Code Review)" <do...@asterixdb.incubator.apache.org>.
Yingyi Bu has submitted this change and it was merged.

Change subject: Cleaning up typos and clarifying examples in string function doc.
......................................................................


Cleaning up typos and clarifying examples in string function doc.

Change-Id: I944d9dd1d1e23608b6a596190c3d89e19cfacead
Reviewed-on: https://asterix-gerrit.ics.uci.edu/1403
Sonar-Qube: Jenkins <je...@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <je...@fulliautomatix.ics.uci.edu>
Reviewed-by: Yingyi Bu <bu...@gmail.com>
Reviewed-by: Steven Jacobs <sj...@ucr.edu>
Integration-Tests: Jenkins <je...@fulliautomatix.ics.uci.edu>
BAD: Jenkins <je...@fulliautomatix.ics.uci.edu>
---
M asterixdb/asterix-doc/src/main/markdown/builtins/2_string.md
1 file changed, 34 insertions(+), 23 deletions(-)

Approvals:
  Steven Jacobs: Looks good to me, but someone else must approve
  Yingyi Bu: Looks good to me, approved
  Jenkins: Verified; No violations found; No violations found; Verified



diff --git a/asterixdb/asterix-doc/src/main/markdown/builtins/2_string.md b/asterixdb/asterix-doc/src/main/markdown/builtins/2_string.md
index 365b6f4..e7d0d5c 100644
--- a/asterixdb/asterix-doc/src/main/markdown/builtins/2_string.md
+++ b/asterixdb/asterix-doc/src/main/markdown/builtins/2_string.md
@@ -100,7 +100,7 @@
         { "v1": true, "v2": false }
 
 
-### initcap (title) ###
+### initcap (or title) ###
  * Syntax:
 
         initcap(string)
@@ -113,7 +113,7 @@
  * Return Value:
     * a `string` as the title form of the given `string`,
     * `missing` if the argument is a `missing` value,
-     * `null` if the argument is a `null` value,
+    * `null` if the argument is a `null` value,
     * any other non-string input value will cause a type error.
 
  * Example:
@@ -161,7 +161,7 @@
  * Return Value:
     * a `string` as the lowercase form of the given `string`,
     * `missing` if the argument is a `missing` value,
-     * `null` if the argument is a `null` value,
+    * `null` if the argument is a `null` value,
     * any other non-string input value will cause a type error.
 
  * Example:
@@ -193,7 +193,7 @@
 
  * Example:
 
-        ltrim("i like iphone", "iphone");
+        ltrim("me like iphone", "eml");
 
 
  * The expected result is:
@@ -220,14 +220,14 @@
  * Example:
 
         {
-          "v1": position("pphonepp", "phone"),
+          "v1": position("ppphonepp", "phone"),
           "v2": position("hone", "phone")
         };
 
 
  * The expected result is:
 
-        { "v1": 1, "v2": -1 }
+        { "v1": 2, "v2": -1 }
 
 
 ### regexp_contains ###
@@ -241,7 +241,7 @@
     * `string` : a `string` that might contain the pattern,
     * `string_pattern` : a pattern `string` to be matched,
     * `string_flag` : (Optional) a `string` with flags to be used during regular expression matching.
-        * The following modes are enabled with these flags: dotall (s), multiline (m), case_insenitive (i), and comments and whitespace (x).
+        * The following modes are enabled with these flags: dotall (s), multiline (m), case_insensitive (i), and comments and whitespace (x).
  * Return Value:
     * a `boolean`, returns `true` if `string` contains the pattern `string_pattern`,
     * `missing` if any argument is a `missing` value,
@@ -273,7 +273,7 @@
     * `string` : a `string` that might contain the pattern,
     * `string_pattern` : a pattern `string` that might be contained,
     * `string_flag` : (Optional) a `string` with flags to be used during regular expression matching.
-        * The following modes are enabled with these flags: dotall (s), multiline (m), case_insenitive (i), and comments and whitespace (x).
+        * The following modes are enabled with these flags: dotall (s), multiline (m), case_insensitive (i), and comments and whitespace (x).
  * Return Value:
     * a `boolean` value, `true` if `string` contains the pattern `string_pattern`,
     * `missing` if any argument is a `missing` value,
@@ -304,7 +304,7 @@
     * `string` : a `string` that might contain the pattern,
     * `string_pattern` : a pattern `string` to be matched,
     * `string_flag` : (Optional) a `string` with flags to be used during regular expression matching.
-        * The following modes are enabled with these flags: dotall (s), multiline (m), case_insenitive (i), and comments and whitespace (x).
+        * The following modes are enabled with these flags: dotall (s), multiline (m), case_insensitive (i), and comments and whitespace (x).
  * Return Value:
     * the first position that the regular expression `string_pattern` appears in `string`,
       or -1 if it does not appear.
@@ -338,7 +338,7 @@
     * `string_pattern` : a pattern `string` to be matched,
     * `string_replacement` : a pattern `string` to be used as the replacement,
     * `string_flag` : (Optional) a `string` with flags to be used during replace.
-        * The following modes are enabled with these flags: dotall (s), multiline (m), case_insenitive (i), and comments and whitespace (x).
+        * The following modes are enabled with these flags: dotall (s), multiline (m), case_insensitive (i), and comments and whitespace (x).
  * Return Value:
     * Returns a `string` that is obtained after the replacements,
     * `missing` if any argument is a `missing` value,
@@ -362,7 +362,7 @@
 
  * Returns a string formed by repeating the input `string` `n` times.
  * Arguments:
-    * `string` : a `string` to be extracted,
+    * `string` : a `string` to be repeated,
     * `offset` : an `tinyint`/`smallint`/`integer`/`bigint` value as the starting offset of the substring in `string`.
  * Return Value:
     * a string that repeats the input `string` `n` times,
@@ -401,13 +401,14 @@
 
  * Example:
 
-        rtrim("i like iphone", "iphone");
-
+        {
+          "v1": rtrim("i like iphone", "iphone"),
+          "v2": rtrim("i like iphone", "oneiph")
+        };
 
  * The expected result is:
 
-        "i like "
-
+        { "v1": "i like ", "v2": "i like " }
 
 ### split ###
  * Syntax:
@@ -493,10 +494,10 @@
 
         string_join(array, string)
 
- * Joins a array or multiset of strings `array` with the given separator `string` into a single string.
+ * Joins an array or multiset of strings `array` with the given separator `string` into a single string.
  * Arguments:
     * `array` : an `array` or `multiset` of strings (could be `null`) to be joined.
-    * `string` : a `string` as the separator.
+    * `string` : a `string` to serve as the separator.
  * Return Value:
     * the joined `string`,
     * `missing` if any argument is a `missing` value,
@@ -531,6 +532,14 @@
     * `null` if the argument is a `null` value,
     * any other non-string input value will cause a type error.
 
+ * Example:
+
+        string_to_codepoint("Hello ASTERIX!");
+
+
+ * The expected result is:
+
+        [ 72, 101, 108, 108, 111, 32, 65, 83, 84, 69, 82, 73, 88, 33 ]
 
 
 ### codepoint_to_string ###
@@ -551,12 +560,13 @@
 
  * Example:
 
-        { "codes": string_to_codepoint("Hello ASTERIX!"), "string": codepoint_to_string(string_to_codepoint("Hello ASTERIX!"))};
+        codepoint_to_string([72, 101, 108, 108, 111, 32, 65, 83, 84, 69, 82, 73, 88, 33]);
 
 
  * The expected result is:
 
-        { "codes": [ 72, 101, 108, 108, 111, 32, 65, 83, 84, 69, 82, 73, 88, 33 ], "string": "Hello ASTERIX!" }
+        "Hello ASTERIX!"
+
 
 
 ### substr ###
@@ -608,9 +618,10 @@
         substring_before(" like iphone", "iphone");
 
 
-* The expected result is:
+ * The expected result is:
 
         " like "
+
 
 ### substring_after ###
  * Syntax:
@@ -630,12 +641,12 @@
 
  * Example:
 
-        substring_after(" like iphone", "iphone");
+        substring_after(" like iphone", "iph");
 
 
  * The expected result is:
 
-        ""
+        "one"
 
 
 ### trim ###
@@ -657,7 +668,7 @@
 
  * Example:
 
-        trim("i like iphone", "iphone");
+        trim("i like iphone", "iphoen");
 
 
  * The expected result is:

-- 
To view, visit https://asterix-gerrit.ics.uci.edu/1403
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I944d9dd1d1e23608b6a596190c3d89e19cfacead
Gerrit-PatchSet: 2
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Michael Carey <dt...@gmail.com>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Steven Jacobs <sj...@ucr.edu>
Gerrit-Reviewer: Yingyi Bu <bu...@gmail.com>

Change in asterixdb[master]: Cleaning up typos and clarifying examples in string function...

Posted by "Jenkins (Code Review)" <do...@asterixdb.incubator.apache.org>.
Jenkins has posted comments on this change.

Change subject: Cleaning up typos and clarifying examples in string function doc.
......................................................................


Patch Set 1:

Build Started https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-notopic/3642/

-- 
To view, visit https://asterix-gerrit.ics.uci.edu/1403
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I944d9dd1d1e23608b6a596190c3d89e19cfacead
Gerrit-PatchSet: 1
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Michael Carey <dt...@gmail.com>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-HasComments: No

Change in asterixdb[master]: Cleaning up typos and clarifying examples in string function...

Posted by "Jenkins (Code Review)" <do...@asterixdb.incubator.apache.org>.
Jenkins has posted comments on this change.

Change subject: Cleaning up typos and clarifying examples in string function doc.
......................................................................


Patch Set 1:

BAD Compatibility Tests Started https://asterix-jenkins.ics.uci.edu/job/asterixbad-compat/107/

-- 
To view, visit https://asterix-gerrit.ics.uci.edu/1403
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I944d9dd1d1e23608b6a596190c3d89e19cfacead
Gerrit-PatchSet: 1
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Michael Carey <dt...@gmail.com>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Yingyi Bu <bu...@gmail.com>
Gerrit-HasComments: No

Change in asterixdb[master]: Cleaning up typos and clarifying examples in string function...

Posted by "Yingyi Bu (Code Review)" <do...@asterixdb.incubator.apache.org>.
Yingyi Bu has posted comments on this change.

Change subject: Cleaning up typos and clarifying examples in string function doc.
......................................................................


Patch Set 1: Code-Review+2

-- 
To view, visit https://asterix-gerrit.ics.uci.edu/1403
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I944d9dd1d1e23608b6a596190c3d89e19cfacead
Gerrit-PatchSet: 1
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Michael Carey <dt...@gmail.com>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Yingyi Bu <bu...@gmail.com>
Gerrit-HasComments: No

Change in asterixdb[master]: Cleaning up typos and clarifying examples in string function...

Posted by "Jenkins (Code Review)" <do...@asterixdb.incubator.apache.org>.
Jenkins has posted comments on this change.

Change subject: Cleaning up typos and clarifying examples in string function doc.
......................................................................


Patch Set 1:

BAD Compatibility Tests Failed

https://asterix-jenkins.ics.uci.edu/job/asterixbad-compat/107/ : UNSTABLE

-- 
To view, visit https://asterix-gerrit.ics.uci.edu/1403
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I944d9dd1d1e23608b6a596190c3d89e19cfacead
Gerrit-PatchSet: 1
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Michael Carey <dt...@gmail.com>
Gerrit-Reviewer: Jenkins <je...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Yingyi Bu <bu...@gmail.com>
Gerrit-HasComments: No