This is an automated email from the ASF dual-hosted git repository.

nic pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kylin.git


The following commit(s) were added to refs/heads/master by this push:
     new ae32c57  KYLIN-4111: drop table failed with no valid privileges after 
KYLIN-3857 (#773)
ae32c57 is described below

commit ae32c5724faa4110bde737e8b6e6070dc1423f45
Author: Liu Shaohui <lshmo...@gmail.com>
AuthorDate: Wed Jul 31 20:14:51 2019 +0800

    KYLIN-4111: drop table failed with no valid privileges after KYLIN-3857 
(#773)
    
    * KYLIN-4111: drop table failed with no valid privileges after KYLIN-3857
    
    * Remove unused imports in KYLIN-4111
---
 .../main/java/org/apache/kylin/source/hive/GarbageCollectionStep.java | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git 
a/source-hive/src/main/java/org/apache/kylin/source/hive/GarbageCollectionStep.java
 
b/source-hive/src/main/java/org/apache/kylin/source/hive/GarbageCollectionStep.java
index ed86513..ba7c77a 100644
--- 
a/source-hive/src/main/java/org/apache/kylin/source/hive/GarbageCollectionStep.java
+++ 
b/source-hive/src/main/java/org/apache/kylin/source/hive/GarbageCollectionStep.java
@@ -32,7 +32,6 @@ import org.apache.kylin.job.exception.ExecuteException;
 import org.apache.kylin.job.execution.AbstractExecutable;
 import org.apache.kylin.job.execution.ExecutableContext;
 import org.apache.kylin.job.execution.ExecuteResult;
-import org.apache.kylin.job.util.FlatTableSqlQuoteUtils;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -58,7 +57,6 @@ public class GarbageCollectionStep extends AbstractExecutable 
{
     }
 
     private String cleanUpIntermediateFlatTable(KylinConfig config) throws 
IOException {
-        String quoteCharacter = FlatTableSqlQuoteUtils.getQuote();
         StringBuffer output = new StringBuffer();
         final HiveCmdBuilder hiveCmdBuilder = new HiveCmdBuilder();
         final List<String> hiveTables = this.getIntermediateTables();
@@ -67,7 +65,7 @@ public class GarbageCollectionStep extends AbstractExecutable 
{
                 if (StringUtils.isNotEmpty(hiveTable)) {
                     hiveCmdBuilder.addStatement("USE " + 
config.getHiveDatabaseForIntermediateTable() + ";");
                     hiveCmdBuilder
-                            .addStatement("DROP TABLE IF EXISTS " + 
quoteCharacter + hiveTable + quoteCharacter + ";");
+                            .addStatement("DROP TABLE IF EXISTS " + hiveTable 
+ ";");
 
                     output.append("Hive table " + hiveTable + " is dropped. 
\n");
                 }

Reply via email to