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

Ensures that all table schemas are of StructType #415

Merged
merged 2 commits into from
Aug 31, 2021

Conversation

blogle
Copy link
Contributor

@blogle blogle commented Aug 24, 2021

Description

This change makes the table Schema type an alias to the SchemaTypeStruct thus ensuring that all tables are properly created with the correct schema type.

Related Issue(s)

closes #409

Documentation

The related issue #409 details this a bit more. But as required in other delta implementations - spark -
the create table must use a struct type as the schema definition.

https://jaceklaskowski.github.io/mastering-spark-sql-book/logical-operators/CreateTableStatement/?h=createtable
https://jaceklaskowski.github.io/mastering-spark-sql-book/types/StructType/

@fvaleye fvaleye added the binding/rust Issues for the Rust crate label Aug 26, 2021
Copy link
Member

@houqp houqp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@blogle looks like there is a minor linting error that needs to be fixed

@houqp houqp merged commit e77e044 into delta-io:main Aug 31, 2021
@houqp
Copy link
Member

houqp commented Aug 31, 2021

Thank you @blogle !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
binding/rust Issues for the Rust crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Schema type must be struct
3 participants