[ 
https://issues.apache.org/jira/browse/IMPALA-11156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17499377#comment-17499377
 ] 

Quanlong Huang commented on IMPALA-11156:
-----------------------------------------

Oops, I just realized the test only runs in exhaustive builds:

[https://github.com/apache/impala/blob/7942a8ca2316357296fe351a40b6a87b9de769c8/tests/metadata/test_hms_integration.py#L124-L125]

[~pranav.lodha] , you can use the following command to run the test:
{code:java}
impala-py.test --exploration_strategy=exhaustive 
tests/metadata/test_hms_integration.py::TestHmsIntegration::test_desc_json_table
 {code}

> TestHmsIntegration.test_desc_json_table failed in exhaustive build
> ------------------------------------------------------------------
>
>                 Key: IMPALA-11156
>                 URL: https://issues.apache.org/jira/browse/IMPALA-11156
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Infrastructure
>            Reporter: Riza Suminto
>            Assignee: Pranav Yogi Lodha
>            Priority: Major
>              Labels: build-failure
>
> TestHmsIntegration.test_desc_json_table failed in exhaustive test with the 
> following errors:
> {code:java}
> metadata/test_hms_integration.py:684: in test_desc_json_table
>     expected = self.client.execute('DESC %s' % table_name)
> common/impala_connection.py:212: in execute
>     return self.__beeswax_client.execute(sql_stmt, user=user)
> beeswax/impala_beeswax.py:189: in execute
>     handle = self.__execute_query(query_string.strip(), user=user)
> beeswax/impala_beeswax.py:365: in __execute_query
>     handle = self.execute_query_async(query_string, user=user)
> beeswax/impala_beeswax.py:359: in execute_query_async
>     handle = self.__do_rpc(lambda: self.imp_service.query(query,))
> beeswax/impala_beeswax.py:522: in __do_rpc
>     raise ImpalaBeeswaxException(self.__build_error_message(b), b)
> E   ImpalaBeeswaxException: ImpalaBeeswaxException:
> E    INNER EXCEPTION: <class 'beeswaxd.ttypes.BeeswaxException'>
> E    MESSAGE: ParseException: Syntax error in line 1:
> E   DESC lyfduervsoypyviw.gfmldijspymuyeaz
> E   ^
> E   Encountered: DESC
> E   Expected: ALTER, COMMENT, COMPUTE, COPY, CREATE, DELETE, DESCRIBE, DROP, 
> EXPLAIN, GRANT, INSERT, INVALIDATE, LOAD, REFRESH, REVOKE, SELECT, SET, SHOW, 
> TRUNCATE, UPDATE, UPSERT, USE, VALUES, WITH
> E   
> E   CAUSED BY: Exception: Syntax error {code}
> This can be reproduced consistently with following command
> {code:java}
> impala-py.test --exploration=exhaustive 
> tests/metadata/test_hms_integration.py::TestHmsIntegration::test_desc_json_table
>  {code}
> It looks like the intended command should be DESCRIBE instead of DESC.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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

Reply via email to