Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
linzhou-db committed Oct 5, 2024
1 parent af870a6 commit 24bf330
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ class DeltaSharingService(serverConfig: ServerConfig) {
}

val responseFormatSet = getResponseFormatSet(capabilitiesMap)
val includeEndStreamAction = getEndStreamActionInHeader(capabilitiesMap)
val includeEndStreamAction = getRequestEndStreamAction(capabilitiesMap)
val queryResult = deltaSharedTableLoader.loadTable(tableConfig).queryCDF(
getCdfOptionsMap(
Option(startingVersion),
Expand Down Expand Up @@ -776,10 +776,6 @@ object DeltaSharingService {
endingTimestamp.map(DeltaDataSource.CDF_END_TIMESTAMP_KEY -> _)).toMap
}

private def getEndStreamActionInHeader(headerCapabilities: Map[String, String]): Boolean = {
headerCapabilities.get(DELTA_SHARING_END_STREAM_ACTION).map(_.toBoolean).getOrElse(false)
}

private[server] def getResponseFormatSet(headerCapabilities: Map[String, String]): Set[String] = {
headerCapabilities.get(DELTA_SHARING_RESPONSE_FORMAT).getOrElse(
DeltaSharedTable.RESPONSE_FORMAT_PARQUET
Expand Down

0 comments on commit 24bf330

Please sign in to comment.