Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Json field is causing System.InvalidCastException when converting json to parquet #257

Open
AHirbawi opened this issue Dec 2, 2022 · 1 comment

Comments

@AHirbawi
Copy link

AHirbawi commented Dec 2, 2022

ChoETL.JSON, Version="1.2.1.50"
ChoETL.Parquet, Version="1.0.1.24
Having this field "ContainsComments": 0 in the json file is causing the following exception when trying to convert json to parquet
System.InvalidCastException: At least one element in the source array could not be cast down to the destination array type.

im using this code to create the parquet file

using var reader = ChoJSONReader.LoadText(testFileContent);
using var writer = new ChoParquetWriter(parquetFilePath).ErrorMode(ChoErrorMode.IgnoreAndContinue);
writer.Write(reader);
writer.Close();
@Cinchoo
Copy link
Owner

Cinchoo commented Dec 18, 2022

pls take https://www.nuget.org/packages/ChoETL.Parquet/1.0.1.25-beta1 and give it try.
Let me know.

If you run into issue, pls share more details with sample json. Thanksl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants