SNOW-1657238: SnowflakeDbCommand.ExecuteNonQueryAsync returns incorrect count; only includes from first row when loading from Stage #1023
Labels
bug
status-pr_pending_merge
A PR is made and is under review
status-triage_done
Initial triage done, will be further handled by the driver team
What version of .NET driver are you using?
Reproduced on 4.1.0 and 4.0.0.
What operating system and processor architecture are you using?
Windows 11 on Microsoft Dev Box in Azure (reports Intel Xeon Platinum 8370C)
Also seeing issue in Azure App Service Plan (I1V2 tier. Not sure what that runs on)
What version of .NET framework are you using?
.Net 8.0
What did you do?
Repro steps (all running in a console app) -
I'm expecting to see the number of rows loaded to the table from stage. Instead it's returning only the number of records from the first file loaded.
The record count returned is only for the first record and doesn't properly aggregate the results.
Debugging the code a bit, it looks like there is an issue reading the resultset returned. It doesn't think there is more than one result.
When digging into the ResultSetUtil.CalculateUpdateCount, which looks to handle the nuances of record counts for various operations, it is aware of both rows, as evident in the private _currentChunk variable.
Debug logs attached.
snowflake_dotnet4.log
The text was updated successfully, but these errors were encountered: