OmniSciDB  343343d194
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
anonymous_namespace{ImportTest.cpp}::anonymous_namespace{ImportTest.cpp} Namespace Reference

Functions

void check_geo_import ()
 
void check_geo_gdal_point_import ()
 
void check_geo_gdal_mpoly_import ()
 
void check_geo_num_rows (const std::string &project_columns, const size_t num_expected_rows)
 
void check_geo_gdal_point_tv_import ()
 
void check_geo_gdal_mpoly_tv_import ()
 

Variables

const char * create_table_geo
 

Function Documentation

void anonymous_namespace{ImportTest.cpp}::anonymous_namespace{ImportTest.cpp}::check_geo_gdal_mpoly_import ( )

Definition at line 1069 of file ImportTest.cpp.

Referenced by anonymous_namespace{ImportTest.cpp}::TEST_F().

1083  : public ::testing::Test {

+ Here is the caller graph for this function:

void anonymous_namespace{ImportTest.cpp}::anonymous_namespace{ImportTest.cpp}::check_geo_gdal_mpoly_tv_import ( )

Definition at line 1095 of file ImportTest.cpp.

Referenced by anonymous_namespace{ImportTest.cpp}::TEST_F().

1096  {
1097  EXPECT_TRUE(import_test_local("sharded_trip_data_9.csv", 100, 1.0));
1098 }
1099 
1100 const char* create_table_trips_dict_sharded_text = R"( CREATE TABLE trips ( id INTEGER, medallion TEXT ENCODING DICT, hack_license TEXT ENCODING DICT,
bool import_test_local(const string &filename, const int64_t cnt, const double avg)
Definition: ImportTest.cpp:163
const char * create_table_trips_dict_sharded_text
Definition: ImportTest.cpp:991

+ Here is the caller graph for this function:

void anonymous_namespace{ImportTest.cpp}::anonymous_namespace{ImportTest.cpp}::check_geo_gdal_point_import ( )

Definition at line 1059 of file ImportTest.cpp.

1083  : public ::testing::Test {
void anonymous_namespace{ImportTest.cpp}::anonymous_namespace{ImportTest.cpp}::check_geo_gdal_point_tv_import ( )

Definition at line 1086 of file ImportTest.cpp.

1090  {
1091  ASSERT_NO_THROW(run_ddl_statement("drop table trips;"););
1092  ASSERT_NO_THROW(run_ddl_statement("drop table if exists geo;"););
1093  }
void run_ddl_statement(std::string ddl)
void anonymous_namespace{ImportTest.cpp}::anonymous_namespace{ImportTest.cpp}::check_geo_import ( )

Definition at line 1030 of file ImportTest.cpp.

References CHECK_EQ, and anonymous_namespace{AlterColumnTest.cpp}::run_query().

1032  {
1033  EXPECT_TRUE(import_test_local("trip_data_9.bz2", 100, 1.0));
1034 }
1035 
1036 TEST_F(ImportTest, One_tar_with_many_csv_files) {
1037  EXPECT_TRUE(import_test_local("trip_data.tar", 1000, 1.0));
1038 }
1039 
1040 TEST_F(ImportTest, One_tgz_with_many_csv_files) {
1041  EXPECT_TRUE(import_test_local("trip_data.tgz", 100000, 1.0));
1042 }
1043 
1044 TEST_F(ImportTest, One_rar_with_many_csv_files) {
1045  EXPECT_TRUE(import_test_local("trip_data.rar", 1000, 1.0));
1046 }
1047 
1048 TEST_F(ImportTest, One_zip_with_many_csv_files) {
1049  EXPECT_TRUE(import_test_local("trip_data.zip", 1000, 1.0));
1050 }
1051 
1052 TEST_F(ImportTest, One_7z_with_many_csv_files) {
1053  EXPECT_TRUE(import_test_local("trip_data.7z", 1000, 1.0));
1054 }
1055 
1056 TEST_F(ImportTest, One_tgz_with_many_csv_files_no_newline) {
1057  EXPECT_TRUE(import_test_local("trip_data_some_with_no_newline.tgz", 500, 1.0));
bool import_test_local(const string &filename, const int64_t cnt, const double avg)
Definition: ImportTest.cpp:163
TEST_F(AlterColumnTest, Add_column_with_default)

+ Here is the call graph for this function:

void anonymous_namespace{ImportTest.cpp}::anonymous_namespace{ImportTest.cpp}::check_geo_num_rows ( const std::string &  project_columns,
const size_t  num_expected_rows 
)

Definition at line 1080 of file ImportTest.cpp.

Referenced by anonymous_namespace{ImportTest.cpp}::TEST_F().

1083  : public ::testing::Test {
1084  protected:

+ Here is the caller graph for this function:

Variable Documentation

const char* anonymous_namespace{ImportTest.cpp}::anonymous_namespace{ImportTest.cpp}::create_table_geo
Initial value:
= R"( CREATE TABLE geospatial ( p1 POINT, l LINESTRING, poly POLYGON, mpoly MULTIPOLYGON, p2 POINT, p3 POINT, p4 POINT, trip_distance DOUBLE ) WITH (FRAGMENT_SIZE=65000000); )"

Definition at line 1028 of file ImportTest.cpp.