ZhaoBQ commented on issue #5011:
URL:
https://github.com/apache/incubator-doris/issues/5011#issuecomment-737629242
Thank you @chaoyli . Yes, I changed the primary key order, and delete the
other table's last '|'. Although I did not convert the empty string to NULL,
the data can also be loaded successfully.
> (1)awk -v FS='|' -v OFS='|' '{print
$3,$10,$1,$2,$4,$5,$6,$7,$8,$9,$11,$12,$13,$14,$15,$16,$17,$18,$19,$20}'
store_returns.dat > store_returns.test // it will delete the last '|'
> (2)awk '{sub(/.{1}$/,"")}1' web_site.dat > web_site.test // other tables
> (3)curl --location-trusted -u root -H "column_separator:|" -H
"label:store_returns_test" -T store_returns.test
http://doris1.com:8030/api/test/store_returns/_stream_load
The empty strings are automatically converted to NULL by Doris

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]