19 #include <gtest/gtest.h>
27 int expected_major,
int expected_minor,
int expected_patch,
28 bool expected_is_internal) {
30 EXPECT_EQ(v.
application, expected_application) <<
"String: " << s;
31 EXPECT_EQ(v.
version.
major, expected_major) <<
"String: " << s;
32 EXPECT_EQ(v.
version.
minor, expected_minor) <<
"String: " << s;
33 EXPECT_EQ(v.
version.
patch, expected_patch) <<
"String: " << s;
37 TEST(ParquetVersionTest, Parsing) {
64 TEST(ParquetVersionTest, Comparisons) {
79 int main(
int argc,
char **argv) {
81 ::testing::InitGoogleTest(&argc, argv);
82 return RUN_ALL_TESTS();
bool VersionEq(int major, int minor, int patch) const
Returns true if version is equal to <major>.<minor>.<patch>
void CheckVersionParse(const string &s, const string &expected_application, int expected_major, int expected_minor, int expected_patch, bool expected_is_internal)
std::string application
Application that wrote the file. e.g. "IMPALA".
struct impala::HdfsParquetScanner::FileVersion::@7 version
static void Init()
Initialize CpuInfo.
bool is_impala_internal
If true, this file was generated by an Impala internal release.
int main(int argc, char **argv)
bool VersionLt(int major, int minor=0, int patch=0) const
Returns true if version is strictly less than <major>.<minor>.<patch>