OmniSciDB  04ee39c94c
MetadataUpdate< NSHARDS > Class Template Reference
+ Inheritance diagram for MetadataUpdate< NSHARDS >:
+ Collaboration diagram for MetadataUpdate< NSHARDS >:

Private Member Functions

void SetUp () override
 
void TearDown () override
 
void SetUp () override
 
void TearDown () override
 

Detailed Description

template<int NSHARDS>
class MetadataUpdate< NSHARDS >

Definition at line 261 of file ComputeMetadataTest.cpp.

Member Function Documentation

◆ SetUp() [1/2]

template<int NSHARDS>
void MetadataUpdate< NSHARDS >::SetUp ( )
inlineoverrideprivate

Definition at line 51 of file UpdateMetadataTest.cpp.

51 {}

◆ SetUp() [2/2]

template<int NSHARDS>
void MetadataUpdate< NSHARDS >::SetUp ( )
inlineoverrideprivate

Definition at line 262 of file ComputeMetadataTest.cpp.

References CPU, anonymous_namespace{ComputeMetadataTest.cpp}::g_table_name, run_ddl_statement(), run_multiple_agg(), and to_string().

262  {
263  std::string phrase_shard_key = NSHARDS > 1 ? ", SHARD KEY (skey)" : "";
264  std::string phrase_shard_count =
265  NSHARDS > 1 ? ", SHARD_COUNT = " + std::to_string(NSHARDS) : "";
266  EXPECT_NO_THROW(run_ddl_statement("DROP TABLE IF EXISTS " + g_table_name + ";"));
267  EXPECT_NO_THROW(run_ddl_statement(
268  "CREATE TABLE " + g_table_name +
269  " (x INT, y INT NOT NULL, z INT "
270  "ENCODING FIXED(8), a DOUBLE, b FLOAT, d DATE, dd DATE "
271  "ENCODING FIXED(16), c TEXT ENCODING DICT(32), skey int" +
272  phrase_shard_key + ") WITH (FRAGMENT_SIZE=5" + phrase_shard_count + ");"));
273 
275  for (int sh = 0; sh < NSHARDS; ++sh) {
276  run_multiple_agg(gen(1, 1, 1, 1, 1, "'1/1/2010'", "'1/1/2010'", "'foo'", sh),
278  run_multiple_agg(gen(2, 2, 2, 2, 2, "'12/31/2012'", "'12/31/2012'", "'foo'", sh),
281  gen("null", 2, "null", "null", "null", "null", "'1/1/1940'", "'foo'", sh),
283  }
284  }
std::string to_string(char const *&&v)
void run_ddl_statement(std::string ddl)
TQueryResult run_multiple_agg(std::string sql)
+ Here is the call graph for this function:

◆ TearDown() [1/2]

template<int NSHARDS>
void MetadataUpdate< NSHARDS >::TearDown ( )
inlineoverrideprivate

Definition at line 53 of file UpdateMetadataTest.cpp.

53 {}

◆ TearDown() [2/2]

template<int NSHARDS>
void MetadataUpdate< NSHARDS >::TearDown ( )
inlineoverrideprivate

Definition at line 286 of file ComputeMetadataTest.cpp.

References anonymous_namespace{ComputeMetadataTest.cpp}::g_table_name, and run_ddl_statement().

286  {
287  EXPECT_NO_THROW(run_ddl_statement("DROP TABLE IF EXISTS " + g_table_name + ";"));
288  }
void run_ddl_statement(std::string ddl)
+ Here is the call graph for this function:

The documentation for this class was generated from the following files: