Skip to content
Open
Show file tree
Hide file tree
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 @@ -304,7 +304,7 @@ object DeltaSharingUtils extends Logging {
localDeltaLog,
new SnapshotDescriptor {
val deltaLog: DeltaLog = localDeltaLog
val dataPath: Path = localDeltaLog.dataPath
override val dataPath: Path = localDeltaLog.dataPath
val logPath: Path = localDeltaLog.logPath
val metadata: Metadata = deltaSharingTableMetadata.metadata.deltaMetadata
val protocol: Protocol = deltaSharingTableMetadata.protocol.deltaProtocol
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,14 @@ trait SnapshotDescriptor extends DeltaLoggingProvider {

def schema: StructType = metadata.schema

def dataPath: Path
def dataPath: Path =
throw new UnsupportedOperationException("dataPath is not implemented for this descriptor")
def logPath: Path
def numDeltaFiles: Long =
throw new UnsupportedOperationException("numDeltaFiles is not implemented for this descriptor")
def totalDeltaFilesByteSize: Long =
throw new UnsupportedOperationException(
"totalDeltaFilesByteSize is not implemented for this descriptor")

protected[delta] def numOfFilesIfKnown: Option[Long]
protected[delta] def sizeInBytesIfKnown: Option[Long]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ trait DeltaSourceBase extends Source
// Construct a snapshot descriptor with custom schema inline
new SnapshotDescriptor {
val deltaLog: DeltaLog = snapshotAtSourceInit.deltaLog
val dataPath: Path = snapshotAtSourceInit.dataPath
override val dataPath: Path = snapshotAtSourceInit.dataPath
val logPath: Path = snapshotAtSourceInit.logPath
val metadata: Metadata =
snapshotAtSourceInit.metadata.copy(
Expand Down
Loading