cloud-fan commented on code in PR #40058:
URL: https://github.com/apache/spark/pull/40058#discussion_r1111670988
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/DataSourceV2Strategy.scala:
##########
@@ -329,10 +329,17 @@ class DataSourceV2Strategy(session: SparkSession) extends
Strategy with Predicat
}
DescribeTableExec(output, r.table, isExtended) :: Nil
- case DescribeColumn(_: ResolvedTable, column, isExtended, output) =>
+ case DescribeColumn(r: ResolvedTable, column, isExtended, output) =>
column match {
case c: Attribute =>
- DescribeColumnExec(output, c, isExtended) :: Nil
+ val colStats =
+
r.table.asReadable.newScanBuilder(CaseInsensitiveStringMap.empty()).build()
match {
Review Comment:
BTW, I think it's cleaner to pass v2 `Table` to `DescribeColumnExec` and
move this code block to `DescribeColumnExec`
--
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]