Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
duckdb: increase default max_line_size [nt]
Browse files Browse the repository at this point in the history
  • Loading branch information
flarco committed Oct 24, 2023
1 parent ce81e55 commit 5e477b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/database_duckdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ func (conn *DuckDbConn) BulkImportStream(tableFName string, ds *iop.Datastream)
})

sqlLines := []string{
g.F(`insert into %s (%s) select * from read_csv('%s', delim=',', header=True, columns=%s);`, table.FDQN(), strings.Join(columnNames, ", "), csvPath, conn.generateCsvColumns(ds.Columns)),
g.F(`insert into %s (%s) select * from read_csv('%s', delim=',', header=True, columns=%s, max_line_size=134217728);`, table.FDQN(), strings.Join(columnNames, ", "), csvPath, conn.generateCsvColumns(ds.Columns)),
}

var out []byte
Expand Down

0 comments on commit 5e477b3

Please sign in to comment.