hiroyuki-sato commented on code in PR #46399:
URL: https://github.com/apache/arrow/pull/46399#discussion_r2094020739


##########
c_glib/arrow-glib/basic-data-type.cpp:
##########
@@ -2282,6 +2307,19 @@ 
garrow_fixed_shape_tensor_data_type_init(GArrowFixedShapeTensorDataType *object)
 static void
 
garrow_fixed_shape_tensor_data_type_class_init(GArrowFixedShapeTensorDataTypeClass
 *klass)
 {
+  GParamSpec *spec;
+
+  auto gobject_class = G_OBJECT_CLASS(klass);
+  gobject_class->get_property = 
garrow_fixed_shape_tensor_data_type_get_property;
+
+  spec = g_param_spec_uint64("n_dims",
+                             "Ndims",
+                             "Number of dimensions of tensor elements",
+                             0,
+                             G_MAXUINT64,
+                             0,
+                             static_cast<GParamFlags>(G_PARAM_READABLE));
+  g_object_class_install_property(gobject_class, PROP_N_DIMS, spec);
 }

Review Comment:
   `FixedShapeTensorType::ndim()` returns `size_t`. I couldn't find 
`g_param_spec_size_t`. So I used `g_param_spec_uint64`
   
https://arrow.apache.org/docs/dev/cpp/api/extension.html#_CPPv4NK5arrow9extension20FixedShapeTensorType4ndimEv



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