dutyu commented on PR #27231:
URL: https://github.com/apache/doris/pull/27231#issuecomment-1825245285

   Use dialect `spark_sql` instead of `hive`, in fact `Spark SQL` support a 
subquery without a explict alias, but hive does not support.
   
   Reference: 
   [SubQuery syntax of 
Hive](https://cwiki.apache.org/confluence/display/Hive/LanguageManual+SubQueries)
   
   The docs of `Spark SQL` does not describe the specific syntax about 
subquery, but we can find it at source code.
   
   
[spark-sql#visitAliasedQuery](https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala#L1689)
  
   
   
[spark-sql#generateSubqueryName](https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicLogicalOperators.scala#L1746)
   


-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to