Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Bradley Dice <[email protected]>
Co-authored-by: Lawrence Mitchell <[email protected]>
  • Loading branch information
3 people authored Sep 16, 2024
1 parent 637f632 commit 80a62ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cpp/include/cudf/datetime.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace datetime {
/**
* @brief Types of datetime components that may be extracted.
*/
enum class datetime_component {
enum class datetime_component : uint8_t {
INVALID = 0,
YEAR,
MONTH,
Expand Down Expand Up @@ -205,7 +205,7 @@ std::unique_ptr<cudf::column> extract_nanosecond_fraction(
rmm::device_async_resource_ref mr = rmm::mr::get_current_device_resource());

/**
* @brief Extracts the specified datetime component from any datetime type and
* @brief Extracts the specified datetime component from any datetime type and
* returns an int16_t cudf::column.
*
* @param column cudf::column_view of the input datetime values
Expand All @@ -218,7 +218,7 @@ std::unique_ptr<cudf::column> extract_nanosecond_fraction(
std::unique_ptr<cudf::column> extract_datetime_component(
cudf::column_view const& column,
datetime_component component,
rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
rmm::device_async_resource_ref mr = rmm::mr::get_current_device_resource());

/** @} */ // end of group
/**
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/datetime/datetime_ops.cu
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ std::unique_ptr<column> extract_second(column_view const& column, rmm::device_as

std::unique_ptr<cudf::column> extract_datetime_component(cudf::column_view const& column,
datetime_component component,
rmm::mr::device_memory_resource* mr)
rmm::device_async_resource_ref mr)
{
CUDF_FUNC_RANGE();
switch (component) {
Expand Down

0 comments on commit 80a62ba

Please sign in to comment.