Skip to content

Support partition definitions#682

Open
Tmonster wants to merge 29 commits intoduckdb:mainfrom
Tmonster:schema_change_support_iceberg_tables
Open

Support partition definitions#682
Tmonster wants to merge 29 commits intoduckdb:mainfrom
Tmonster:schema_change_support_iceberg_tables

Conversation

@Tmonster
Copy link
Collaborator

@Tmonster Tmonster commented Feb 3, 2026

Supports partition defintions (not inserts)

You can define a partition definition in either the CREATE TABLE statement, or in the ALTER TABLE statement.

Tmonster and others added 29 commits January 6, 2026 17:29
…nster/duckdb-iceberg into schema_change_support_iceberg_tables

void IcebergPartitionSpec::FieldsToJson(yyjson_mut_doc *doc, yyjson_mut_val *root_object,
const vector<rest_api_objects::PartitionField> &fields) {
yyjson_mut_obj_add_strcpy(doc, root_object, "type", "struct");
Copy link
Collaborator

@Tishj Tishj Feb 8, 2026

Choose a reason for hiding this comment

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

I don't know where this is in the spec
I feel like we're building this object, no?

    PartitionSpec:
      type: object
      required:
        - fields
      properties:
        spec-id:
          type: integer
          readOnly: true
        fields:
          type: array
          items:
            $ref: '#/components/schemas/PartitionField'

This should only have spec-id and fields if that's the case?

We already added spec-id earlier:

yyjson_mut_obj_add_int(doc, spec_json, "spec-id", ref_update.spec.spec_id);

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.

2 participants