You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-07 03:22:57 +03:00
This reverts commit c6d4c2a102
.
Co-authored-by: Roman Nozdrin <rnozdrin@mariadb.com>
This commit is contained in:
@@ -916,16 +916,24 @@ void getTableOID(const std::string& xmlGenSchema, const std::string& xmlGenTable
|
||||
void constructTempXmlFile(const std::string& tempJobDir, const std::string& sJobIdStr,
|
||||
const std::string& xmlGenSchema, const std::string& xmlGenTable,
|
||||
const std::string& alternateImportDir, const std::string& S3Bucket,
|
||||
boost::filesystem::path& sFileName)
|
||||
const std::string& tableOIDStr, boost::filesystem::path& sFileName)
|
||||
{
|
||||
// Construct the job description file name
|
||||
std::string xmlErrMsg;
|
||||
int rc = 0;
|
||||
std::string tableOIDStr;
|
||||
getTableOID(xmlGenSchema, xmlGenTable, tableOIDStr);
|
||||
std::string localTableOIDStr;
|
||||
if (tableOIDStr.empty())
|
||||
{
|
||||
getTableOID(xmlGenSchema, xmlGenTable, localTableOIDStr);
|
||||
}
|
||||
else
|
||||
{
|
||||
localTableOIDStr = tableOIDStr;
|
||||
}
|
||||
|
||||
rc = XMLJob::genJobXMLFileName(std::string(), tempJobDir, sJobIdStr,
|
||||
true, // using temp job xml file
|
||||
xmlGenSchema, xmlGenTable, sFileName, xmlErrMsg, tableOIDStr);
|
||||
xmlGenSchema, xmlGenTable, sFileName, xmlErrMsg, localTableOIDStr);
|
||||
|
||||
if (rc != NO_ERROR)
|
||||
{
|
||||
@@ -945,7 +953,7 @@ void constructTempXmlFile(const std::string& tempJobDir, const std::string& sJob
|
||||
{
|
||||
genProc.startXMLFile();
|
||||
execplan::CalpontSystemCatalog::TableName tbl(xmlGenSchema, xmlGenTable);
|
||||
genProc.makeTableData(tbl);
|
||||
genProc.makeTableData(tbl, localTableOIDStr);
|
||||
|
||||
if (!genProc.makeColumnData(tbl))
|
||||
{
|
||||
@@ -1222,9 +1230,9 @@ int main(int argc, char** argv)
|
||||
if (!xmlGenSchema.empty()) // create temporary job file name
|
||||
{
|
||||
// If JobID is not provided, then default to the table OID
|
||||
std::string tableOIDStr{""};
|
||||
if (sJobIdStr.empty())
|
||||
{
|
||||
std::string tableOIDStr;
|
||||
getTableOID(xmlGenSchema, xmlGenTable, tableOIDStr);
|
||||
|
||||
if (!(BulkLoad::disableConsoleOutput()))
|
||||
@@ -1239,7 +1247,7 @@ int main(int argc, char** argv)
|
||||
|
||||
bUseTempJobFile = true;
|
||||
constructTempXmlFile(curJob.getTempJobDir(), sJobIdStr, xmlGenSchema, xmlGenTable,
|
||||
curJob.getAlternateImportDir(), curJob.getS3Bucket(), sFileName);
|
||||
curJob.getAlternateImportDir(), curJob.getS3Bucket(), tableOIDStr, sFileName);
|
||||
}
|
||||
else // create user's persistent job file name
|
||||
{
|
||||
|
Reference in New Issue
Block a user