Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DX-23332: Add method to parse date from null-terminated string #14

Merged
merged 1 commit into from
Jun 11, 2020

Conversation

projjal
Copy link

@projjal projjal commented Jun 11, 2020

No description provided.

@@ -561,6 +562,38 @@ static inline bool ParseTimestampStrptime(const char* buf, size_t length,
return true;
}

/// \brief Returns time since the UNIX epoch in the requested unit. Takes null terminated
/// buffer as argument
static inline bool ParseTimestampStrptime(const char* buf,
Copy link
Author

Choose a reason for hiding this comment

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

Line 533 contains the original function that takes non null-terminated string as argument.

@@ -23,6 +23,7 @@
#include <chrono>
#include <cstddef>
#include <cstdint>
#include <cstring>

Choose a reason for hiding this comment

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

this is needed?

Copy link
Author

Choose a reason for hiding this comment

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

for the strlen function in L582

@pprudhvi
Copy link

LGTM

cpp/src/arrow/util/value_parsing.h Show resolved Hide resolved
cpp/src/arrow/util/value_parsing.h Outdated Show resolved Hide resolved
@projjal projjal changed the title Add method to parse date from null-terminated string DX-23332: Add method to parse date from null-terminated string Jun 11, 2020
@projjal projjal merged commit f4a85bd into dremio:rel-450 Jun 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants