diff --git a/gpdb-doc/dita/admin_guide/external/g-hdfs-readable-and-writable-external-table-examples.xml b/gpdb-doc/dita/admin_guide/external/g-hdfs-readable-and-writable-external-table-examples.xml index 815685feb989fc7710c69c18ec535827b3dbd833..89e53bd4cb8f6baa1303bc7f21247cf67fe043ac 100644 --- a/gpdb-doc/dita/admin_guide/external/g-hdfs-readable-and-writable-external-table-examples.xml +++ b/gpdb-doc/dita/admin_guide/external/g-hdfs-readable-and-writable-external-table-examples.xml @@ -8,11 +8,11 @@ filename.txt on port 8081.

=# CREATE EXTERNAL TABLE ext_expenses ( - name text, -    date date, - amount float4, - category text, - desc1 text ) + name text, +    date date, + amount float4, + category text, + desc1 text ) LOCATION ('gphdfs://hdfshost-1:8081/data/filename.txt')    FORMAT 'TEXT' (DELIMITER ','); @@ -20,7 +20,12 @@

The following code defines a set of readable external tables that have a custom format located in the same HDFS directory on port 8081.

- =# CREATE EXTERNAL TABLE ext_expenses + =# CREATE EXTERNAL TABLE ext_expenses ( + name text, +    date date, + amount float4, + category text, + desc1 text )    LOCATION ('gphdfs://hdfshost-1:8081/data/custdat*.dat')    FORMAT 'custom' (formatter='gphdfs_import'); @@ -28,7 +33,12 @@

The following code defines an HDFS directory for a writable external table on port 8081 with all compression options specified.

- =# CREATE WRITABLE EXTERNAL TABLE ext_expenses + =# CREATE WRITABLE EXTERNAL TABLE ext_expenses ( + name text, +    date date, + amount float4, + category text, + desc1 text )    LOCATION ('gphdfs://hdfshost-1:8081/data/?compress=true&compression_type=RECORD &codec=org.apache.hadoop.io.compress.DefaultCodec')    FORMAT 'custom' (formatter='gphdfs_export'); @@ -38,7 +48,12 @@ compression_type and codec, the following command is equivalent.

- =# CREATE WRITABLE EXTERNAL TABLE ext_expenses + =# CREATE WRITABLE EXTERNAL TABLE ext_expenses ( + name text, +    date date, + amount float4, + category text, + desc1 text )    LOCATION    ('gphdfs://hdfshost-1:8081/data?compress=true')    FORMAT 'custom' (formatter='gphdfs_export');