yabola commented on code in PR #7181:
URL: https://github.com/apache/kyuubi/pull/7181#discussion_r2675528361


##########
extensions/spark/kyuubi-spark-lineage/src/main/scala/org/apache/kyuubi/plugin/lineage/helper/SparkSQLLineageParseHelper.scala:
##########
@@ -124,19 +115,19 @@ trait LineageParser {
   }
 
   private def getSelectColumnLineage(
-      named: Seq[NamedExpression],
-      inputTablesByPlan: mutable.HashSet[String]): AttributeMap[AttributeSet] 
= {
+      named: Seq[NamedExpression]): AttributeMap[AttributeSet] = {
     val exps = named.map {
       case exp: Alias =>
         val references =
-          if (exp.references.nonEmpty) exp.references
-          else {
+          if (exp.references.isEmpty || 
exp.child.isInstanceOf[ScalarSubquery]) {

Review Comment:
   Thank you for your review. Yes, this problem exists. I add  recursively 
check for the children exp.



-- 
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]

Reply via email to