alexeykudinkin commented on code in PR #6550:
URL: https://github.com/apache/hudi/pull/6550#discussion_r961838079
##########
hudi-spark-datasource/hudi-spark3.1.x/src/main/scala/org/apache/spark/sql/HoodieSpark31CatalogUtils.scala:
##########
@@ -15,19 +15,16 @@
* limitations under the License.
*/
-package org.apache.spark.sql.catalyst.plans.logical
+package org.apache.spark.sql
-import org.apache.spark.sql.catalyst.expressions.{Attribute, Expression}
+import org.apache.spark.sql.connector.expressions.{BucketTransform,
NamedReference, Transform}
-case class TimeTravelRelation(
- table: LogicalPlan,
- timestamp: Option[Expression],
- version: Option[String]) extends Command {
- override def children: Seq[LogicalPlan] = Seq.empty
+object HoodieSpark31CatalogUtils extends HoodieSpark3CatalogUtils {
- override def output: Seq[Attribute] = Nil
+ override def unapplyBucketTransform(t: Transform): Option[(Int,
Seq[NamedReference], Seq[NamedReference])] =
+ t match {
+ case BucketTransform(numBuckets, ref) => Some(numBuckets, Seq(ref),
Seq.empty)
Review Comment:
Correct, they for whatever reason just submit a single ref
--
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]