Github user imperio-wxm commented on the pull request:

    https://github.com/apache/spark/pull/10706#issuecomment-214088442
  
    Hi,I encountered a similar problem.(spark:1.5.2)
    
    Subquery like this:
    ```sql
    SELECT * FROM his_data_zadd WHERE value=(SELECT MAX(his_t.value) FROM 
his_data_zadd AS his_t)
    ```
    
    Error code:
    ```sql
    py4j.protocol.Py4JJavaError: An error occurred while calling o32.sql.
    : java.lang.RuntimeException: [1.49] failure: ``)'' expected but identifier 
MAX found
    
    SELECT * FROM his_data_zadd WHERE value=(SELECT MAX(his_t.value) FROM 
his_data_zadd AS his_t)
                                                    ^
    ```
    
    How should I write correctly subquery?



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