-
Notifications
You must be signed in to change notification settings - Fork 11
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
Column name checks are too strict #39
Labels
Comments
aykut-bozkurt
added a commit
that referenced
this issue
Nov 26, 2024
We add an option for `COPY FROM` called `match_by_position` which matches Parquet file fields to PostgreSQL table columns `by their position` in the schema rather than `by their names`. By default, the option is `false`. The option is useful when field names differ between the Parquet file and the table, but their order aligns. Closes #39.
aykut-bozkurt
added a commit
that referenced
this issue
Nov 27, 2024
We add an option for `COPY FROM` called `match_by_position` which matches Parquet file fields to PostgreSQL table columns `by their position` in the schema rather than `by their names`. By default, the option is `false`. The option is useful when field names differ between the Parquet file and the table, but their order aligns. Closes #39.
aykut-bozkurt
added a commit
that referenced
this issue
Nov 27, 2024
We add an option for `COPY FROM` called `match_by_name` which matches Parquet file fields to PostgreSQL table columns `by their names` rather than `by their order` in the schema. By default, the option is `false`. The option is useful when field order differs between the Parquet file and the table, but their names match. **!!IMPORTANT!!**: This is a breaking change. Before the PR, we match always by name. This is a bit strict and not common way to match schemas. (e.g. COPY FROM csv at postgres or COPY FROM of duckdb match by field position by default) This is why we match by position by default and have a COPY FROM option `match_by_name` that can be set to true for the old behaviour. Closes #39.
aykut-bozkurt
added a commit
that referenced
this issue
Nov 27, 2024
We add an option for `COPY FROM` called `match_by_name` which matches Parquet file fields to PostgreSQL table columns `by their names` rather than `by their order` in the schema. By default, the option is `false`. The option is useful when field order differs between the Parquet file and the table, but their names match. **!!IMPORTANT!!**: This is a breaking change. Before the PR, we match always by name. This is a bit strict and not common way to match schemas. (e.g. COPY FROM csv at postgres or COPY FROM of duckdb match by field position by default) This is why we match by position by default and have a COPY FROM option `match_by_name` that can be set to true for the old behaviour. Closes #39.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think we should not care much about the column names, we already check the column types, which is fine.
The text was updated successfully, but these errors were encountered: