You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "HeartSaVioR (via GitHub)" <gi...@apache.org> on 2024/11/01 02:52:45 UTC
Re: [PR] [SPARK-50162][SS][TESTS] Add tests for loading snapshot with given version for transformWithState operator state and state data source reader [spark]
HeartSaVioR commented on code in PR #48710:
URL: https://github.com/apache/spark/pull/48710#discussion_r1825372846
##########
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/v2/state/StateDataSourceTransformWithStateSuite.scala:
##########
@@ -997,4 +997,85 @@ class StateDataSourceTransformWithStateSuite extends StateStoreMetricsTest
}
}
}
+
+ /**
+ * Note that we cannot use the golden files approach for transformWithState. The new schema
+ * format keeps track of the schema file path as an absolute path which cannot be used with
Review Comment:
We may need to think through the idea of using "absolute path" - if the path is under checkpoint location, having the path as absolute path is unnecessarily limiting the flexibility. Ideally saying we should use relative path, unless we figure out the case where we see difference between base path + relative path vs absolute path.
But let's have another ticket to track this. Could you please file an JIRA issue for this? We could give a try with updating this test to use golden file again in that JIRA ticket.
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org