forked from awsdocs/amazon-redshift-developer-guide
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'awsdocs:master' into patch-1
- Loading branch information
Showing
373 changed files
with
4,095 additions
and
1,650 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# AddBBox<a name="AddBBox-function"></a> | ||
|
||
AddBBox returns a copy of the input geometry that supports encoding with a precomputed bounding box\. For more information about support for bounding boxes, see [Bounding box](spatial-terminology.md#spatial-terminology-bounding-box)\. | ||
|
||
## Syntax<a name="AddBBox-function-syntax"></a> | ||
|
||
``` | ||
AddBBox(geom) | ||
``` | ||
|
||
## Arguments<a name="AddBBox-function-arguments"></a> | ||
|
||
*geom* | ||
A value of data type `GEOMETRY` or an expression that evaluates to a `GEOMETRY` type\. | ||
|
||
## Return type<a name="AddBBox-function-return"></a> | ||
|
||
`GEOMETRY` | ||
|
||
If *geom* is null, then null is returned\. | ||
|
||
## Examples<a name="AddBBox-function-examples"></a> | ||
|
||
The following SQL returns a copy of an input polygon geometry that supports being encoded with a bounding box\. | ||
|
||
``` | ||
SELECT ST_AsText(AddBBox(ST_GeomFromText('POLYGON((0 0,1 0,0 1,0 0))'))); | ||
``` | ||
|
||
``` | ||
st_astext | ||
---------- | ||
POLYGON((0 0,1 0,0 1,0 0)) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# DropBBox<a name="DropBBox-function"></a> | ||
|
||
DropBBox returns a copy of the input geometry that doesn't support encoding with a precomputed bounding box\. For more information about support for bounding boxes, see [Bounding box](spatial-terminology.md#spatial-terminology-bounding-box)\. | ||
|
||
## Syntax<a name="DropBBox-function-syntax"></a> | ||
|
||
``` | ||
DropBBox(geom) | ||
``` | ||
|
||
## Arguments<a name="DropBBox-function-arguments"></a> | ||
|
||
*geom* | ||
A value of data type `GEOMETRY` or an expression that evaluates to a `GEOMETRY` type\. | ||
|
||
## Return type<a name="DropBBox-function-return"></a> | ||
|
||
`GEOMETRY` | ||
|
||
If *geom* is null, then null is returned\. | ||
|
||
## Examples<a name="DropBBox-function-examples"></a> | ||
|
||
The following SQL returns a copy of an input polygon geometry that doesn't support being encoded with a bounding box\. | ||
|
||
``` | ||
SELECT ST_AsText(DropBBox(ST_GeomFromText('POLYGON((0 0,1 0,0 1,0 0))'))); | ||
``` | ||
|
||
``` | ||
st_astext | ||
---------- | ||
POLYGON((0 0,1 0,0 1,0 0)) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# JSON\_PARSE function<a name="JSON_PARSE"></a> | ||
|
||
The JSON\_PARSE function parses data in JSON format and converts it into the SUPER representation\. | ||
|
||
To ingest into SUPER data type using the INSERT or UPDATE command, use the JSON\_PARSE function\. | ||
|
||
## Syntax<a name="JSON_PARSE-synopsis"></a> | ||
|
||
``` | ||
JSON_PARSE(json_string) | ||
``` | ||
|
||
## Arguments<a name="JSON_PARSE-arguments"></a> | ||
|
||
*json\_string* | ||
An expression that returns serialized JSON in the varchar form\. | ||
|
||
## Return type<a name="JSON_PARSE-return"></a> | ||
|
||
SUPER | ||
|
||
## Example<a name="JSON_PARSE-examples"></a> | ||
|
||
The following example is an example of the JSON\_PARSE function\. | ||
|
||
``` | ||
SELECT JSON_PARSE('[10001,10002,"abc"]'); | ||
json_parse | ||
-------------------------- | ||
[10001,10002,"abc"] | ||
(1 row) | ||
``` | ||
|
||
``` | ||
SELECT JSON_TYPEOF(JSON_PARSE('[10001,10002,"abc"]')); | ||
json_typeof | ||
---------------- | ||
array | ||
(1 row) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# JSON\_SERIALIZE function<a name="JSON_SERIALIZE"></a> | ||
|
||
The JSON\_SERIALIZE function serializes a SUPER expression into textual JSON representation to follow RFC 8259\. For more information on that RFC, see [The JavaScript Object Notation \(JSON\) Data Interchange Format](https://docs.aws.amazon.com/https://tools.ietf.org/html/rfc8259)\. | ||
|
||
The SUPER size limit is approximately the same as the block limit, and the varchar limit is smaller than the SUPER size limit\. Therefore, the JSON\_SERIALIZE function returns an error when the JSON format exceeds the varchar limit of the system\. | ||
|
||
## Syntax<a name="JSON_SERIALIZE-synopsis"></a> | ||
|
||
``` | ||
JSON_SERIALIZE(super_expression) | ||
``` | ||
|
||
## Arguments<a name="JSON_SERIALIZE-arguments"></a> | ||
|
||
*super\_expression* | ||
A super expression or column\. | ||
|
||
## Return type<a name="JSON_SERIALIZE-return"></a> | ||
|
||
varchar | ||
|
||
## Example<a name="JSON_SERIALIZE-examples"></a> | ||
|
||
The following example serializes a SUPER value to a string\. | ||
|
||
``` | ||
SELECT JSON_SERIALIZE(JSON_PARSE('[10001,10002,"abc"]')); | ||
json_serialize | ||
--------------------- | ||
[10001,10002,"abc"] | ||
(1 row) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.