Skip to content

date_trunc small update for readability#12479

Merged
alamb merged 3 commits intoapache:mainfrom
findepi:findepi/simplify-date-trunc-time-unit-switch-d1fd86
Sep 16, 2024
Merged

date_trunc small update for readability#12479
alamb merged 3 commits intoapache:mainfrom
findepi:findepi/simplify-date-trunc-time-unit-switch-d1fd86

Conversation

@findepi
Copy link
Copy Markdown
Member

@findepi findepi commented Sep 15, 2024

No description provided.

It was suggesting only nanosecond timestamps are supported, while all
arrow time units are.
`process_array::<TimestampNanosecondType>` can succeed only for an array
that can be downcast to array of nanosecond timestamps, but that case is
explicitly handled earlier.
Make it clear to the compiler (and the reader) that all time units are
covered.
@github-actions github-actions bot added the functions Changes to functions implementation label Sep 15, 2024
@alamb alamb changed the title date_trunc small update date_trunc small update for readability Sep 16, 2024
Copy link
Copy Markdown
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks nicer to me -- thank you for the small PRs @findepi

@alamb alamb merged commit 5c7721b into apache:main Sep 16, 2024
@findepi findepi deleted the findepi/simplify-date-trunc-time-unit-switch-d1fd86 branch September 17, 2024 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

functions Changes to functions implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants