Skip to content

Conversation

rwblair
Copy link
Member

@rwblair rwblair commented Apr 14, 2025

Use hyparquet library to read read parquet files.Transforms them into a columns map, which may not be desirable. Parquet files have good typing metadata that is thrown away and this implementation, with everything becoming a string like when we read in TSV files. Type checking is then done via regex as per schema.objects.columns/schema.objects.formats entries.

Still need to implement maxRows.

@rwblair
Copy link
Member Author

rwblair commented Apr 14, 2025

After chat with @effigies, context.columns could become a union type with TSVs still using the old ColumnMap type, and parquets using whatever representation we choose for them. In applyRules validation we can rely on context extension to decide how to validate columns field. Parquet validation could then convert its known built in types to schema types to check against the schema.objects.columns types. This would get around type checking every value in a given column like we do for TSVs (and using regexes to do that type checking).

@effigies effigies changed the base branch from main to dev September 3, 2025 18:50
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

Successfully merging this pull request may close these issues.

1 participant