Skip to content
Merged
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 @@ -2348,4 +2348,39 @@ class CalcITCase extends BatchTestBase {
Seq(row(0, 1), row(1, 2), row(2, 3))
);
}

@Test
def testDateColumnInListWithStringLiterals(): Unit = {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small nit: if there are jira tickets for the issues that will come up with the upgrade, you could mention them here

Copy link
Copy Markdown
Contributor Author

@snuyanzin snuyanzin May 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

everything is already done within a separate PR
this PR is just extracted commit from 1.38.0 upgrade #28170

val data = Seq(
row(localDate("2000-06-30"), "a"),
row(localDate("2000-09-27"), "b"),
row(localDate("2000-11-17"), "c"),
row(localDate("2001-01-01"), "d"))
registerCollection(
"DateTable",
data,
new RowTypeInfo(LOCAL_DATE, STRING_TYPE_INFO),
"d_date, val")

checkResult(
"SELECT val FROM DateTable WHERE d_date IN ('2000-06-30', '2000-09-27', '2000-11-17')",
Seq(row("a"), row("b"), row("c")))
}

@Test
def testTimestampColumnInListWithStringLiterals(): Unit = {
val data = Seq(
row(localDateTime("2000-06-30 12:00:00"), "a"),
row(localDateTime("2000-09-27 12:00:00"), "b"),
row(localDateTime("2001-01-01 12:00:00"), "c"))
registerCollection(
"TimestampTable",
data,
new RowTypeInfo(LOCAL_DATE_TIME, STRING_TYPE_INFO),
"ts, val")

checkResult(
"SELECT val FROM TimestampTable WHERE ts IN ('2000-06-30 12:00:00', '2000-09-27 12:00:00')",
Seq(row("a"), row("b")))
}
}