Comments (1)
This is actually an upstream arrow JS bug. Here's a repro case independent of parquet:
const arrow = require('apache-arrow');
const {writeFileSync} = require('fs');
const table = arrow.tableFromArrays({
test: [new Date("2012-01-01T12:34:56.789Z")],
});
const buffer = arrow.tableToIPC(table, 'file')
writeFileSync('table.arrow', buffer)
and then in Python:
import pyarrow.feather as feather
table = feather.read_table('table.arrow')
table.schema
# test: date64[ms] not null
table.to_pandas()
# test
# 0 2012-01-01
Also, if you look at the field info in JS before exporting to Python, you'll also see it's defined as a DateMillisecond
type, which doesn't store any time information.
> table.schema.fields[0]
Field {
name: 'test',
type: DateMillisecond [Date] { unit: 1 },
nullable: false,
metadata: Map(0) {}
}
Closing as I don't think this is related to parquet-wasm, but happy to discuss further
from parquet-wasm.
Related Issues (20)
- No functioning example HOT 11
- Write a valid geoparquet? HOT 6
- 0.6 roadmap
- Support read options HOT 1
- Fully empty file does not load HOT 5
- Remove www/ directory HOT 1
- Add wasm to package.json exports
- Use `import.meta.resolve` instead of `import.meta.url`
- Improve documentation around calling `.free` HOT 4
- get wrong result when use `columns` in option HOT 7
- `free()` not work for `ParquetFile` and so on HOT 1
- Cannot import parquet-wasm/bundler HOT 3
- Write data streaming to a parquet file HOT 3
- How to use with vite? HOT 4
- initialization of GeoArrowPolygonLayer({id: 'geoarrow-polygons'}): geometryColumn not Polygon or MultiPolygon HOT 3
- Buffers are intermittently converted into BigInt data, rather than strings HOT 9
- Large reads consistently fail with: "RuntimeError: unreachable" HOT 4
- Publish 0.7.0 HOT 1
- Having problem running on AWS Lambda . HOT 4
- Struggling to merge two parquet files HOT 19
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 parquet-wasm.