Comments (8)
@mukunku
I could reproduce the error. It happens when every array of the column is empty.
I created an example file (same columns as the previous one but this one has empty arrays):
from parquetviewer.
Thanks. I will take a look 👍🏼
from parquetviewer.
Looks good! File is loading and showing the data correctly.
Thanks for the fast fix.
from parquetviewer.
Implemented and fixed. Thx
from parquetviewer.
Hey @ChristianDu, as you saw I've added support for struct arrays in v3.0.0 . Thanks for opening the issue and sharing a sample file.
Going to close out this issue but feel free to re-open if the issue persists.
from parquetviewer.
Hi @mukunku ,
thank you very much for implementing the feature that fast.
It works with a few files but i get an error for one column.
createStructField(COLUMN_NAME, createArrayType(createStructType(Arrays.asList(
createStructField(SUB_COL_1, TimestampType, true),
createStructField(SUB_COL_2, DoubleType, true),
createStructField(SUB_COL_3, DoubleType, true) )), false), true);
I will try to provide you with an example file because i can't upload the exact file.
Error:
Specified cast is not valid.
Something went wrong (CTRL+C to copy):
System.InvalidCastException: Specified cast is not valid.
at ParquetViewer.Engine.ParquetEngine.ReadListField(DataTableLite dataTable, ParquetRowGroupReader groupReader, Int32 rowBeginIndex, ParquetSchemaElement itemField, Int32 fieldIndex, Int64 skipRecords, Int64 readRecords, Boolean isFirstColumn, CancellationToken cancellationToken, IProgress`1 progress)
at ParquetViewer.Engine.ParquetEngine.ProcessRowGroup(DataTableLite dataTable, ParquetRowGroupReader groupReader, Int64 skipRecords, Int64 readRecords, CancellationToken cancellationToken, IProgress`1 progress)
at ParquetViewer.Engine.ParquetEngine.PopulateDataTable(DataTableLite dataTable, ParquetReader parquetReader, Int64 offset, Int64 recordCount, CancellationToken cancellationToken, IProgress`1 progress)
at ParquetViewer.Engine.ParquetEngine.ReadRowsAsync(List1 selectedFields, Int32 offset, Int32 recordCount, CancellationToken cancellationToken, IProgress
1 progress)
at ParquetViewer.MainForm.<>c__DisplayClass33_0.<b__1>d.MoveNext()
--- End of stack trace from previous location ---
at ParquetViewer.MainForm.LoadFileToGridview()
at System.Threading.Tasks.Task.<>c.b__128_0(Object state)
at InvokeStub_SendOrPostCallback.Invoke(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
OK
from parquetviewer.
@ChristianDu Can you try this alpha version with your file?
Not sure if you use regular exe or self-contained but I can't upload self-contained in a comment so I shared the regular one.
If you're not comfortable testing the exe that's okay too! I can add it to the release as usual.
from parquetviewer.
Thanks for confirming! https://github.com/mukunku/ParquetViewer/releases/tag/v3.0.0.1 has the fix now 💪🏼
from parquetviewer.
Related Issues (20)
- Unsupported Nested Structs HOT 7
- [FEAT] IO Unblock? HOT 1
- The query doesn't not seem to be valid. Please try again cannot find column 'user_name' HOT 4
- [BUG] Opening folder with `_SUCCESS` files causes exception HOT 3
- [QUESTION] Query formatting HOT 4
- [BUG] Error viewing metadata HOT 5
- [FEAT] Search text in multiple Parquet files in one folder HOT 6
- [BUG] Error when opening file containing columns of LIST type HOT 3
- [BUG] sbyte and byte types swapped HOT 1
- [BUG] Unable to open the file which contains a nullable guid column HOT 2
- [BUG] Exception repeatedly thrown when widening window to include a column containing arrays of bytes HOT 5
- [BUG] Unable to display data exported from Oracle database HOT 5
- Application Error when trying to open parquet file HOT 2
- [FEAT] View per-column metadata HOT 3
- [BUG] audio unsupported!!!! HOT 1
- [BUG] Timestamp display arrow 13.0 HOT 3
- [BUG] Cannot open parquet file when column name includes "/" HOT 1
- [BUG] Cannot open Delta Lake checkpoint parquet file HOT 4
- [BUG] Cannot Open Parquet HOT 8
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 parquetviewer.