Skip to content

Commit

Permalink
typo in library causing it to fail when retreving raw results
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Arora committed Jan 28, 2019
1 parent af6fcbc commit 94179a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions lib/athenaExpress.js
Expand Up @@ -192,12 +192,10 @@ function getRawResultsFromS3(lineReader) {
.on("close", function() {
resolve(rawJson);
});
z;
});
}

function cleanUpDML(lineReader) {

let headerList = [],
isFirstRecord = true,
cleanJson = [],
Expand All @@ -216,7 +214,7 @@ function cleanUpDML(lineReader) {
singleJsonRow = {};
noOfColumns = line.length;
for (let i = 0; i < noOfColumns; i++) {
if(line[i].length) {
if (line[i].length) {
singleJsonRow[[headerList[i]]] = line[i];
}
}
Expand All @@ -234,7 +232,7 @@ function cleanUpNonDML(lineReader) {
return new Promise(function(resolve, reject) {
lineReader
.on("line", line => {
console.log(line)
console.log(line);

switch (true) {
case line.indexOf("\t") > 0:
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "athena-express",
"version": "3.1.5",
"version": "3.2.5",
"description": "Athena-Express makes it easier to execute SQL queries on Amazon Athena by consolidating & astracting several methods in the AWS SDK",
"main": "./lib/index.js",
"scripts": {
Expand Down

0 comments on commit 94179a3

Please sign in to comment.