agozhiy commented on a change in pull request #1833: DRILL-6961: Handle
exceptions during queries to information_schema
URL: https://github.com/apache/drill/pull/1833#discussion_r311021160
##########
File path:
exec/java-exec/src/main/java/org/apache/drill/exec/store/ischema/InfoSchemaRecordGenerator.java
##########
@@ -379,7 +379,7 @@ public Views(OptionManager optionManager) {
public boolean visitTable(String schemaName, String tableName, Table
table) {
if (table.getJdbcTableType() == TableType.VIEW) {
records.add(new Records.View(IS_CATALOG_NAME, schemaName, tableName,
- ((DrillViewInfoProvider) table).getViewSql()));
+ table instanceof DrillViewInfoProvider ? ((DrillViewInfoProvider)
table).getViewSql() : ""));
Review comment:
Done.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services