Giter Club home page Giter Club logo

Comments (6)

thomasp85 avatar thomasp85 commented on September 2, 2024

It has been confirmed that the bug does not appear in the most recent version of SQLite (3.8.7.1), but this is outside the RSQLite framework, so it is still open whether it is a bug in the RSQLite framework or in SQLite 3.8.6 (the release history does not mention a bug fix that appears as this one)

from rsqlite.

thomasp85 avatar thomasp85 commented on September 2, 2024

The bug is specific to RSQLite on mac (both mavericks and snow leopard build). It cannot be replicated in other SQLite clients on Mac so it seems to be specific to the RSQLite client

from rsqlite.

hadley avatar hadley commented on September 2, 2024

Moving in your reproducible example from SO and simplifying it a bit:

library(RSQLite)
con <- dbConnect(RSQLite::SQLite(), ':memory:')
dbGetQuery(con, 'CREATE VIRTUAL TABLE test USING rtree(id, xmin, xmax, ymin, ymax)')
set.seed(1)
x <- abs(rnorm(100))
y <- abs(rnorm(100))
data <- data.frame(id=1:100, xmin=x, xmax=x+2, ymin=y, ymax=y+3)
dbWriteTable(con, "test", data, append = TRUE)

dbGetQuery(con, 'SELECT max(xmax) FROM test')
dbGetQuery(con, 'SELECT * FROM test WHERE xmax > 4')
subset(data, xmax > 4)

The query and the R command return the same results for me.

from rsqlite.

thomasp85 avatar thomasp85 commented on September 2, 2024

Ok so this is strange. Even though the bug was reproducible across several days on several R sessions it has suddenly vanished - both on the original and your modified example. I cannot give any explanation for this as there has been no changes to my system... I still have a database file with the example results from back when the bug existed - don't know whether that can shed any light on what might have happened?

from rsqlite.

hadley avatar hadley commented on September 2, 2024

No idea, sorry.

from rsqlite.

github-actions avatar github-actions commented on September 2, 2024

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.

from rsqlite.

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.