hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shiv...@apache.org
Subject incubator-hawq git commit: HAWQ-459. Case sensitivity fix
Date Wed, 16 Mar 2016 18:47:20 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/HAWQ-459 c20a81d4f -> 2a8104294


HAWQ-459. Case sensitivity fix


Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/2a810429
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/2a810429
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/2a810429

Branch: refs/heads/HAWQ-459
Commit: 2a8104294aa662d6b76df99842f8dae294a87161
Parents: c20a81d
Author: Shivram Mani <shivram.mani@gmail.com>
Authored: Wed Mar 16 11:47:13 2016 -0700
Committer: Shivram Mani <shivram.mani@gmail.com>
Committed: Wed Mar 16 11:47:13 2016 -0700

----------------------------------------------------------------------
 .../java/org/apache/hawq/pxf/service/MetadataFetcherFactory.java | 4 +++-
 .../java/org/apache/hawq/pxf/service/rest/MetadataResource.java  | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/2a810429/pxf/pxf-service/src/main/java/org/apache/hawq/pxf/service/MetadataFetcherFactory.java
----------------------------------------------------------------------
diff --git a/pxf/pxf-service/src/main/java/org/apache/hawq/pxf/service/MetadataFetcherFactory.java
b/pxf/pxf-service/src/main/java/org/apache/hawq/pxf/service/MetadataFetcherFactory.java
index a0c0f05..c61446a 100644
--- a/pxf/pxf-service/src/main/java/org/apache/hawq/pxf/service/MetadataFetcherFactory.java
+++ b/pxf/pxf-service/src/main/java/org/apache/hawq/pxf/service/MetadataFetcherFactory.java
@@ -28,9 +28,11 @@ import org.apache.hawq.pxf.api.MetadataFetcher;
  * abstract class which is returned by the MetadataFetcherFactory. 
  */
 public class MetadataFetcherFactory {
+    /* TODO: This is a tempororary workaround.
+     * The metadata class will be moved to the pxf-profile.xml in the future
+     */
     public static MetadataFetcher create(String profile) throws Exception {
         String fetcherClass;
-        /* TODO: The metadata class will be moved to the pxf-profile.xml in the future */
         if ( "hcatalog".equals(profile) || "hive".equals(profile) ) {
             fetcherClass = "org.apache.hawq.pxf.plugins.hive.HiveMetadataFetcher";
         } else {

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/2a810429/pxf/pxf-service/src/main/java/org/apache/hawq/pxf/service/rest/MetadataResource.java
----------------------------------------------------------------------
diff --git a/pxf/pxf-service/src/main/java/org/apache/hawq/pxf/service/rest/MetadataResource.java
b/pxf/pxf-service/src/main/java/org/apache/hawq/pxf/service/rest/MetadataResource.java
index a080f18..1186056 100644
--- a/pxf/pxf-service/src/main/java/org/apache/hawq/pxf/service/rest/MetadataResource.java
+++ b/pxf/pxf-service/src/main/java/org/apache/hawq/pxf/service/rest/MetadataResource.java
@@ -86,7 +86,7 @@ public class MetadataResource extends RestResource {
         String jsonOutput;
         try {
             // 1. start MetadataFetcher
-            MetadataFetcher metadataFetcher = MetadataFetcherFactory.create(profile);
+            MetadataFetcher metadataFetcher = MetadataFetcherFactory.create(profile.toLowerCase());
 
             // 2. get Metadata
             List<Metadata> metadata = metadataFetcher.getMetadata(item);


Mime
View raw message