From cc61e0846bbf88583fc14da5c37c3ca3a5d86942 Mon Sep 17 00:00:00 2001 From: Chinmay Kulkarni Date: Wed, 15 Nov 2017 18:31:20 -0800 Subject: [PATCH] PHOENIX-4361: Remove redundant argument in separateAndValidateProperties in CQSI --- .../apache/phoenix/query/ConnectionQueryServicesImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java b/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java index f8f85016221..7a255a1597c 100644 --- a/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java +++ b/phoenix-core/src/main/java/org/apache/phoenix/query/ConnectionQueryServicesImpl.java @@ -1722,7 +1722,7 @@ public MetaDataMutationResult addColumn(final List tableMetaData, PTab Set tableDescriptors = Collections.emptySet(); Set origTableDescriptors = Collections.emptySet(); boolean nonTxToTx = false; - Pair tableDescriptorPair = separateAndValidateProperties(table, stmtProperties, colFamiliesForPColumnsToBeAdded, families, tableProps); + Pair tableDescriptorPair = separateAndValidateProperties(table, stmtProperties, colFamiliesForPColumnsToBeAdded, tableProps); HTableDescriptor tableDescriptor = tableDescriptorPair.getSecond(); HTableDescriptor origTableDescriptor = tableDescriptorPair.getFirst(); if (tableDescriptor != null) { @@ -1940,7 +1940,8 @@ private void setTransactional(HTableDescriptor tableDescriptor, PTableType table this.addCoprocessors(tableDescriptor.getName(), tableDescriptor, tableType, tableProps); } - private Pair separateAndValidateProperties(PTable table, Map>> properties, Set colFamiliesForPColumnsToBeAdded, List>> families, Map tableProps) throws SQLException { + private Pair separateAndValidateProperties(PTable table, Map>> properties, + Set colFamiliesForPColumnsToBeAdded, Map tableProps) throws SQLException { Map> stmtFamiliesPropsMap = new HashMap<>(properties.size()); Map commonFamilyProps = new HashMap<>(); boolean addingColumns = colFamiliesForPColumnsToBeAdded != null && !colFamiliesForPColumnsToBeAdded.isEmpty();