Skip to content

Commit

Permalink
manually set false about SLING_PROCESS_BW
Browse files Browse the repository at this point in the history
  • Loading branch information
yokofly committed Oct 14, 2024
1 parent 4d365e7 commit c10feda
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/sling/task_run_write.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ func (t *TaskExecution) WriteToFile(cfg *Config, df *iop.Dataflow) (cnt uint64,
func (t *TaskExecution) WriteToDb(cfg *Config, df *iop.Dataflow, tgtConn database.Connection) (cnt uint64, err error) {
defer t.PBar.Finish()

// Force SLING_PROCESS_BW to false for Proton
if tgtConn.GetType() == dbio.TypeDbProton {
os.Setenv("SLING_PROCESS_BW", "false")
}

// detect empty
if len(df.Columns) == 0 {
err = g.Error("no stream columns detected")
Expand Down

0 comments on commit c10feda

Please sign in to comment.