Please refer https://issues.apache.org/jira/browse/CALCITE-783?focusedCommentId=14641378&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14641378 for more information.