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

importccl: add IMPORT INTO UDT support for default+computed columns #69779

Merged
merged 1 commit into from
Sep 10, 2021

Conversation

adityamaru
Copy link
Contributor

This change builds on the work in #69674 and uses the type
descriptors stored on the import job during planning to construct
a custom type resolver. This resolver is used when hydrating the
types used by the table being imported into, and when processing
default + computed columns.

Informs: #61133

Release note (sql change): IMPORT INTO now supports UDT for default
and computed columns.

Release justification: fixes for high-priority or high-severity bugs in existing functionality

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@adityamaru adityamaru force-pushed the import-default-udt branch 3 times, most recently from ace86cb to 9880bd8 Compare September 2, 2021 22:37
@adityamaru adityamaru requested review from dt and arulajmani September 2, 2021 22:41
@adityamaru adityamaru marked this pull request as ready for review September 2, 2021 22:41
@adityamaru adityamaru requested review from a team September 2, 2021 22:41
@adityamaru
Copy link
Contributor Author

The last commit is the one to be reviewed. I'm still figuring out how avro works with default columns, but apart from that test this should be ready for a review.

@adityamaru adityamaru removed the request for review from a team September 2, 2021 22:42
pkg/sql/execinfrapb/processors_bulk_io.proto Outdated Show resolved Hide resolved
pkg/ccl/importccl/import_stmt.go Outdated Show resolved Hide resolved
pkg/ccl/importccl/import_stmt.go Outdated Show resolved Hide resolved
pkg/sql/row/row_converter.go Outdated Show resolved Hide resolved
pkg/sql/row/row_converter.go Outdated Show resolved Hide resolved
@adityamaru adityamaru force-pushed the import-default-udt branch 3 times, most recently from f821ea0 to 05ff860 Compare September 9, 2021 14:46
This change builds on the work in cockroachdb#69674 and uses the type
descriptors stored on the import job during planning to construct
a custom type resolver. This resolver is used when hydrating the
types used by the table being imported into, and when processing
default + computed columns.

Informs: cockroachdb#61133

Release note (sql change): IMPORT INTO now supports UDT for default
and computed columns.

Release justification: fixes for high-priority or high-severity bugs in existing functionality

Co-authored-by: Anne Zhu <[email protected]>
@adityamaru
Copy link
Contributor Author

Bazel failure is the same race timeout in TestImportWorkerFailure that I saw in #69674. I've filed #69995 to investigate.

bors r=dt

@craig
Copy link
Contributor

craig bot commented Sep 10, 2021

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Sep 10, 2021

Build succeeded:

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.

3 participants