Skip to content

Commit

Permalink
fix pragma temp_dir location
Browse files Browse the repository at this point in the history
  • Loading branch information
pskrbasu committed Jan 14, 2025
1 parent 1fe21cf commit cfa9602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/parquet/duck_db.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func newDuckDb() (*duckDb, error) {

func installAndLoadExtensions(db *sql.DB) error {
// set the TEMP directory
if _, err := db.Exec(fmt.Sprintf("PRAGMA temp_directory='%s';", fmt.Sprintf("%s/collection/duckdb.tmp/tmp/", filepaths.GetInternalDir()))); err != nil {
if _, err := db.Exec(fmt.Sprintf("PRAGMA temp_directory='%s';", fmt.Sprintf("%s/collection/duckdb.tmp/tmp", filepaths.GetInternalDir()))); err != nil {
return fmt.Errorf("failed to set temp_directory: %w", err)
}
// set the extension directory
Expand Down

0 comments on commit cfa9602

Please sign in to comment.