Blizzara commented on code in PR #12199:
URL: https://github.com/apache/datafusion/pull/12199#discussion_r1734657314


##########
datafusion/substrait/src/variation_const.rs:
##########
@@ -52,6 +52,7 @@ pub const DATE_32_TYPE_VARIATION_REF: u32 = 0;
 pub const DATE_64_TYPE_VARIATION_REF: u32 = 1;
 pub const DEFAULT_CONTAINER_TYPE_VARIATION_REF: u32 = 0;
 pub const LARGE_CONTAINER_TYPE_VARIATION_REF: u32 = 1;
+pub const VIEW_CONTAINER_TYPE_VARIATION_REF: u32 = 2;

Review Comment:
   FWIW, hardcoding the numbers isn't really the proper way to do type 
variations. (Rather we should add the variation as an extension and refer to 
the extension's id.) However, given this is already used for default vs large, 
I guess adding view makes sense - and they can all be migrated at once to the 
proper way someday.



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