You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lens.apache.org by Amareshwari Sriramadasu <am...@apache.org> on 2014/12/30 13:49:22 UTC
Review Request 29484: LENS-179 : Propagate Explain error properly
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/29484/
-----------------------------------------------------------
Review request for lens and Rajat Khandelwal.
Bugs: LENS-179
https://issues.apache.org/jira/browse/LENS-179
Repository: lens
Description
-------
Gets the cause of the explain failure and fails if setting plan did not pass for any driver
Diffs
-----
lens-server-api/src/main/java/org/apache/lens/server/api/query/DriverSelectorQueryContext.java 5dab13b
lens-server/src/test/java/org/apache/lens/server/query/TestQueryService.java 7edc3bc
Diff: https://reviews.apache.org/r/29484/diff/
Testing
-------
Updated unit test to assert for error message. Will do testing for some more queries and update here.
Thanks,
Amareshwari Sriramadasu
Re: Review Request 29484: LENS-179 : Propagate Explain error properly
Posted by Jaideep dhok <ja...@inmobi.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/29484/#review66362
-----------------------------------------------------------
Ship it!
Ship It!
- Jaideep dhok
On Dec. 30, 2014, 12:49 p.m., Amareshwari Sriramadasu wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/29484/
> -----------------------------------------------------------
>
> (Updated Dec. 30, 2014, 12:49 p.m.)
>
>
> Review request for lens and Rajat Khandelwal.
>
>
> Bugs: LENS-179
> https://issues.apache.org/jira/browse/LENS-179
>
>
> Repository: lens
>
>
> Description
> -------
>
> Gets the cause of the explain failure and fails if setting plan did not pass for any driver
>
>
> Diffs
> -----
>
> lens-server-api/src/main/java/org/apache/lens/server/api/query/DriverSelectorQueryContext.java 5dab13b
> lens-server/src/test/java/org/apache/lens/server/query/TestQueryService.java 7edc3bc
>
> Diff: https://reviews.apache.org/r/29484/diff/
>
>
> Testing
> -------
>
> Updated unit test to assert for error message. Will do testing for some more queries and update here.
>
>
> Thanks,
>
> Amareshwari Sriramadasu
>
>
Re: Review Request 29484: LENS-179 : Propagate Explain error properly
Posted by Suma Shivaprasad <su...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/29484/#review66361
-----------------------------------------------------------
lens-server-api/src/main/java/org/apache/lens/server/api/query/DriverSelectorQueryContext.java
<https://reviews.apache.org/r/29484/#comment109806>
nit...newline to format seperate driver exceptions
lens-server-api/src/main/java/org/apache/lens/server/api/query/DriverSelectorQueryContext.java
<https://reviews.apache.org/r/29484/#comment109805>
should we move this to Utils
- Suma Shivaprasad
On Dec. 30, 2014, 12:49 p.m., Amareshwari Sriramadasu wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/29484/
> -----------------------------------------------------------
>
> (Updated Dec. 30, 2014, 12:49 p.m.)
>
>
> Review request for lens and Rajat Khandelwal.
>
>
> Bugs: LENS-179
> https://issues.apache.org/jira/browse/LENS-179
>
>
> Repository: lens
>
>
> Description
> -------
>
> Gets the cause of the explain failure and fails if setting plan did not pass for any driver
>
>
> Diffs
> -----
>
> lens-server-api/src/main/java/org/apache/lens/server/api/query/DriverSelectorQueryContext.java 5dab13b
> lens-server/src/test/java/org/apache/lens/server/query/TestQueryService.java 7edc3bc
>
> Diff: https://reviews.apache.org/r/29484/diff/
>
>
> Testing
> -------
>
> Updated unit test to assert for error message. Will do testing for some more queries and update here.
>
>
> Thanks,
>
> Amareshwari Sriramadasu
>
>
Re: Review Request 29484: LENS-179 : Propagate Explain error properly
Posted by Suma Shivaprasad <su...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/29484/#review66450
-----------------------------------------------------------
Ship it!
Ship It!
- Suma Shivaprasad
On Dec. 31, 2014, 6:45 a.m., Amareshwari Sriramadasu wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/29484/
> -----------------------------------------------------------
>
> (Updated Dec. 31, 2014, 6:45 a.m.)
>
>
> Review request for lens and Rajat Khandelwal.
>
>
> Bugs: LENS-179
> https://issues.apache.org/jira/browse/LENS-179
>
>
> Repository: lens
>
>
> Description
> -------
>
> Gets the cause of the explain failure and fails if setting plan did not pass for any driver
>
>
> Diffs
> -----
>
> lens-server-api/pom.xml 7e1fd91
> lens-server-api/src/main/java/org/apache/lens/server/api/query/DriverSelectorQueryContext.java 5dab13b
> lens-server-api/src/main/java/org/apache/lens/server/api/util/LensUtil.java PRE-CREATION
> lens-server-api/src/test/java/org/apache/lens/server/api/util/TestLensUtil.java PRE-CREATION
> lens-server/src/test/java/org/apache/lens/server/query/TestQueryService.java 7edc3bc
>
> Diff: https://reviews.apache.org/r/29484/diff/
>
>
> Testing
> -------
>
> Updated unit test to assert for error message.
>
> Did more testing with multiple drivers. here is an error reported now :
>
> lens-shell>query explain cube select substr(id) from table
> Explain FAILED:
> Driver :org.apache.lens.driver.jdbc.JDBCDriver Cause :unexpected token: )
> Driver :org.apache.lens.driver.hive.HiveDriver Cause :Error while compiling statement: FAILED: SemanticException [Error 10014]: Line 1:24 Wrong arguments 'id': No matching method for class org.apache.hadoop.hive.ql.udf.UDFSubstr with (int). Possible choices: _FUNC_(binary, int) _FUNC_(binary, int, int) _FUNC_(string, int) _FUNC_(string, int, int)
> lens-shell>query explain cube select nocol from table
> Explain FAILED:No driver accepted the query, because Could not find the table containing column: nocol
> lens-shell>query explain <query with invalid fuction>
> Explain FAILED:Error while compiling statement: FAILED: SemanticException [Error 10011]: Line 1:3662 Invalid function 'invalidfunc'
> lens-shell>
>
>
> Thanks,
>
> Amareshwari Sriramadasu
>
>
Re: Review Request 29484: LENS-179 : Propagate Explain error properly
Posted by Jaideep dhok <ja...@inmobi.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/29484/#review66451
-----------------------------------------------------------
Ship it!
Changes look good.
- Jaideep dhok
On Dec. 31, 2014, 6:45 a.m., Amareshwari Sriramadasu wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/29484/
> -----------------------------------------------------------
>
> (Updated Dec. 31, 2014, 6:45 a.m.)
>
>
> Review request for lens and Rajat Khandelwal.
>
>
> Bugs: LENS-179
> https://issues.apache.org/jira/browse/LENS-179
>
>
> Repository: lens
>
>
> Description
> -------
>
> Gets the cause of the explain failure and fails if setting plan did not pass for any driver
>
>
> Diffs
> -----
>
> lens-server-api/pom.xml 7e1fd91
> lens-server-api/src/main/java/org/apache/lens/server/api/query/DriverSelectorQueryContext.java 5dab13b
> lens-server-api/src/main/java/org/apache/lens/server/api/util/LensUtil.java PRE-CREATION
> lens-server-api/src/test/java/org/apache/lens/server/api/util/TestLensUtil.java PRE-CREATION
> lens-server/src/test/java/org/apache/lens/server/query/TestQueryService.java 7edc3bc
>
> Diff: https://reviews.apache.org/r/29484/diff/
>
>
> Testing
> -------
>
> Updated unit test to assert for error message.
>
> Did more testing with multiple drivers. here is an error reported now :
>
> lens-shell>query explain cube select substr(id) from table
> Explain FAILED:
> Driver :org.apache.lens.driver.jdbc.JDBCDriver Cause :unexpected token: )
> Driver :org.apache.lens.driver.hive.HiveDriver Cause :Error while compiling statement: FAILED: SemanticException [Error 10014]: Line 1:24 Wrong arguments 'id': No matching method for class org.apache.hadoop.hive.ql.udf.UDFSubstr with (int). Possible choices: _FUNC_(binary, int) _FUNC_(binary, int, int) _FUNC_(string, int) _FUNC_(string, int, int)
> lens-shell>query explain cube select nocol from table
> Explain FAILED:No driver accepted the query, because Could not find the table containing column: nocol
> lens-shell>query explain <query with invalid fuction>
> Explain FAILED:Error while compiling statement: FAILED: SemanticException [Error 10011]: Line 1:3662 Invalid function 'invalidfunc'
> lens-shell>
>
>
> Thanks,
>
> Amareshwari Sriramadasu
>
>
Re: Review Request 29484: LENS-179 : Propagate Explain error properly
Posted by Amareshwari Sriramadasu <am...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/29484/
-----------------------------------------------------------
(Updated Dec. 31, 2014, 6:45 a.m.)
Review request for lens and Rajat Khandelwal.
Bugs: LENS-179
https://issues.apache.org/jira/browse/LENS-179
Repository: lens
Description
-------
Gets the cause of the explain failure and fails if setting plan did not pass for any driver
Diffs
-----
lens-server-api/pom.xml 7e1fd91
lens-server-api/src/main/java/org/apache/lens/server/api/query/DriverSelectorQueryContext.java 5dab13b
lens-server-api/src/main/java/org/apache/lens/server/api/util/LensUtil.java PRE-CREATION
lens-server-api/src/test/java/org/apache/lens/server/api/util/TestLensUtil.java PRE-CREATION
lens-server/src/test/java/org/apache/lens/server/query/TestQueryService.java 7edc3bc
Diff: https://reviews.apache.org/r/29484/diff/
Testing (updated)
-------
Updated unit test to assert for error message.
Did more testing with multiple drivers. here is an error reported now :
lens-shell>query explain cube select substr(id) from table
Explain FAILED:
Driver :org.apache.lens.driver.jdbc.JDBCDriver Cause :unexpected token: )
Driver :org.apache.lens.driver.hive.HiveDriver Cause :Error while compiling statement: FAILED: SemanticException [Error 10014]: Line 1:24 Wrong arguments 'id': No matching method for class org.apache.hadoop.hive.ql.udf.UDFSubstr with (int). Possible choices: _FUNC_(binary, int) _FUNC_(binary, int, int) _FUNC_(string, int) _FUNC_(string, int, int)
lens-shell>query explain cube select nocol from table
Explain FAILED:No driver accepted the query, because Could not find the table containing column: nocol
lens-shell>query explain <query with invalid fuction>
Explain FAILED:Error while compiling statement: FAILED: SemanticException [Error 10011]: Line 1:3662 Invalid function 'invalidfunc'
lens-shell>
Thanks,
Amareshwari Sriramadasu
Re: Review Request 29484: LENS-179 : Propagate Explain error properly
Posted by Amareshwari Sriramadasu <am...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/29484/
-----------------------------------------------------------
(Updated Dec. 31, 2014, 6:39 a.m.)
Review request for lens and Rajat Khandelwal.
Changes
-------
Incorporated review comments
Bugs: LENS-179
https://issues.apache.org/jira/browse/LENS-179
Repository: lens
Description
-------
Gets the cause of the explain failure and fails if setting plan did not pass for any driver
Diffs (updated)
-----
lens-server-api/pom.xml 7e1fd91
lens-server-api/src/main/java/org/apache/lens/server/api/query/DriverSelectorQueryContext.java 5dab13b
lens-server-api/src/main/java/org/apache/lens/server/api/util/LensUtil.java PRE-CREATION
lens-server-api/src/test/java/org/apache/lens/server/api/util/TestLensUtil.java PRE-CREATION
lens-server/src/test/java/org/apache/lens/server/query/TestQueryService.java 7edc3bc
Diff: https://reviews.apache.org/r/29484/diff/
Testing
-------
Updated unit test to assert for error message. Will do testing for some more queries and update here.
Thanks,
Amareshwari Sriramadasu