The Vertica Forum recently got a makeover! Let us know what you think by filling out this short, anonymous survey.
Please take this survey to help us learn more about how you use third party tools. Your input is greatly appreciated!
s3EXPORT_PARTITION

Answers
Sure!
Quick example:
I run this query

SELECT s3EXPORT_PARTITION(* USING PARAMETERS url='s3://bucket_name/test/bystate.date') OVER (PARTITION by to_char(ts, 'YYYYMMDD')) from T;
and I get this error..
my vertica version 10.0.1-6.
it parse a part of the data but not all the data.

and in s3 the folder:
how to do it like this ? date=20201205
Not sure what you mean by "it parse a part of the data but not all the data"...
Can you run this query without error?
SELECT to_char(ts, 'YYYYMMDD')) from T;
For your question "how to do it like this ? date=20201205", you can use a sub-query and name the derived column that you are using as the partition...
Example:
I will try to explain better,

I run this query:
SELECT s3EXPORT_PARTITION(* USING PARAMETERS url='s3://bucket_name/test/bystate.date') OVER (PARTITION by to_char(ts, 'YYYYMMDD'))
i get this error
the distinct value from the source table is


in s3 I get these folders only:
and there are files in the folders, but not all the folders that need to be.
Can you try running the export command from vsql?
I export command from vsql what you send,
this is the result

but I get the same error, and not all the data in the folder:
ERROR 5861: Error calling processPartition() in User Function s3export_partition at [/data/qb_workspaces/jenkins2/ReleaseBuilds/Hammermill/REL-10_0_1-x_hammermill/build/udx/supported/AWS/S3.cpp:799], error code: 0, message: Unknown exception: No response body. Response code: 4294967295
Hi,
Hmm. Let's do some trouble shooting. First, can you post the DDL for the table?
SELECT export_objects('','T');
Once I have the DDL I will install your version of Vertica to test. What is the exact version you are running?
SELECT version();
Next, can you try running these?
I have no explanation for why some succeed and some do not.
The DDL in your attached file is not Vertica DDL
For example, it's referenceing a data type "numerivalue".
I add the new script in DDL Table, it is ok now?
Thank you so much for all the help.
I change the parameter chunksize and it's work!!

SELECT s3EXPORT_PARTITION(* USING PARAMETERS url=''s3://bucket_name/test1/bystate.date',chunksize=20485760) OVER (PARTITION BY date) FROM (SELECT TO_CHAR(ts, 'YYYYMMDD') AS date, * FROM T WHERE TO_CHAR(ts, 'YYYYMMDD') = '20201211') foo;
Thank you @Jim_Knicely