Skip to content

Commit 94179a3

Browse files
author
Gary Arora
committed
typo in library causing it to fail when retreving raw results
1 parent af6fcbc commit 94179a3

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

lib/athenaExpress.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,10 @@ function getRawResultsFromS3(lineReader) {
192192
.on("close", function() {
193193
resolve(rawJson);
194194
});
195-
z;
196195
});
197196
}
198197

199198
function cleanUpDML(lineReader) {
200-
201199
let headerList = [],
202200
isFirstRecord = true,
203201
cleanJson = [],
@@ -216,7 +214,7 @@ function cleanUpDML(lineReader) {
216214
singleJsonRow = {};
217215
noOfColumns = line.length;
218216
for (let i = 0; i < noOfColumns; i++) {
219-
if(line[i].length) {
217+
if (line[i].length) {
220218
singleJsonRow[[headerList[i]]] = line[i];
221219
}
222220
}
@@ -234,7 +232,7 @@ function cleanUpNonDML(lineReader) {
234232
return new Promise(function(resolve, reject) {
235233
lineReader
236234
.on("line", line => {
237-
console.log(line)
235+
console.log(line);
238236

239237
switch (true) {
240238
case line.indexOf("\t") > 0:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "athena-express",
3-
"version": "3.1.5",
3+
"version": "3.2.5",
44
"description": "Athena-Express makes it easier to execute SQL queries on Amazon Athena by consolidating & astracting several methods in the AWS SDK",
55
"main": "./lib/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)