add two failing sql reduction tests
Whittle down where this is actually happening
Pass encoding where possible
resource split refactored out to single high-priority function
add impala sqlalchemy resource function
Fix newlines
Merge pull request #647 from cpcloud/fix-newlines-csv-windows

Fix newlines on windows for CSV
Merge pull request #640 from cpcloud/fix-csv-encoding

Fix OS X Encoding test
fix syntax error in test
Merge pull request #646 from mrocklin/impyla-resource

Impyla resource dispatched method
Merge branch 'master' into fix-sql-reductions
columnwise on complex selection
sql: fix reductions on complex selectables
sql: clean head, count, and reductions on by
count first column if no primary-key specified
Merge pull request #626 from mrocklin/fix-sql-reductions

Improve SQL generation for reductions and By on reductions