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

Datetime field error while querying mssql db #320

Closed
rajat091 opened this issue Apr 11, 2016 · 1 comment
Closed

Datetime field error while querying mssql db #320

rajat091 opened this issue Apr 11, 2016 · 1 comment

Comments

@rajat091
Copy link

After managing to install and run caravel on windows (which required lots of debugging), I am facing one hurdle that I am not able to cross.

I would define myself as more of a business user and less technically nuanced. So I am not sure if this issue has a trivial solution.

When querying my mssql db, I am getting the following error:-
Conversion failed when converting date and/or time from character string

I know this can be resolved if I dont add (or add fewer) decimal places to my datetime field in the where clause of the query.

I just dont know how to ask caravel to do that. It is just plain weird that when sql server supports only 3 decimal places to the seconds field, why is this app adding more than that.

I have tried to read the sqlalchemy doc but to no avail. Being somewhat technically handicapped, it has taken tremendous effort to get this running on windows and it sucks to be stuck now!

@rajat091
Copy link
Author

Removed decimal in tf in models.py. that solved it for me now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant