Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stream2000 committed Dec 15, 2023
1 parent 464d5bd commit c63e93d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2100,9 +2100,9 @@ class TestInsertTable extends HoodieSparkSqlTestBase {
spark.sql(
s"""
| insert into $tableName values
| (1, 'a1', map('color', 'red', 'size', 'M'), 10.0, 1000, '2021-01-05'),
| (2, 'a2', map('color', 'blue', 'size', 'L'), 20.0, 2000, '2021-01-06'),
| (3, 'a3', map('color', 'green', 'size', 'S'), 30.0, 3000, '2021-01-07')
| (1, 'a1', map('color', 'red', 'size', 'M'), 10, 1000, '2021-01-05'),
| (2, 'a2', map('color', 'blue', 'size', 'L'), 20, 2000, '2021-01-06'),
| (3, 'a3', map('color', 'green', 'size', 'S'), 30, 3000, '2021-01-07')
""".stripMargin)
// Check the inserted records with map type attributes
checkAnswer(s"select id, name, price, ts, dt from $tableName where attributes.color = 'red'")(
Expand Down

0 comments on commit c63e93d

Please sign in to comment.