vladimirg-db commented on code in PR #48222:
URL: https://github.com/apache/spark/pull/48222#discussion_r1773690351
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala:
##########
@@ -759,6 +759,14 @@ object SQLConf {
.checkValue(_ > 0, "The initial number of partitions must be positive.")
.createOptional
+ lazy val TRIM_COLLATION_ENABLED =
+ buildConf("spark.sql.collation.trim.enabled")
+ .doc("Trim collation feature is under development and its use should be
done under this" +
Review Comment:
Would be nice to have a description for this feature here.
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/rules.scala:
##########
@@ -640,6 +639,26 @@ case class QualifyLocationWithWarehouse(catalog:
SessionCatalog) extends Rule[Lo
}
}
+object TrimCollationCheck extends (LogicalPlan => Unit) {
Review Comment:
Sure.
- The rules run in fixed point (many iterations) over the whole logical
plan, which can be super slow for big logical plans. Every new rule slows down
those corner cases.
- Analyzer logic depends on the ordering of rules, which is very hard to get
right, and there are frequent regressions related to unobvious outcome of some
new rule.
--
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]