Skip to content

Commit

Permalink
Refine doc
Browse files Browse the repository at this point in the history
  • Loading branch information
herunkang2018 committed Oct 30, 2023
1 parent 01c0662 commit 99ffd9e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions site/_docs/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -2649,7 +2649,7 @@ BigQuery's type system uses confusingly different names for types and functions:
* Similarly, `DATETIME(string)` returns a Calcite `TIMESTAMP`.

| C | Operator syntax | Description
|: |:-----------------------------------------------|:-----------
|:- |:-----------------------------------------------|:-----------
| p | expr :: type | Casts *expr* to *type*
| m | expr1 <=> expr2 | Whether two values are equal, treating null values as the same, and it's similar to `IS NOT DISTINCT FROM`
| * | ACOSH(numeric) | Returns the inverse hyperbolic cosine of *numeric*
Expand Down Expand Up @@ -2739,9 +2739,9 @@ BigQuery's type system uses confusingly different names for types and functions:
| b | FORMAT_TIMESTAMP(string timestamp) | Formats *timestamp* according to the specified format *string*
| s | GETBIT(value, position) | Equivalent to `BIT_GET(value, position)`
| b o | GREATEST(expr [, expr ]*) | Returns the greatest of the expressions
| h s | HEX(binary) | Converts *binary* into a hexadecimal varchar. For example, hex(x'6162') returns '6162'
| h s | HEX(bigint) | Converts *bigint* into a shortened hexadecimal varchar. For example, hex('17') returns '11'
| h s | HEX(varchar) | Converts *varchar* into a hexadecimal varchar. It converts each character of *varchar* into its hexadecimal representation. For example, hex('ab') returns '6162'
| h s | HEX(binary) | Converts *binary* into a hexadecimal string. For example, hex(x'6162') returns '6162'
| h s | HEX(bigint) | Converts *bigint* into a shortened hexadecimal string. For example, hex(10) returns 'a'
| h s | HEX(string) | Converts *string* into a hexadecimal string. It converts each character of *string* into its hexadecimal representation. For example, hex('ab') returns '6162'
| b h s | IF(condition, value1, value2) | Returns *value1* if *condition* is TRUE, *value2* otherwise
| b | IFNULL(value1, value2) | Equivalent to `NVL(value1, value2)`
| p | string1 ILIKE string2 [ ESCAPE string3 ] | Whether *string1* matches pattern *string2*, ignoring case (similar to `LIKE`)
Expand Down Expand Up @@ -2855,7 +2855,7 @@ BigQuery's type system uses confusingly different names for types and functions:
| b o p | TRANSLATE(expr, fromString, toString) | Returns *expr* with all occurrences of each character in *fromString* replaced by its corresponding character in *toString*. Characters in *expr* that are not in *fromString* are not replaced
| b | TRUNC(numeric1 [, numeric2 ]) | Truncates *numeric1* to optionally *numeric2* (if not specified 0) places right to the decimal point
| q | TRY_CAST(value AS type) | Converts *value* to *type*, returning NULL if conversion fails
| h s | UNHEX(varchar) | Converts a hexadecimal-encoded *varchar* into bytes, returns NULL if input is invalid hexadecimal-encoded *varchar*
| h s | UNHEX(string) | Converts a hexadecimal-encoded *string* into bytes; throws if *string* is not a valid hexadecimal string
| b | UNIX_MICROS(timestamp) | Returns the number of microseconds since 1970-01-01 00:00:00
| b | UNIX_MILLIS(timestamp) | Returns the number of milliseconds since 1970-01-01 00:00:00
| b | UNIX_SECONDS(timestamp) | Returns the number of seconds since 1970-01-01 00:00:00
Expand Down

0 comments on commit 99ffd9e

Please sign in to comment.