-
Environment
-
Dremio version: dremio-community-26.0.0
-
Python: Python 3.10.12
-
pyodbc: latest
-
pandas: 2.x
-
-
What I’m doing
python
conn = pyodbc.connect("DSN=Dremio;UID=demo_user;PWD=demo_pass;AuthenticationType=Plain")
df = pd.read_sql("SELECT * FROM my_table", conn)
print(df.dtypes)
-
What I expect
Pandas should infer correct numeric, date, and boolean types from Dremio. -
What actually happens
All columns come back asobject
type. -
What I’ve tried
-
Casting manually with
.astype()
-
Checking column types in Dremio UI (
INTEGER
,FLOAT
,DATE
)
-
-
Question
Is there a way for Dremio ODBC to send proper types to pandas via pyodbc, or is manual casting always needed?