Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSSQL trusted connection on Linux Time out #685

Open
athensofamerica opened this issue Sep 11, 2024 · 0 comments
Open

MSSQL trusted connection on Linux Time out #685

athensofamerica opened this issue Sep 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@athensofamerica
Copy link

What language are you using?

Python.

What version are you using?

0.3.3

What database are you using?

MS SQL Server

What dataframe are you using?

Daft

Can you describe your bug?

I tried using a trusted connection to query database on Linux using daft.read_sql. It only works when I use SQLAlchemy and it times out for ConnectorX. On Windows both are working fine.

The connection string that I used is:
mssql://server/database?trusted_connection=true

What are the steps to reproduce the behavior?

If possible, please include a minimal simple example including:

Database setup if the error only happens on specific data or data type

Table schema and example data

Example query / code
import daft

server = 'mysqlserverhost'
database = 'mydb'
schema = 'myschema'
table = 'mytable'

conn = f'mssql://{server}/{database}?trusted_connection=true'

query = f'SELECT * FROM {database}.{schema}.{table}'

daft.read_sql(sql=query, conn)

What is the error?

Time out: bb8
See discussion here for more details:
#684

@athensofamerica athensofamerica added the bug Something isn't working label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant