Skip to content

Commit

Permalink
Change IT for options with default
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Dai <[email protected]>
  • Loading branch information
dai-chen committed Oct 6, 2023
1 parent 274b5a5 commit 1df95c9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ case class FlintSparkCoveringIndex(
}

private def getIndexOptions: String = {
Serialization.write(options.options)
Serialization.write(options.optionsWithDefault)
}

private def getIndexProperties: String = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class FlintSparkSkippingIndex(
}

private def getIndexOptions: String = {
Serialization.write(options.options)
Serialization.write(options.optionsWithDefault)
}

private def getIndexProperties: String = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class FlintSparkCoveringIndexITSuite extends FlintSparkSuite {
| "columnType": "int"
| }],
| "source": "spark_catalog.default.ci_test",
| "options": {},
| "options": { "auto_refresh": "false" },
| "properties": {}
| },
| "properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class FlintSparkSkippingIndexITSuite extends FlintSparkSuite {
| "columnType": "int"
| }],
| "source": "spark_catalog.default.test",
| "options": {},
| "options": { "auto_refresh": "false" },
| "properties": {}
| },
| "properties": {
Expand All @@ -105,7 +105,7 @@ class FlintSparkSkippingIndexITSuite extends FlintSparkSuite {
| }
|""".stripMargin)

index.get.options shouldBe FlintSparkIndexOptions.empty
index.get.options shouldBe FlintSparkIndexOptions(Map("auto_refresh" -> "false"))
}

test("create skipping index with index options successfully") {
Expand Down Expand Up @@ -522,7 +522,7 @@ class FlintSparkSkippingIndexITSuite extends FlintSparkSuite {
| "columnType": "struct<subfield1:string,subfield2:int>"
| }],
| "source": "$testTable",
| "options": {},
| "options": { "auto_refresh": "false" },
| "properties": {}
| },
| "properties": {
Expand Down

0 comments on commit 1df95c9

Please sign in to comment.