Skip to content

Conversation

@CTTY
Copy link
Collaborator

@CTTY CTTY commented Dec 10, 2025

Which issue does this PR close?

What changes are included in this PR?

  • Support CREATE TABLE by implementing IcebergSchemaProvider::register_table()
  • Support DROP TABLE by implementing IcebergSchemaProvider::deregister_table()

Are these changes tested?

Added slt


# Insert data to verify table works
query I
INSERT INTO default.default.test_create_simple VALUES (1, 'test')
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think we don't need to insert here. Right now these slts are bits of everything mixed up. Need to come up with a way to clearly separate them

/// This struct implements BFS traversal to assign field IDs level-by-level,
/// similar to how `ReassignFieldIds` works in the spec module. All fields at
/// one level are assigned IDs before descending to nested fields.
pub(super) struct ArrowSchemaIdAssigner {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Maybe we should just move this to schema.rs? Also I'm planning to revisit this class

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.

Support CREATE TABLE for DataFusion

1 participant