Skip to content

Return 0 instead of row count in Cassandra completed bytes#11644

Merged
ebyhr merged 1 commit intotrinodb:masterfrom
ebyhr:ebi/cassandra-completed-bytes
Mar 26, 2022
Merged

Return 0 instead of row count in Cassandra completed bytes#11644
ebyhr merged 1 commit intotrinodb:masterfrom
ebyhr:ebi/cassandra-completed-bytes

Conversation

@ebyhr
Copy link
Copy Markdown
Member

@ebyhr ebyhr commented Mar 23, 2022

Description

Return 0 instead of row count in Cassandra completed bytes. Cassandra Java driver doesn't expose the data size.

Documentation

(x) No documentation is needed.
( ) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.

Release notes

( ) No release notes entries required.
(x) Release notes entries required with the following suggested text:

# Cassandra
* Return `0` instead of row count in completed bytes. ({issue}`11644`)

Cassandra Java driver doesn't expose the data size.
@cla-bot cla-bot bot added the cla-signed label Mar 24, 2022
public long getCompletedBytes()
{
return count;
return 0;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The io.trino.spi.connector.RecordCursor#getCompletedBytes's javadoc doesn't mention 0 as the special value.
In fact, it doesn't exist.

But, JDBC connectors do return 0.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Let me send another PR for javadoc. Also, I will fix MongoDB connector too.

@ebyhr ebyhr merged commit 4c86d4f into trinodb:master Mar 26, 2022
@ebyhr ebyhr deleted the ebi/cassandra-completed-bytes branch March 26, 2022 01:39
@ebyhr ebyhr mentioned this pull request Mar 26, 2022
@github-actions github-actions bot added this to the 375 milestone Mar 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants