Comments (6)
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.
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.
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.
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.
No idea, sorry.
from rsqlite.
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)
- Calling internal SQLite functions to check transaction state HOT 7
- Error compiling DbConnection.cpp when installing from source HOT 4
- dbWriteTable Inconsistently accepts DBI:ID HOT 1
- dbAppendTable() with SnowFlake doesn't respect DB or Schema constraints. HOT 1
- dbAppendTable takes ~ 30 seconds in Snowflake HOT 1
- slice_sample() does not interact correctly with set.seed() when working with an SQLite database HOT 1
- Unable to install from source with Mac OS 13.4.1 (clang-1403.0.22.14.1) HOT 15
- Installation of RSQLite failed with cpp11-ver0.4.6 in Ubuntu 22.04 HOT 2
- FR : bindings to sqlite3_clear_bindings HOT 3
- dbHasCompleted() yields an Error: Invalid result set. HOT 3
- Support multiple queries
- Support encrypted databases HOT 12
- dbExistsTable(conn, Id(schema = "INFORMATION_SCHEMA", table = "TABLES")) throws error (should return FALSE?) HOT 2
- unittest fails HOT 20
- Connect to remote sqlite database HOT 2
- RSQLite keeps numeric of epoch day as date in SQLite database whereas SQLite regards numeric as Julian day (REAL) or epoch second (INTEGER) HOT 1
- System-wide sqlite 3.36 breaks installation of R package (which comes with sqlite 3.46) HOT 12
- RSQLite compile error on Windows using GitHub Actions HOT 7
- Description Definition HOT 1
- Unexpected message and test skipping when using `extended_types = TRUE` HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rsqlite.