MCPcopy Create free account
hub / github.com/apache/arrow / TimestampType>

Method TimestampType>

cpp/src/parquet/schema_test.cc:2190–2208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2188
2189template <>
2190void TestTemporalSchemaElementConstruction::Inspect<format::TimestampType>() {
2191 TestSchemaElementConstruction::Inspect();
2192 ASSERT_EQ(element_->logicalType.TIMESTAMP.isAdjustedToUTC, adjusted_);
2193 switch (unit_) {
2194 case LogicalType::TimeUnit::MILLIS:
2195 ASSERT_TRUE(element_->logicalType.TIMESTAMP.unit.__isset.MILLIS);
2196 break;
2197 case LogicalType::TimeUnit::MICROS:
2198 ASSERT_TRUE(element_->logicalType.TIMESTAMP.unit.__isset.MICROS);
2199 break;
2200 case LogicalType::TimeUnit::NANOS:
2201 ASSERT_TRUE(element_->logicalType.TIMESTAMP.unit.__isset.NANOS);
2202 break;
2203 case LogicalType::TimeUnit::UNKNOWN:
2204 default:
2205 FAIL() << "Invalid time unit in test case";
2206 }
2207 return;
2208}
2209
2210TEST_F(TestTemporalSchemaElementConstruction, TemporalCases) {
2211 auto check_TIME = [this]() { return element_->logicalType.__isset.TIME; };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected