Skip to content

feat: add equals_with_field_id method for RowType (#327)#428

Open
niknegi wants to merge 1 commit intoapache:mainfrom
niknegi:issues/327
Open

feat: add equals_with_field_id method for RowType (#327)#428
niknegi wants to merge 1 commit intoapache:mainfrom
niknegi:issues/327

Conversation

@niknegi
Copy link
Contributor

@niknegi niknegi commented Mar 6, 2026

Implemented equals_with_field_id using the java client as reference

Linked issue:
#327

Copy link
Contributor

@fresh-borzoni fresh-borzoni left a comment

Choose a reason for hiding this comment

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

@niknegi Ty for the PR, left comments, PTAL

pub name: String,
pub data_type: DataType,
pub description: Option<String>,
pub field_id: i32,
Copy link
Contributor

Choose a reason for hiding this comment

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

Derived PartialEq/Hash now includes field_id, Java explicitly excludes it. This silently breaks equality

&self.data_type
}

pub fn field_id(&self) -> i32 {
Copy link
Contributor

Choose a reason for hiding this comment

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

this needs full wiring, JSON serde doesn't read/write field_id yet

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