Skip to content

Instantly share code, notes, and snippets.

@trashhalo
Created December 1, 2020 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trashhalo/936c4dacf79eb2e7504efcdc2c7539f8 to your computer and use it in GitHub Desktop.
Save trashhalo/936c4dacf79eb2e7504efcdc2c7539f8 to your computer and use it in GitHub Desktop.
csv-to-parquet commas
diff --git a/main.go b/main.go
index 2d4ec9e..e7ea896 100644
--- a/main.go
+++ b/main.go
@@ -101,7 +101,7 @@ func run(c *cli.Context) error {
return err
}
csvReader := csv.NewReader(f)
- csvReader.Comma = '\t'
+ csvReader.Comma = ','
headerRow, err := csvReader.Read()
if err != nil {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment