Ever since we changed from mattn/go-sqlite3 to modernc.org/sqlite, in order to be able to build on linux and deploy on openbsd, we have a bug on polybase.
Right now, the bug is very badly understood, I do suspect it may be caused by the modernc.org/sqlite lib but it is too early to tell.
In order to fix it, we should add a LOT more debugs (with log levels) for standard operations. Once the source of the bug has been identified, the bug should be copied. If it turns out that modernc.org/sqlite is the cause, then we should work with them to fix this issue. If polybase is the cause, then a series of unit test that currently fail and should pass once the bug is fixed should be added to prevent regress.