SNOW-1833760: Statement hasNext
and NextResult
are incorrectly typed
#974
Labels
bug
Something isn't working
status-triage_done
Initial triage done, will be further handled by the driver team
Apologies for omitting the standard questionnaire it's largely irrelevant. This is using version 1.15.0 of the driver.
The driver currently has the
FileAndStageBindStatement
methodshasNext
andNextResult
typed incorrectly, as functions that return functions. This is minor, but generates (for example) a linting warning like "Unnecessary conditional, value is always truthy." when attempting to call.hasNext()
.For example, the following code shows a linting error:
and instead expects to see
stmt.hasNext()()
.The issue seems to be here where the definitions have an extra set of parentheses. For validation, the source here returns a function, the result of which is assigned to
this.hasNext
.The text was updated successfully, but these errors were encountered: