zhaomin1423 commented on code in PR #2421:
URL: https://github.com/apache/incubator-kyuubi/pull/2421#discussion_r860485360


##########
externals/kyuubi-hive-sql-engine/src/main/scala/org/apache/kyuubi/engine/hive/events/HiveEngineEvent.scala:
##########
@@ -30,8 +30,14 @@ case class HiveEngineEvent(
     diagnostic: String,
     settings: Map[String, String]) extends KyuubiEvent {
 
-  override def partitions: Seq[(String, String)] =
-    ("day", Utils.getDateFromTimestamp(startTime)) :: Nil
+  override def partitions: Seq[(String, String)] = {
+    // before engine is started, the start time is 0L, the partition use 
current day.
+    if (startTime == 0) {

Review Comment:
   Spark engine post an initialized event, its start time is start time of 
sparkContext
   
   
https://github.com/apache/incubator-kyuubi/blob/93f13ef662f497a0e02281cf09cbf8cd0d8577fd/externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark/SparkSQLEngine.scala#L203
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to