Skip to content

refactor: refactor starrocks, improve performance, solve bugs#4475

Merged
abeizn merged 7 commits intoapache:mainfrom
merico-ai:starrocks-refactor
Feb 23, 2023
Merged

refactor: refactor starrocks, improve performance, solve bugs#4475
abeizn merged 7 commits intoapache:mainfrom
merico-ai:starrocks-refactor

Conversation

@abeizn
Copy link
Contributor

@abeizn abeizn commented Feb 21, 2023

Summary

refactor starrocks, improve performance, solve bugs.

Does this close any open issues?

Closes #4418
Closes #4376
Closes #4377

Screenshots

export data:
image

cancel task:
image

pipeline is blocked for 30+ mins:
image

Other Information

Any other information that is important to this PR.

}
}
// 2. Filter out the tables to import
starrocksTables, err := getImportTables(c, db)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import? I think it should be export?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getExportingTables maybe

var orderBy string
var skip bool
columnMap, orderBy, skip, err = createTmpTable(starrocks, db, starrocksTable, starrocksTmpTable, table, c, config)
columnMap, orderBy, skip, err := createTmpTable(c, starrocksDb, db, starrocksTable, starrocksTmpTable, table)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about createTmpTableInStarrocks?

return errors.Convert(err)
}
err = errors.Convert(db.Exec("commit"))
err = putDataToDst(c, starrocksDb, db, starrocksTable, starrocksTmpTable, table, columnMap, orderBy)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copyDataToDst

@abeizn abeizn force-pushed the starrocks-refactor branch from 8c5700e to f854025 Compare February 23, 2023 08:57
Copy link
Contributor

@mindlesscloud mindlesscloud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@abeizn abeizn merged commit 511ed3b into apache:main Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants