Copy command not writing in load_streams table
Hey guys,
I'm loading some data into the vertica database using "copy local" and the uploads are not writing to the load_streams table. Can someone help me?
Copy command example:
COPY ftt_dim_empresa from local 'C:\SD\dm_empresa.csv' DELIMITER '|' DIRECT;
I'm loading some data into the vertica database using "copy local" and the uploads are not writing to the load_streams table. Can someone help me?
Copy command example:
COPY ftt_dim_empresa from local 'C:\SD\dm_empresa.csv' DELIMITER '|' DIRECT;
0
Best Answers
-
mpedroso ✭
Thanks for the support.
In fact, I have run some tests here and the information is recorded when the data volume is larger and consequently the time exceeds 1s. However, it's important to get the metrics for the smaller uploads as well, is there any way?
0 -
Jim_Knicely - Select Field - Administrator
You can get the number of accepted and rejected rows via the GET_NUM_ACCEPTED_ROWS and GET_NUM_REJECTED_ROWS functions, respectively:
dbadmin=> COPY test_local FROM LOCAL '/home/dbadmin/small_local.txt' DIRECT STREAM NAME 'FAST_LOAD'; Rows Loaded ------------- 3 (1 row) dbadmin=> SELECT get_num_accepted_rows(); get_num_accepted_rows ----------------------- 3 (1 row) dbadmin=> SELECT get_num_rejected_rows(); get_num_rejected_rows ----------------------- 1 (1 row)
5
Answers
Hi,
Running a COPY LOCAL does record info in the LOAD_STREAMS and LOAD_SOURCES table:
Note that these system tables record info. from every COPY statement that takes more than 1-second to run. The 1-second duration includes the time to plan and execute the statement.
Nice! Thanks.