Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public class CassandraRecordCursor
private final List<CassandraType> cassandraTypes;
private final ResultSet rs;
private Row currentRow;
private long count;

public CassandraRecordCursor(CassandraSession cassandraSession, List<CassandraType> cassandraTypes, String cql)
{
Expand All @@ -48,7 +47,6 @@ public boolean advanceNextPosition()
{
if (!rs.isExhausted()) {
currentRow = rs.one();
count++;
return true;
}
return false;
Expand All @@ -68,7 +66,7 @@ public boolean getBoolean(int i)
@Override
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.

}

@Override
Expand Down