missing data for column "tt"
Default value: false or off
Value range: true/on, false/off.
1 | extra data after last expected column |
Default value: false or off
Default value: false or off
The following describes the rules for converting an invalid character:
Create a foreign table in the GaussDB(DWS) database. Parameters are described as follows:
The values of access_key and secret_access_key are examples only.
When exporting data from OBS, this parameter cannot be set to true. Use the default value false.
Based on the preceding settings, the foreign table is created using the following statements:
// Hard-coded or plaintext AK and SK are risky. For security purposes, encrypt your AK and SK and store them in the configuration file or environment variables.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | DROP FOREIGN TABLE product_info_ext; CREATE FOREIGN TABLE product_info_ext ( product_price integer not null, product_id char(30) not null, product_time date , product_level char(10) , product_name varchar(200) , product_type1 varchar(20) , product_type2 char(10) , product_monthly_sales_cnt integer , product_comment_time date , product_comment_num integer , product_comment_content varchar(200) ) SERVER gsmpp_server OPTIONS( LOCATION 'obs://mybucket/input_data/product_info | obs://mybucket02/input_data/product_info', FORMAT 'CSV' , DELIMITER ',', encoding 'utf8', header 'false', ACCESS_KEY 'access_key_value_to_be_replaced', SECRET_ACCESS_KEY 'secret_access_key_value_to_be_replaced', fill_missing_fields 'true', ignore_extra_data 'true' ) READ ONLY LOG INTO product_info_err PER NODE REJECT LIMIT 'unlimited'; |
If the following information is displayed, the foreign table has been created:
1 | CREATE FOREIGN TABLE |