You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by st...@apache.org on 2023/10/05 04:49:10 UTC
[phoenix] branch 5.1 updated: PHOENIX-7062 Stabilize testDeletingStatsShouldNotFailWithADEWhenTableDropped (addendum: add method missing from 5.1)
This is an automated email from the ASF dual-hosted git repository.
stoty pushed a commit to branch 5.1
in repository https://gitbox.apache.org/repos/asf/phoenix.git
The following commit(s) were added to refs/heads/5.1 by this push:
new afbb160ebe PHOENIX-7062 Stabilize testDeletingStatsShouldNotFailWithADEWhenTableDropped (addendum: add method missing from 5.1)
afbb160ebe is described below
commit afbb160ebea774a49262060b4e45eb623d699605
Author: Istvan Toth <st...@apache.org>
AuthorDate: Thu Oct 5 06:48:36 2023 +0200
PHOENIX-7062 Stabilize testDeletingStatsShouldNotFailWithADEWhenTableDropped (addendum: add method missing from 5.1)
---
phoenix-core/src/main/java/org/apache/phoenix/util/SchemaUtil.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/phoenix-core/src/main/java/org/apache/phoenix/util/SchemaUtil.java b/phoenix-core/src/main/java/org/apache/phoenix/util/SchemaUtil.java
index d781e6d3ad..da77f73219 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/util/SchemaUtil.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/util/SchemaUtil.java
@@ -1110,6 +1110,12 @@ public class SchemaUtil {
return TableName.valueOf(schemaName, tableName);
}
+ public static PName getPhysicalHBaseTableName(byte[] fullTableName, boolean isNamespaceMappingEnabled) {
+ String tableName = getTableNameFromFullName(fullTableName);
+ String schemaName = getSchemaNameFromFullName(fullTableName);
+ return getPhysicalHBaseTableName(schemaName, tableName, isNamespaceMappingEnabled);
+ }
+
public static PName getPhysicalHBaseTableName(String schemaName, String tableName, boolean isNamespaceMapped) {
if (!isNamespaceMapped) { return PNameFactory.newName(getTableNameAsBytes(schemaName, tableName)); }
if (schemaName == null || schemaName.isEmpty()) { return PNameFactory.newName(tableName); }