[
https://issues.apache.org/jira/browse/LENS-609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14607604#comment-14607604
]
Raghavendra Singh commented on LENS-609:
----------------------------------------
Error use case:-
- When *to* date is less than *from* date in time_range_in clause
A more informative error response would be helpful here
{CODE}
lens-shell>query execute cube select col1 from cube1 where
time_range_in(part_col,'2014-11-24','2014-07-25')
Query Id: fb9b2428-c1c0-41eb-b70c-9dc9eed97923
Error Code: 1001
Error Message: Internal Server Error.
{CODE}
both hive and jdbc return this error
{noformat}
>From date: Mon Nov 24 00:00:00 UTC 2014 is after to date: Fri Jul 25 00:00:00
>UTC 2014
{noformat}
> Add more error codes in REST APIs and improve existing error messages
> ---------------------------------------------------------------------
>
> Key: LENS-609
> URL: https://issues.apache.org/jira/browse/LENS-609
> Project: Apache Lens
> Issue Type: Sub-task
> Reporter: Himanshu Gahlaut
> Fix For: 2.3
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)