mihailoale-db commented on code in PR #48894:
URL: https://github.com/apache/spark/pull/48894#discussion_r1849128918
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/rules.scala:
##########
@@ -47,6 +47,34 @@ import org.apache.spark.util.ArrayImplicits._
* Replaces [[UnresolvedRelation]]s if the plan is for direct query on files.
*/
class ResolveSQLOnFile(sparkSession: SparkSession) extends Rule[LogicalPlan] {
+ object UnresolvedRelationResolution {
Review Comment:
If we move it out of class we'll have to introduce some other changes e.g
make `maybeSQLFile` public etc. I think it is better like this (we create an
instance of class and use the object as a field of it). @dtenedor
--
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]