cloud-fan commented on code in PR #40058:
URL: https://github.com/apache/spark/pull/40058#discussion_r1111668719
##########
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:
this may not be very cheap. Shall we only do it if `isExtended` is true?
--
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]