Skip to content

FetchOrientation.FETCH_FIRST is not handled properly #360

@pan3793

Description

@pan3793

Describe the bug

In SparkOperation, all order actually are treat as FETCH_NEXT

  override def getNextRowSet(order: FetchOrientation, rowSetSize: Int): TRowSet = {
    validateDefaultFetchOrientation(order)
    assertState(OperationState.FINISHED)
    setHasResultSet(true)
    val taken = iter.take(rowSetSize)
    RowSet.toTRowSet(taken.toList, resultSchema, getProtocolVersion)
  }

To Reproduce
Use HUE to connect Kyuubi server and run a query, then export the result to csv, we found the records showed in web page is lost in exported data.

Expected behavior
Hue can export all records of query result.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions