baztian / jaydebeapi

JayDeBeApi module allows you to connect from Python code to databases using Java JDBC. It provides a Python DB-API v2.0 to that database.
GNU Lesser General Public License v3.0
365 stars 148 forks source link

java.lang.Double not automatically converted #243

Open phwhite-coh opened 7 months ago

phwhite-coh commented 7 months ago

Running 1.2.3 I'm selecting from a Spark table with a column of type double. When I check the 'description' property of the cursor, I see this type for the column: DBAPITypeObject('FLOAT', 'REAL', 'DOUBLE')

When I get the data from the cursor the class is "java.lang.Double".

Shouldn't this automatically convert to a Python float? String types are converting automatically.