rok commented on code in PR #13901:
URL: https://github.com/apache/arrow/pull/13901#discussion_r1567806458


##########
cpp/src/arrow/extension_type.cc:
##########
@@ -144,13 +145,16 @@ namespace internal {
 static void CreateGlobalRegistry() {
   g_registry = std::make_shared<ExtensionTypeRegistryImpl>();
 
+  std::vector<std::shared_ptr<DataType>> ext_types{::arrow::extension::json()};
 #ifdef ARROW_JSON
-  // Register canonical extension types
-  auto ext_type =
-      
checked_pointer_cast<ExtensionType>(extension::fixed_shape_tensor(int64(), {}));
-
-  ARROW_CHECK_OK(g_registry->RegisterType(ext_type));
+  ext_types.push_back(extension::fixed_shape_tensor(int64(), {}));

Review Comment:
   As in alphabetical order? Changed to:
   ```cpp
   #ifdef ARROW_JSON
     std::vector<std::shared_ptr<DataType>> ext_types{
         extension::fixed_shape_tensor(int64(), {}), 
::arrow::extension::json()};
   #else
     std::vector<std::shared_ptr<DataType>> 
ext_types{::arrow::extension::json()};
   #endif
   ```



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