Skip to content
Closed
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 @@ -84,14 +84,11 @@ class FileStreamSinkLog(

private implicit val formats = Serialization.formats(NoTypeHints)

protected override val fileCleanupDelayMs =
sparkSession.conf.get(SQLConf.FILE_SINK_LOG_CLEANUP_DELAY)
protected override val fileCleanupDelayMs = sparkSession.sessionState.conf.fileSinkLogCleanupDelay

protected override val isDeletingExpiredLog =
sparkSession.conf.get(SQLConf.FILE_SINK_LOG_DELETION)
protected override val isDeletingExpiredLog = sparkSession.sessionState.conf.fileSinkLogDeletion

protected override val compactInterval =
sparkSession.conf.get(SQLConf.FILE_SINK_LOG_COMPACT_INTERVAL)
protected override val compactInterval = sparkSession.sessionState.conf.fileSinkLogCompactInterval
require(compactInterval > 0,
s"Please set ${SQLConf.FILE_SINK_LOG_COMPACT_INTERVAL.key} (was $compactInterval) " +
"to a positive value.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,15 @@ class FileStreamSourceLog(

// Configurations about metadata compaction
protected override val compactInterval =
sparkSession.conf.get(SQLConf.FILE_SOURCE_LOG_COMPACT_INTERVAL)
sparkSession.sessionState.conf.fileSourceLogCompactInterval
require(compactInterval > 0,
s"Please set ${SQLConf.FILE_SOURCE_LOG_COMPACT_INTERVAL.key} (was $compactInterval) to a " +
s"positive value.")

protected override val fileCleanupDelayMs =
sparkSession.conf.get(SQLConf.FILE_SOURCE_LOG_CLEANUP_DELAY)
sparkSession.sessionState.conf.fileSourceLogCleanupDelay

protected override val isDeletingExpiredLog =
sparkSession.conf.get(SQLConf.FILE_SOURCE_LOG_DELETION)
protected override val isDeletingExpiredLog = sparkSession.sessionState.conf.fileSourceLogDeletion

private implicit val formats = Serialization.formats(NoTypeHints)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -620,10 +620,16 @@ private[sql] class SQLConf extends Serializable with CatalystConf with Logging {

def fileSinkLogDeletion: Boolean = getConf(FILE_SINK_LOG_DELETION)

def fileSinkLogCompatInterval: Int = getConf(FILE_SINK_LOG_COMPACT_INTERVAL)
def fileSinkLogCompactInterval: Int = getConf(FILE_SINK_LOG_COMPACT_INTERVAL)

def fileSinkLogCleanupDelay: Long = getConf(FILE_SINK_LOG_CLEANUP_DELAY)

def fileSourceLogDeletion: Boolean = getConf(FILE_SOURCE_LOG_DELETION)

def fileSourceLogCompactInterval: Int = getConf(FILE_SOURCE_LOG_COMPACT_INTERVAL)

def fileSourceLogCleanupDelay: Long = getConf(FILE_SOURCE_LOG_CLEANUP_DELAY)

def streamingSchemaInference: Boolean = getConf(STREAMING_SCHEMA_INFERENCE)

def streamingPollingDelay: Long = getConf(STREAMING_POLLING_DELAY)
Expand Down