Skip to content

Commit

Permalink
Remove select alias in IT
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Dai <[email protected]>
  • Loading branch information
dai-chen committed Sep 20, 2023
1 parent 6980a53 commit 9e870e7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import org.scalatest.matchers.should.Matchers.convertToAnyShouldWrapper

import org.apache.spark.FlintSuite
import org.apache.spark.sql.{QueryTest, Row}
import org.apache.spark.sql.types.{StructField, StructType, TimestampType}
import org.apache.spark.sql.types.StructType

class FlintSparkWindowingFunctionITSuite extends QueryTest with FlintSuite {

Expand All @@ -24,7 +24,7 @@ class FlintSparkWindowingFunctionITSuite extends QueryTest with FlintSuite {
(3L, "2023-01-01 00:15:00")))
.toDF("id", "timestamp")

val resultDF = inputDF.selectExpr("TUMBLE(timestamp, '10 minutes') AS window")
val resultDF = inputDF.selectExpr("TUMBLE(timestamp, '10 minutes')")

resultDF.schema shouldBe StructType.fromDDL(
"window struct<start:timestamp,end:timestamp> NOT NULL")
Expand Down

0 comments on commit 9e870e7

Please sign in to comment.