Skip to content

Commit

Permalink
one more test
Browse files Browse the repository at this point in the history
  • Loading branch information
vkorukanti committed Jan 30, 2025
1 parent d180222 commit 950af4e
Showing 1 changed file with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import scala.collection.immutable.Seq
* Suite to set or get table properties.
* TODO: for now we just have the support for `set`. API `get` will be added in the next PRs.
*/
class TablePropertiesSutie extends DeltaTableWriteSuiteBase {
class TablePropertiesSuite extends DeltaTableWriteSuiteBase {
test("create/update table - allow arbitrary properties") {
withTempDir { tempFile =>
val tablePath = tempFile.getAbsolutePath
Expand Down Expand Up @@ -72,6 +72,22 @@ class TablePropertiesSutie extends DeltaTableWriteSuiteBase {
}
}

test("create/update table - delta configs are stored with same case as defined in TableConfig") {
withTempDir { tempFile =>
val tablePath = tempFile.getAbsolutePath
createUpdateTableWithProps(tablePath,
createTable = true,
Map("delta.CHECKPOINTINTERVAL" -> "20"))
assertHasProp(tablePath, expProps = Map("delta.checkpointInterval" -> "20"))

// Try updating in an existing table
createUpdateTableWithProps(
tablePath,
props = Map("DELTA.CHECKPOINTINTERVAL" -> "30"))
assertHasProp(tablePath, expProps = Map("delta.checkpointInterval" -> "30"))
}
}

def createUpdateTableWithProps(
tablePath: String,
createTable: Boolean = false,
Expand Down

0 comments on commit 950af4e

Please sign in to comment.