Skip to content

Commit

Permalink
Fix for csv url
Browse files Browse the repository at this point in the history
  • Loading branch information
matt40k committed Dec 3, 2017
1 parent 46f590a commit c8750ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/posts/2017-12-03-troublesome-csv.md
Expand Up @@ -13,7 +13,7 @@ tags:
---
Another day, another source of bad data. This time, it was a CSV.

{{< gist matt40k d30ab2858a1c2601606f8b2841ad3440 "file-troublesome-csv" >}}
{{< gist matt40k d30ab2858a1c2601606f8b2841ad3440 "file-troublesome.csv" >}}

As you can see, the format changes mid file. This makes importing tricky.
The way I tend to handle importing into SQL is to create staging tables with all the columns defined as varchar, then, once its imported into SQL, then convert it.
Expand Down

0 comments on commit c8750ba

Please sign in to comment.