Skip to content

Instantly share code, notes, and snippets.

@daynebatten
Created March 20, 2015 11:45
Show Gist options
  • Select an option

  • Save daynebatten/473f021ced78325e47d8 to your computer and use it in GitHub Desktop.

Select an option

Save daynebatten/473f021ced78325e47d8 to your computer and use it in GitHub Desktop.
create temp table voters (
name_prefix varchar(255),
last_name varchar(255),
first_name varchar(255),
middle_name varchar(255),
name_suffix varchar(255),
race char(1),
ethnicity varchar(255),
party char(3),
gender char(1),
age int
);
copy voters
from 's3://youwishiforgottodeletethis/voters.csv'
credentials 'thistoo'
csv
trimblanks
blanksasnull
ignoreheader as 1
maxerror as 100;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment