Github user liancheng commented on a diff in the pull request:

    https://github.com/apache/spark/pull/2382#discussion_r17578145
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/LogicalPlan.scala
 ---
    @@ -96,8 +101,17 @@ abstract class LogicalPlan extends 
QueryPlan[LogicalPlan] {
         val options = input.flatMap { option =>
           // If the first part of the desired name matches a qualifier for 
this possible match, drop it.
           val remainingParts =
    -        if (option.qualifiers.contains(parts.head) && parts.size > 1) 
parts.drop(1) else parts
    -      if (option.name == remainingParts.head) (option, 
remainingParts.tail.toList) :: Nil else Nil
    +        if (option.qualifiers.filter(resolver(_, parts.head)).nonEmpty && 
parts.size > 1) {
    --- End diff --
    
    `find` would be better than `filter` here.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to