SoWhat-ET opened a new issue, #39614:
URL: https://github.com/apache/doris/issues/39614

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Version
   
   2.1.4
   
   ### What's Wrong?
   
   
   ```
   
   select 
       a.name,
       tmp.k,
       tmp.v
   from (
       select 
           'zhangsan' name,
           map(1,20,2,30) score
   )a lateral view explode_map(score)  tmp as k,v;
   ```
   执行报错:
   > errCode = 2, detailMessage = Unknown table 'v'
   
   改写为下面的形式可以执行成功,但是不是我预期的结果
   
   ```sql
   select 
       a.name,
       tmp.k
   from (
       select 
           'zhangsan' name,
           map(1,20,2,30) score
   )a lateral view explode_map(score)  tmp as k
   ```
   
![image](https://github.com/user-attachments/assets/76180e15-2bfa-410e-ad2f-8223075591e0)
   
   
   ### What You Expected?
   
   | name        |   k      |     v      |
   | zhangsan |   1      |    20     |
   | zhangsan |   2      |    30     |
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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