mihaibudiu commented on code in PR #5429:
URL: https://github.com/apache/calcite/pull/5429#discussion_r4623387641


##########
piglet/src/main/java/org/apache/calcite/piglet/PigTable.java:
##########
@@ -71,6 +71,7 @@ public static RelOptTable createRelOptTable(RelOptSchema 
schema,
   }
 
   @Override public Enumerable<@Nullable Object[]> scan(final DataContext root) 
{
-    return null;
+    throw new UnsupportedOperationException(
+        "PigTable has a row type and no rows; it cannot be scanned");

Review Comment:
   this error I don't understand. Does it mean the table is empty?
   If it's empty, it can be scanned.
   How else can a table have a row type and no rows?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to