1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

fix(cpimport): MCOL-4882 fix -L arg default value

This commit is contained in:
Aleksei Antipovskii
2025-07-13 17:25:29 +02:00
committed by Leonid Fedorov
parent 25c364a520
commit 7dca1da8f2
2 changed files with 6 additions and 3 deletions

View File

@ -131,7 +131,7 @@ WECmdArgs::WECmdArgs(int argc, char** argv)
"S3 Hostname (for S3 imports, Amazon's S3 default)")
("s3-region,g", po::value<string>(&fS3Region),
"S3 Region (for S3 imports)")
("errors-dir,L", po::value<string>(&fErrorDir)->default_value(MCSLOGDIR),
("errors-dir,L", po::value<string>(&fErrorDir)->default_value(fErrorDir),
"Directory for the output .err and .bad files")
("job-uuid,u", po::value<string>(&fUUID), "import job UUID")
("username,U", po::value<string>(&fUsername), "Username of the files owner.")
@ -514,7 +514,10 @@ void WECmdArgs::fillParams(BulkLoad& curJob, std::string& sJobIdStr, std::string
{
cout << "number of read threads : " << fNoOfReadThrds << endl;
}
cout << "Column delimiter : " << (fColDelim == '\t' ? "\\t" : string{fColDelim}) << endl;
if (fColDelim != 0)
{
cout << "Column delimiter : " << (fColDelim == '\t' ? "\\t" : string{fColDelim}) << endl;
}
if (fNoOfWriteThrds != 0)
{
cout << "number of parse threads : " << fNoOfWriteThrds << endl;

View File

@ -132,7 +132,7 @@ WECmdArgs::WECmdArgs(int argc, char** argv)
"S3 Hostname (for S3 imports, Amazon's S3 default)")
("s3-region,g", po::value<string>(&fS3Region),
"S3 Region (for S3 imports)")
("errors-dir,L", po::value<string>(&fErrorDir)->default_value(MCSLOGDIR),
("errors-dir,L", po::value<string>(&fErrorDir)->default_value(fErrorDir),
"Directory for the output .err and .bad files")
("username,U", po::value<string>(&fUsername), "Username of the files owner.")
("dbname", po::value<string>(), "Name of the database to load")