milenkovicm commented on code in PR #2997:
URL: 
https://github.com/apache/datafusion-ballista/pull/2997#discussion_r4777405936


##########
ballista/core/src/serde/mod.rs:
##########
@@ -358,8 +374,31 @@ impl LogicalExtensionCodec for 
BallistaLogicalExtensionCodec {
         node: Arc<dyn datafusion::catalog::TableProvider>,
         buf: &mut Vec<u8>,
     ) -> Result<()> {
-        self.default_codec
-            .try_encode_table_provider(table_ref, node, buf)
+        if let Some(table) =
+            (&*node as &dyn 
std::any::Any).downcast_ref::<GenerateSeriesTable>()
+        {
+            let generator = table.as_generator(8192)?;

Review Comment:
   is it safe to use hardcoded 8192 here ?



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to