This is an automated email from the ASF dual-hosted git repository.

mbudiu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/calcite.git


The following commit(s) were added to refs/heads/main by this push:
     new 4e4b246889 Modify DAYNAME and MONTHNAME doc description when set 
different locale
4e4b246889 is described below

commit 4e4b2468894f0c08aa191cc9ff929073703db80b
Author: Zhengqiang Duan <[email protected]>
AuthorDate: Wed Nov 13 08:20:54 2024 +0800

    Modify DAYNAME and MONTHNAME doc description when set different locale
---
 site/_docs/reference.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/site/_docs/reference.md b/site/_docs/reference.md
index 6a5abd3672..c0f2b5a6b7 100644
--- a/site/_docs/reference.md
+++ b/site/_docs/reference.md
@@ -2785,7 +2785,7 @@ In the following:
 | * | CSC(numeric)                                   | Returns the cosecant of 
*numeric* in radians
 | * | CSCH(numeric)                                  | Returns the hyperbolic 
cosecant of *numeric*
 | b | CURRENT_DATETIME([ timeZone ])                 | Returns the current 
time as a TIMESTAMP from *timezone*
-| m | DAYNAME(datetime)                              | Returns the name, in 
the connection's locale, of the weekday in *datetime*; for example, it returns 
'星期日' for both DATE '2020-02-10' and TIMESTAMP '2020-02-10 10:10:10'
+| m | DAYNAME(datetime)                              | Returns the name, in 
the connection's locale, of the weekday in *datetime*; for example, for a 
locale of en, it will return 'Sunday' for both DATE '2020-02-10' and TIMESTAMP 
'2020-02-10 10:10:10', and for a locale of zh, it will return '星期日'
 | b | DATE(timestamp)                                | Extracts the DATE from 
a *timestamp*
 | b | DATE(timestampLtz)                             | Extracts the DATE from 
*timestampLtz* (an instant; BigQuery's TIMESTAMP type), assuming UTC
 | b | DATE(timestampLtz, timeZone)                   | Extracts the DATE from 
*timestampLtz* (an instant; BigQuery's TIMESTAMP type) in *timeZone*
@@ -2877,7 +2877,7 @@ In the following:
 | s | STR_TO_MAP(string [, stringDelimiter [, keyValueDelimiter]]) | Returns a 
map after splitting the *string* into key/value pairs using delimiters. Default 
delimiters are ',' for *stringDelimiter* and ':' for *keyValueDelimiter*. Note 
that calcite is using the LAST_WIN strategy
 | s | SUBSTRING_INDEX(string, delim, count)          | Returns the substring 
from *string* before *count* occurrences of the delimiter *delim*. If *count* 
is positive, everything to the left of the final delimiter (counting from the 
left) is returned. If *count* is negative, everything to the right of the final 
delimiter (counting from the right) is returned. The function substring_index 
performs a case-sensitive match when searching for *delim*.
 | b m p r s | MD5(string)                            | Calculates an MD5 
128-bit checksum of *string* and returns it as a hex string
-| m | MONTHNAME(date)                                | Returns the name, in 
the connection's locale, of the month in *datetime*; for example, it returns 
'二月' for both DATE '2020-02-10' and TIMESTAMP '2020-02-10 10:10:10'
+| m | MONTHNAME(date)                                | Returns the name, in 
the connection's locale, of the month in *datetime*; for example, for a locale 
of en, it will return 'February' for both DATE '2020-02-10' and TIMESTAMP 
'2020-02-10 10:10:10', and for a locale of zh, it will return '二月'
 | o r s | NVL(value1, value2)                        | Returns *value1* if 
*value1* is not null, otherwise *value2*
 | o r s | NVL2(value1, value2, value3)               | Returns *value2* if 
*value1* is not null, otherwise *value3*
 | b | OFFSET(index)                                  | When indexing an array, 
wrapping *index* in `OFFSET` returns the value at the 0-based *index*; throws 
error if *index* is out of bounds

Reply via email to