Skip to content

Conversation

@Weijun-H
Copy link
Member

@Weijun-H Weijun-H commented Dec 5, 2023

Which issue does this PR close?

Closes #.

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the physical-expr Changes to the physical-expr crates label Dec 7, 2023
Copy link
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.

This looks very nice (as well) -- thank you @Weijun-H

ScalarValue::IntervalMonthDayNano(Some(val))
}

/// Returns a [`ScalarValue`] representing
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a nice function 👍

Ok(ColumnarValue::Array(Arc::new(array)))
}

fn process_scalr<T: ArrowTimestampType>(
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe there is a typo here:

Suggested change
fn process_scalr<T: ArrowTimestampType>(
fn process_scalar<T: ArrowTimestampType>(

@alamb alamb merged commit 047fb33 into apache:main Dec 8, 2023
appletreeisyellow pushed a commit to appletreeisyellow/datafusion that referenced this pull request Dec 15, 2023
* refactor data_trunc

* fix cast to timestamp array

* fix cast to timestamp scalar

* fix doc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

physical-expr Changes to the physical-expr crates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants