KoteiIto / node-athena

a nodejs simple aws athena client
MIT License
105 stars 73 forks source link

I get UnhandledPromiseRejection warning when sql has error #36

Closed motizharfati closed 6 years ago

motizharfati commented 6 years ago

try to execute this code:

return athenaUtil.createClient({ bucketUri: 'MY S3 OUTPUT' }, { region: process.env.AWS_REGION }).execute('BAD SQL STRING').toStream();

it will throw "UnhandledPromiseRejectionWarning: InvalidRequestException: line 1:1: mismatched input 'BAD' expecting"

motizharfati commented 6 years ago

I can see it's working good, i miss the "error" event on the stream, i am closing the issue.