aajisaka commented on code in PR #7854:
URL: https://github.com/apache/kyuubi/pull/7854#discussion_r4514083806
##########
externals/kyuubi-hive-sql-engine/src/test/scala/org/apache/kyuubi/engine/hive/event/HiveEventLoggingServiceSuite.scala:
##########
@@ -37,9 +35,25 @@ class HiveEventLoggingServiceSuite extends
HiveJDBCTestHelper {
private val kyuubiConf = new KyuubiConf()
private val logRoot = kyuubiConf.get(ENGINE_EVENT_JSON_LOG_PATH)
- private val currentDate =
Utils.getDateFromTimestamp(System.currentTimeMillis())
private val hostName = InetAddress.getLocalHost.getCanonicalHostName
+ // Read every day partition so the test does not depend on the date the
suite was constructed,
+ // which can differ from the date the events are written if a run crosses
midnight.
+ private def readEventLines(eventType: String): Seq[String] = {
Review Comment:
Thank you @wangzhigang1999! Updated in
[b27c817](https://github.com/apache/kyuubi/pull/7854/commits/b27c817b283e8cde102f96f559b909a773b771d3)
--
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]