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

Arina Ielchiieva commented on DRILL-6726:
-----------------------------------------

[~rhou] please provide reproduce steps. I have tried something like below but 
it works fine:
{{noformat}}
{
  "name" : "student_view",
  "sql" : "SELECT *\r\nFROM `dfs.dirNParquet`.`1991`",
  "fields" : [ {
    "name" : "**",
    "type" : "DYNAMIC_STAR",
    "isNullable" : true
  } ],
  "workspaceSchemaPath" : [ "dfs" ]
}
{{noformat}}



> Drill should return a better error message when a view uses a table that has 
> a mixed case schema
> ------------------------------------------------------------------------------------------------
>
>                 Key: DRILL-6726
>                 URL: https://issues.apache.org/jira/browse/DRILL-6726
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Execution - Relational Operators
>    Affects Versions: 1.15.0
>            Reporter: Robert Hou
>            Assignee: Arina Ielchiieva
>            Priority: Major
>             Fix For: 1.15.0
>
>
> Drill 1.14 changes schemas to be case-insensitive (DRILL-6492). If a view 
> references a schema which has upper case letters, the view needs to be 
> rebuilt. For example:
> {noformat}
> create or replace view `dfs.drillTestDirP1`.student_parquet_v as select * 
> from `dfs.drillTestDirP1`.student;
> {noformat}
> If a query references this schema, Drill will return an exception:
> {noformat}
> java.sql.SQLException: VALIDATION ERROR: Failure while attempting to expand 
> view. Requested schema drillTestDirP1 not available in schema dfs.
> {noformat}
> It would be helpful to users if the error message explains that these views 
> need to be re-created.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to