Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

[NSE-183] add Timestamp in native side #184

Closed
wants to merge 3 commits into from

Conversation

rui-mo
Copy link
Collaborator

@rui-mo rui-mo commented Mar 22, 2021

What changes were proposed in this pull request?

This pr adds Timestamp in native side.
fixed: #183

How was this patch tested?

needs test

@github-actions
Copy link

#183

@github-actions
Copy link


@github-actions
Copy link


@github-actions
Copy link


@rui-mo rui-mo changed the title [NSE-183][DNM] add Timestamp in native side [NSE-183] add Timestamp in native side Mar 23, 2021
@rui-mo
Copy link
Collaborator Author

rui-mo commented Mar 23, 2021

@xuechendi @JkSelf hi, I add timestamp in this pr, could you help take a review?

@github-actions
Copy link


@@ -428,6 +432,91 @@ class ArrayAppender<DataType, enable_if_decimal<DataType>> : public AppenderBase
bool has_null_ = false;
};

template <typename DataType>
class ArrayAppender<DataType, enable_if_timestamp<DataType>> : public AppenderBase {
Copy link
Collaborator

Choose a reason for hiding this comment

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

it looks like we could merge this with number, date, decimal?

ArrayAppender(arrow::compute::ExecContext* ctx, AppenderType type = left)
: ctx_(ctx), type_(type) {
std::unique_ptr<arrow::ArrayBuilder> array_builder;
arrow::MakeBuilder(ctx_->memory_pool(), arrow::int64(), &array_builder);
Copy link
Collaborator Author

@rui-mo rui-mo Mar 25, 2021

Choose a reason for hiding this comment

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

@zhouyuan this is because TimestampType does not contain "arrow::TypeTraits::type_singleton()", so it is separated out.

@github-actions
Copy link


Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Date/Timestamp type support
2 participants