Skip to content

Conversation

@ggershinsky
Copy link
Contributor

No description provided.

@github-actions github-actions bot added the core label Jan 10, 2024

if (available() <= 0 && len > 0) {
throw new EOFException();
return -1;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

}

@Override
public long getPos() throws IOException {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Iceberg manifest writer calls getPos after closing the avro stream. Wrong value was returned.

this.currentBlockIndex = 0;
this.isHeaderWritten = false;
this.lastBlockWritten = false;
this.isClosed = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: initialize finalPosition as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@rdblue rdblue merged commit e76988b into apache:main Jan 14, 2024
@rdblue rdblue mentioned this pull request Jan 14, 2024
geruh pushed a commit to geruh/iceberg that referenced this pull request Jan 26, 2024
adnanhemani pushed a commit to adnanhemani/iceberg that referenced this pull request Jan 30, 2024
devangjhabakh pushed a commit to cdouglas/iceberg that referenced this pull request Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants