Comments (4)
Hi. Your best bet is to use the low level API as you can build schema and data in runtime. The issue with System.Data
is that it doesn't support complex types so there is no way to serialise even something simple like structs.
from parquet-dotnet.
Thanks, I realize that Parquet has an absurd amount of different ways to store data but from my experience, well so far on about 200 systems not one of those has ever been used. With the popularity of Snowflake, Databricks, Fabric a popular real world usage today is much more traditional types you might use than structures, embedded arrays etc.
It's just like SQL Server yeah you can create custom types, CLR types etc. but they tend to perform poorly and cause issues somewhere through some tool. I'm not saying drop that kind of support by any means but not supporting many mainstream usages because it doesn't work with one feature just means a lot of people writing the same broiler plate code.
Love the product and I have already built my version of the above code since yesterday as I assumed this would be your answer, I may even implement an IDataReader interface for the parquet reader today. The advantage of this library is .NET over java but it's not embracing the data aspect of working in .NET to implement normal programming paradigms.
I am totally fine with the serialize over data table, data reader for writing throwing an exception saying datatype not supported when it comes to those extra features as I know I won't see them in my workloads.
Thanks again for a great product, just my 2c which doesn't count as much :)
from parquet-dotnet.
@jtgooding42 totally agree here, my use cases are also most of the times consist of flat data only. I have followed the similar approach when implementing DataFrame integration - just using primitive types. Would really appreciate you adding System.Data integration and happy to merge it into master here!
from parquet-dotnet.
I have some sample boiler plate code for datareader to parquet. I tested the table/row api, the new dictionary (untyped) and a home grown low level api, and the row api and the low level produce nearly same timings with low level a bit faster, the untyped was almost twice as long, I would love for ya to take a look and see if I did anything obviously wrong in each of the 3, or recommend perf improvements, I'm fine with the code being incorporated but would guess that it would require a fair bit of rework to be api friendly.
Lastly the new untyped api takes a dictionary<string, object>, not sure how to pass nulls in on that shouldn't it be dictionary<string, object?>.
from parquet-dotnet.
Related Issues (20)
- Issues converting to CSV HOT 5
- Issue reading parquet from a stream HOT 3
- Issue with certain stream sources
- Deserialise new timestamp parquet format with low-level api HOT 1
- [BUG]: Risk for deadlock when ParquetWriter is disposed? HOT 3
- [BUG]: empty string array incorrect serialization
- [BUG]: Reading decimal fields ignores precision and scale
- Feature request: add API for 2 step group writting
- [BUG]: Deserialising delta binary packed encoded data produces incorrect results
- [BUG]: Enum Serialization/Deserialization update
- [BUG]: Getting different length for keyColumn and valueColumn of a partition column HOT 1
- Unable to write Timestamp Logical Type HOT 1
- [BUG]: If the data transferred to WriteColumnAsync is too large, an error occurs
- [BUG]: Serialisation error for class with nullable struct with child property
- [BUG]: Big Endian Guid problem HOT 13
- Parquet file directly in binary HOT 3
- Working with null values when reading a Parquet file in FSharp HOT 2
- [BUG]: Deserialize, ArgumentOutOfRange exception
- [BUG]: Exception: scale must be less than the precision
- Feature requst: extend DataColumn API to read column values directly into provided Span/Memory/Array
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-dotnet.