arina-ielchiieva commented on a change in pull request #1666: DRILL-7058:
Refresh command to support subset of columns
URL: https://github.com/apache/drill/pull/1666#discussion_r261615804
##########
File path: exec/java-exec/src/main/codegen/includes/parserImpls.ftl
##########
@@ -464,22 +464,30 @@ SqlNode SqlDropSchema(SqlParserPos pos) :
/**
* Parse refresh table metadata statement.
- * REFRESH TABLE METADATA tblname
+ * REFRESH TABLE METADATA [COLUMNS ((field1, field2,..) | NONE)] tblname
*/
SqlNode SqlRefreshMetadata() :
{
SqlParserPos pos;
SqlIdentifier tblName;
- SqlNodeList fieldList;
+ SqlNodeList fieldList = null;
SqlNode query;
+ boolean allColumns = true;
Review comment:
I don't think we need allColumns state here, if fieldList is empty it means
we refresh all columns, if not then part of them. Having `SqlNodeList
fieldList` is enough.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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