Skip to content

Commit 97d7cdb

Browse files
authored
GH-47265: [Ruby] Fix wrong Time object detection (#47267)
### Rationale for this change We can't use `Time` to refer `::Time` in `Arrow` namespace because there is `Arrow::Time`. ### What changes are included in this PR? Use `::Time` to refer the top-level `Time`. ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes. * GitHub Issue: #47265 Authored-by: Sutou Kouhei <[email protected]> Signed-off-by: Sutou Kouhei <[email protected]>
1 parent 2214848 commit 97d7cdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ruby/red-arrow/lib/arrow/timestamp-array-builder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def unit_id
3030
end
3131

3232
def convert_to_arrow_value(value)
33-
if value.respond_to?(:to_time) and not value.is_a?(Time)
33+
if value.respond_to?(:to_time) and not value.is_a?(::Time)
3434
value = value.to_time
3535
end
3636

0 commit comments

Comments
 (0)