File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -197,6 +197,7 @@ function getRawResultsFromS3(lineReader) {
197197}
198198
199199function cleanUpDML ( lineReader ) {
200+
200201 let headerList = [ ] ,
201202 isFirstRecord = true ,
202203 cleanJson = [ ] ,
@@ -215,7 +216,9 @@ function cleanUpDML(lineReader) {
215216 singleJsonRow = { } ;
216217 noOfColumns = line . length ;
217218 for ( let i = 0 ; i < noOfColumns ; i ++ ) {
218- singleJsonRow [ [ headerList [ i ] ] ] = line [ i ] ;
219+ if ( line [ i ] . length ) {
220+ singleJsonRow [ [ headerList [ i ] ] ] = line [ i ] ;
221+ }
219222 }
220223 cleanJson . push ( singleJsonRow ) ;
221224 }
@@ -231,6 +234,8 @@ function cleanUpNonDML(lineReader) {
231234 return new Promise ( function ( resolve , reject ) {
232235 lineReader
233236 . on ( "line" , line => {
237+ console . log ( line )
238+
234239 switch ( true ) {
235240 case line . indexOf ( "\t" ) > 0 :
236241 line = line . split ( "\t" ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " athena-express" ,
3- "version" : " 3.0.2 " ,
3+ "version" : " 3.1.0 " ,
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" : {
You can’t perform that action at this time.
0 commit comments