Comments (9)
Can you please provide a reproducible example, preferably without any data.table? (to ensure that isn't the root cause)
from feather.
I'll see what I can do, there are a lot of random characters in this df, (and for proprietary reasons, I unfortunately can't include it, I'll see if I can find a subset where it's the case), maybe I can randomly sample the characters in my fields...
from feather.
Reproduced it, it's coming from fread, read.csv does not trigger it, but I can't seem to generate it with random data. Trying to figure out which one it is
from feather.
Try narrowing down to a specific column - the most likely culprit is likely to be a character column, given that read.csv()
doesn't illustrate the problem.
from feather.
Sorry for the delay: Got it, seems to have to do with empty characters.
here we go:
library(data.table)
library(feather)
write.csv(data.table(x = rep('',5)),'test.csv')
z <- fread('test.csv', data.table = FALSE)
write_feather(z, 'testfeath')
from feather.
Doesn't seem to be anything to do with data.table:
write_feather(data.frame(x = rep('',5)), "test.feather")
@wesm Am I doing something wrong here? Here's the backtrace:
* thread #1: tid = 0x177ea17, 0x000000010a8f9e07 feather.so`chrToPrimitiveArray(SEXPREC*) [inlined] feather::Buffer::data(this=<unavailable>) const + 7 at buffer.h:51, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x10)
* frame #0: 0x000000010a8f9e07 feather.so`chrToPrimitiveArray(SEXPREC*) [inlined] feather::Buffer::data(this=<unavailable>) const + 7 at buffer.h:51
frame #1: 0x000000010a8f9e00 feather.so`chrToPrimitiveArray(x=0x00007fff5fbfcdc0) + 704 at feather-write.cpp:221
frame #2: 0x000000010a8fa5b7 feather.so`addCategoryColumn(table=0x00007fff5fbfcef8, name="x", x=0x000000010588dd28) + 119 at feather-write.cpp:265
frame #3: 0x000000010a8fabfb feather.so`addColumn(table=0x00007fff5fbfcef8, name="x", x=0x000000010588dd28) + 59 at feather-write.cpp:314
frame #4: 0x000000010a8faeda feather.so`writeFeather(df=Rcpp::DataFrame @ 0x00007fff5fbfcfa0, path=<unavailable>) + 538 at feather-write.cpp:340
I think the problem is that because there are only empty strings, the size_
of the BufferBuilder
is 0 and data_
is a nullptr
.
from feather.
I'm able to get a core dump in Python, too. Patch incoming
from feather.
Can you confirm #86 fixes the bug in R, too?
from feather.
Works for me! Thank you!
from feather.
Related Issues (20)
- Incompatibility with tibble>=2.0.0 HOT 4
- Read file in "feather" format by command "View" HOT 2
- Disable test for UTF-8 filenames on windows
- Reading/writing fails for large data.frames HOT 5
- Support for set/list columns in python HOT 2
- "cannot serialize duplicate column names" HOT 2
- Is it possible to save feather file in compressed zip format? HOT 6
- Should feather::read_feather respect options(stringsAsFactors = FALSE)? HOT 3
- In R, Feather cannot read dataframe back if missing or having empty column header HOT 2
- [Feature request] allow datetime index HOT 3
- python feather-format 0.4.0 is incompatible with pyarrow 0.17.0: ImportError FeatherError FeatherReader FeatherWriter HOT 3
- feather installation failed with "big endian" issue HOT 3
- Reading feather HOT 1
- Another CRAN release needed: not compatible with arrow HOT 2
- where are the docs? HOT 1
- Strange error HOT 1
- how to inspect metadata?
- pyarrow.lib.ArrowTypeError: Expected bytes, got a 'dict' object
- Support for Big-endian?
- how can I write file as a+ mode?
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 feather.