Skip to content

Commit

Permalink
Fixed formatting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pdabre12 authored and Pratik Joseph Dabre committed Jun 25, 2024
1 parent df192c3 commit 8734eef
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ add_library(presto_tpcds_connector OBJECT tpcds/TpcdsConnector.cpp)
target_link_libraries(presto_tpcds_connector velox_connector tpcds_gen fmt::fmt)

# if(${VELOX_ENABLE_TPCDS_CONNECTOR}) # make this change to a presto flag
add_subdirectory(tpcds)
add_subdirectory(tpcds)
# endif()
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ DSDGenIterator::DSDGenIterator(
double scaleFactor,
vector_size_t parallel,
vector_size_t child) {

table_defs.resize(DBGEN_VERSION); // there are 24 TPC-DS tables
VELOX_CHECK_GE(scaleFactor, 0, "Tpch scale factor must be non-negative");
dsdgenCtx_.scaleFactor = scaleFactor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -479,35 +479,12 @@ RowTypePtr getTableSchema(Table table) {
"s_tax_precentage",
},
{
INTEGER(),
VARCHAR(),
DATE(),
DATE(),
INTEGER(),
VARCHAR(),
INTEGER(),
INTEGER(),
VARCHAR(),
VARCHAR(),
INTEGER(),
VARCHAR(),
VARCHAR(),
VARCHAR(),
INTEGER(),
VARCHAR(),
INTEGER(),
VARCHAR(),
VARCHAR(),
VARCHAR(),
VARCHAR(),
VARCHAR(),
VARCHAR(),
VARCHAR(),
VARCHAR(),
VARCHAR(),
VARCHAR(),
DECIMAL(5, 2),
DECIMAL(5, 2),
INTEGER(), VARCHAR(), DATE(), DATE(), INTEGER(),
VARCHAR(), INTEGER(), INTEGER(), VARCHAR(), VARCHAR(),
INTEGER(), VARCHAR(), VARCHAR(), VARCHAR(), INTEGER(),
VARCHAR(), INTEGER(), VARCHAR(), VARCHAR(), VARCHAR(),
VARCHAR(), VARCHAR(), VARCHAR(), VARCHAR(), VARCHAR(),
VARCHAR(), VARCHAR(), DECIMAL(5, 2), DECIMAL(5, 2),
});
return type;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -446,11 +446,10 @@ int set_option(const char* name, const char* param) {
// switch (o->flags & TYPE_MASK) {
// case OPT_FLG:
// if ((param && (*param == 'Y' || *param == 'Y' || *param ==
//OPTION_START)) || (param == NULL)) { if (o->action) if (o->action((char
//*)o->name, NULL) < 0) usage((char *)o->name, "Cannot process option");
// set_flg(name);
// } else
// clr_flg(name);
// OPTION_START)) || (param == NULL)) { if (o->action)
// if (o->action((char
//*)o->name, NULL) < 0) usage((char
//*)o->name, "Cannot process option"); set_flg(name); } else clr_flg(name);
// res = 1;
// break;
// case OPT_INT:
Expand Down Expand Up @@ -483,7 +482,7 @@ int set_option(const char* name, const char* param) {
// break;
// default:
// fprintf(stderr, "Invalid option/type (%d/%s)\n", o->flags &
//TYPE_MASK, o->name); exit(0); break;
// TYPE_MASK, o->name); exit(0); break;
// }
//
// o->flags |= OPT_SET; /* marked as set */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@

#include "presto_cpp/main/types/PrestoToVeloxConnector.h"
#include <velox/type/fbhive/HiveTypeParser.h>
#include "presto_cpp/main/connectors/tpcds/TpcdsConnector.h"
#include "presto_cpp/main/connectors/tpcds/TpcdsConnectorSplit.h"
#include "velox/connectors/hive/HiveConnector.h"
#include "velox/connectors/hive/HiveConnectorSplit.h"
#include "velox/connectors/hive/HiveDataSink.h"
#include "velox/connectors/hive/TableHandle.h"
#include "velox/connectors/hive/iceberg/IcebergDeleteFile.h"
#include "velox/connectors/hive/iceberg/IcebergSplit.h"
#include "presto_cpp/main/connectors/tpcds/TpcdsConnector.h"
#include "presto_cpp/main/connectors/tpcds/TpcdsConnectorSplit.h"
#include "velox/connectors/tpch/TpchConnector.h"
#include "velox/connectors/tpch/TpchConnectorSplit.h"

Expand Down

0 comments on commit 8734eef

Please sign in to comment.