33
33
#include " function/old_engine_string_functions.h"
34
34
#include " function/timestamp_functions.h"
35
35
#include " index/index_factory.h"
36
- #include " planner/seq_scan_plan.h"
37
- #include " planner/insert_plan.h"
38
36
#include " settings/settings_manager.h"
39
37
#include " storage/storage_manager.h"
40
38
#include " storage/table_factory.h"
41
- #include " storage/tile.h"
42
39
#include " type/ephemeral_pool.h"
43
40
44
41
namespace peloton {
@@ -957,7 +954,6 @@ ResultType Catalog::AddColumn(
957
954
return ResultType::SUCCESS;
958
955
}
959
956
960
- <<<<<<< bc9252fda7aeecaeb325a11f30bc23a27569f932
961
957
ResultType Catalog::DropColumn (
962
958
UNUSED_ATTRIBUTE const std::string &database_name,
963
959
UNUSED_ATTRIBUTE const std::string &table_name,
@@ -971,13 +967,6 @@ ResultType Catalog::ChangeColumnName(const std::string &database_name,
971
967
const std::vector<std::string> &old_names,
972
968
const std::vector<std::string> &names,
973
969
concurrency::TransactionContext *txn) {
974
- =======
975
- ResultType ChangeColumnName (const std::string &database_name,
976
- const std::string &table_name,
977
- const std::vector<std::string> &old_names,
978
- const std::vector<std::string> &names,
979
- concurrency::TransactionContext *txn) {
980
- >>>>>>> add change column catalog
981
970
if (txn == nullptr ) {
982
971
throw CatalogException (" Change Column requires transaction." );
983
972
}
@@ -986,12 +975,8 @@ ResultType ChangeColumnName(const std::string &database_name,
986
975
throw CatalogException (" No names are given." );
987
976
}
988
977
989
- <<<<<<< bc9252fda7aeecaeb325a11f30bc23a27569f932
990
978
LOG_TRACE (" Change Column Name %s to %s" , old_names[0 ].c_str (),
991
979
names[0 ].c_str ());
992
- =======
993
- LOG_TRACE (" Change Column Name %s to %s" , old_names[0 ], names[0 ]);
994
- >>>>>>> add change column catalog
995
980
996
981
try {
997
982
// Get table from the name
@@ -1310,11 +1295,11 @@ void Catalog::InitializeFunctions() {
1310
1295
/* *
1311
1296
* decimal functions
1312
1297
*/
1313
- AddBuiltinFunction (" abs " , {type::TypeId::DECIMAL}, type::TypeId::DECIMAL,
1314
- internal_lang, " Abs " ,
1315
- function::BuiltInFuncType{
1316
- OperatorId::Abs, function::DecimalFunctions::_Abs},
1317
- txn);
1298
+ AddBuiltinFunction (
1299
+ " abs " , {type::TypeId::DECIMAL}, type::TypeId::DECIMAL, internal_lang ,
1300
+ " Abs " , function::BuiltInFuncType{OperatorId::Abs,
1301
+ function::DecimalFunctions::_Abs},
1302
+ txn);
1318
1303
AddBuiltinFunction (
1319
1304
" sqrt" , {type::TypeId::TINYINT}, type::TypeId::DECIMAL, internal_lang,
1320
1305
" Sqrt" ,
@@ -1355,29 +1340,33 @@ void Catalog::InitializeFunctions() {
1355
1340
/* *
1356
1341
* integer functions
1357
1342
*/
1358
- AddBuiltinFunction (" abs" , {type::TypeId::TINYINT}, type::TypeId::TINYINT,
1359
- internal_lang, " Abs" ,
1360
- function::BuiltInFuncType{
1361
- OperatorId::Abs, function::DecimalFunctions::_Abs},
1362
- txn);
1343
+ AddBuiltinFunction (
1344
+ " abs" , {type::TypeId::TINYINT}, type::TypeId::TINYINT,
1345
+ internal_lang, " Abs" ,
1346
+ function::BuiltInFuncType{OperatorId::Abs,
1347
+ function::DecimalFunctions::_Abs},
1348
+ txn);
1363
1349
1364
- AddBuiltinFunction (" abs" , {type::TypeId::SMALLINT},
1365
- type::TypeId::SMALLINT, internal_lang, " Abs" ,
1366
- function::BuiltInFuncType{
1367
- OperatorId::Abs, function::DecimalFunctions::_Abs},
1368
- txn);
1350
+ AddBuiltinFunction (
1351
+ " abs" , {type::TypeId::SMALLINT}, type::TypeId::SMALLINT,
1352
+ internal_lang, " Abs" ,
1353
+ function::BuiltInFuncType{OperatorId::Abs,
1354
+ function::DecimalFunctions::_Abs},
1355
+ txn);
1369
1356
1370
- AddBuiltinFunction (" abs" , {type::TypeId::INTEGER}, type::TypeId::INTEGER,
1371
- internal_lang, " Abs" ,
1372
- function::BuiltInFuncType{
1373
- OperatorId::Abs, function::DecimalFunctions::_Abs},
1374
- txn);
1357
+ AddBuiltinFunction (
1358
+ " abs" , {type::TypeId::INTEGER}, type::TypeId::INTEGER,
1359
+ internal_lang, " Abs" ,
1360
+ function::BuiltInFuncType{OperatorId::Abs,
1361
+ function::DecimalFunctions::_Abs},
1362
+ txn);
1375
1363
1376
- AddBuiltinFunction (" abs" , {type::TypeId::BIGINT}, type::TypeId::BIGINT,
1377
- internal_lang, " Abs" ,
1378
- function::BuiltInFuncType{
1379
- OperatorId::Abs, function::DecimalFunctions::_Abs},
1380
- txn);
1364
+ AddBuiltinFunction (
1365
+ " abs" , {type::TypeId::BIGINT}, type::TypeId::BIGINT,
1366
+ internal_lang, " Abs" ,
1367
+ function::BuiltInFuncType{OperatorId::Abs,
1368
+ function::DecimalFunctions::_Abs},
1369
+ txn);
1381
1370
1382
1371
AddBuiltinFunction (
1383
1372
" floor" , {type::TypeId::INTEGER}, type::TypeId::DECIMAL,
0 commit comments