Code Monkey home page Code Monkey logo

Comments (6)

pudo avatar pudo commented on July 22, 2024

Hm, thats an interesting error. Is the relevant database something that you could share to help me reproduce it?

from dataset.

davidthewatson avatar davidthewatson commented on July 22, 2024

https://www.dropbox.com/s/bdlcbs726vor6qg/ghost.db

from dataset.

3onyc avatar 3onyc commented on July 22, 2024

I've done some analysis on the issue, what happens (From what I can tell) is that because the column is a DATETIME column SQLAlchemy treats it like one (And try to parse it as a regular date/time). However as can be seen in section 2.2 here DATETIME is actually a numeric in SQLite.

SQLAlchemy also has a section about date/time related types in SQLite here

from dataset.

3onyc avatar 3onyc commented on July 22, 2024

Here's a gist containing minimal code to reproduce the issue, without even involving dataset

https://gist.github.com/3onyc/7469546

from dataset.

3onyc avatar 3onyc commented on July 22, 2024

zzzeek suggested using a custom handler for datetime types, sounds like we'd need a special handler for an SQLite DB with datetime fields.

Example: https://gist.github.com/zzzeek/7470863
Thread: https://twitter.com/zzzeek/status/401039797097353216

from dataset.

3onyc avatar 3onyc commented on July 22, 2024

Is this something we want to fix in dataset, or something people should implement a fix for themselves?

This considering that SQLite technically doesn't have a datetime type.

from dataset.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.