[ https://issues.apache.org/jira/browse/DRILL-6726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16601712#comment-16601712 ]
Robert Hou commented on DRILL-6726: ----------------------------------- [~arina] I clarified the issue in the description. Use commit ddb35ce71837376c7caef28c25327ba556bb32f2 to create a view (this is the commit prior to DRILL-6492). Then try to access the view using commit 8bcb103a0e3bcc5f85a03cbed3c6c0cea254ec4e , which is the commit for DRILL-6492. > Drill should return a better error message when an existing 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 an > existing view was created before (DRILL-6492) was committed, and this 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)