mongodb / mongo-jdbc-driver

JDBC Driver for MongoDB Atlas SQL interface
Apache License 2.0
36 stars 33 forks source link

SQL-645: refactor MongoResultSet to use BsonTypeInfo #121

Closed terakilobyte closed 1 year ago

terakilobyte commented 1 year ago

This refactors MongoResultSet to use BsonTypeInfo and significantly cleans up the switch statements.

I've also removed the "end_of_document" check from MongoResultSet as it wasn't used in any meaningful way other than it couldn't be converted in any of the switches. Since it was a BsonValue that is being passed into the various conversion methods, there's actually no way for it to be an "end_of_document" since it can't be created as a concrete type to derive a BsonType from (let alone a BsonTypeInfo).

This also updates the go version used in the build task, addressing SQL-1083.

terakilobyte commented 1 year ago

evergreen merge