Author: olga
Date: Thu Aug  7 14:55:20 2008
New Revision: 683732

URL: http://svn.apache.org/viewvc?rev=683732&view=rev
Log:
PIG-363: fix for describe

Modified:
    incubator/pig/branches/types/CHANGES.txt
    incubator/pig/branches/types/src/org/apache/pig/PigServer.java

Modified: incubator/pig/branches/types/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/incubator/pig/branches/types/CHANGES.txt?rev=683732&r1=683731&r2=683732&view=diff
==============================================================================
--- incubator/pig/branches/types/CHANGES.txt (original)
+++ incubator/pig/branches/types/CHANGES.txt Thu Aug  7 14:55:20 2008
@@ -143,3 +143,5 @@
     PIG-139: command line editing
 
     PIG-270: proper line number for parse errors
+
+    PIG-363: fix for describe to produce schema name

Modified: incubator/pig/branches/types/src/org/apache/pig/PigServer.java
URL: 
http://svn.apache.org/viewvc/incubator/pig/branches/types/src/org/apache/pig/PigServer.java?rev=683732&r1=683731&r2=683732&view=diff
==============================================================================
--- incubator/pig/branches/types/src/org/apache/pig/PigServer.java (original)
+++ incubator/pig/branches/types/src/org/apache/pig/PigServer.java Thu Aug  7 
14:55:20 2008
@@ -277,6 +277,11 @@
     public void dumpSchema(String alias) throws IOException{
         try {
             LogicalPlan lp = getPlanFromAlias(alias, "describe");
+            try {
+                lp = compileLp(lp, "describe");
+            } catch (ExecException e) {
+                throw new FrontendException(e.getMessage());
+            }
             Schema schema = lp.getLeaves().get(0).getSchema();
             System.out.println(schema.toString());    
         } catch (FrontendException fe) {


Reply via email to