Common Enum definitions for SQL processing.
Definition in file sqldefs.h.
Definition at line 460 of file sqldefs.h.
References BASE64_DECODE, BASE64_ENCODE, CONCAT, logger::FATAL, HASH, INITCAP, INVALID, JAROWINKLER_SIMILARITY, JSON_VALUE, LEVENSHTEIN_DISTANCE, LOG, LOWER, LPAD, LTRIM, OVERLAY, POSITION, REGEXP_COUNT, REGEXP_REPLACE, REGEXP_SUBSTR, REPEAT, REPLACE, REVERSE, RPAD, RTRIM, SPLIT_PART, SUBSTRING, TRIM, TRY_STRING_CAST, UPPER, URL_DECODE, and URL_ENCODE.
Referenced by RelAlgTranslator::translateStringOper().
461 if (func_name ==
"LOWER") {
464 if (func_name ==
"UPPER") {
467 if (func_name ==
"INITCAP") {
470 if (func_name ==
"REVERSE") {
473 if (func_name ==
"REPEAT") {
476 if (func_name ==
"||") {
479 if (func_name ==
"LPAD") {
482 if (func_name ==
"RPAD") {
485 if (func_name ==
"TRIM") {
488 if (func_name ==
"LTRIM") {
491 if (func_name ==
"RTRIM") {
494 if (func_name ==
"SUBSTRING") {
497 if (func_name ==
"OVERLAY") {
500 if (func_name ==
"REPLACE") {
503 if (func_name ==
"SPLIT_PART") {
506 if (func_name ==
"REGEXP_REPLACE") {
509 if (func_name ==
"REGEXP_SUBSTR") {
512 if (func_name ==
"REGEXP_MATCH") {
515 if (func_name ==
"REGEXP_COUNT") {
518 if (func_name ==
"JSON_VALUE") {
521 if (func_name ==
"BASE64_ENCODE") {
524 if (func_name ==
"BASE64_DECODE") {
527 if (func_name ==
"URL_ENCODE") {
530 if (func_name ==
"URL_DECODE") {
533 if (func_name ==
"TRY_CAST") {
536 if (func_name ==
"POSITION") {
539 if (func_name ==
"JAROWINKLER_SIMILARITY") {
542 if (func_name ==
"LEVENSHTEIN_DISTANCE") {
545 if (func_name ==
"HASH") {
548 LOG(
FATAL) <<
"Invalid string function " << func_name <<
".";
Definition at line 392 of file sqldefs.h.
References BASE64_DECODE, BASE64_ENCODE, CONCAT, logger::FATAL, HASH, INITCAP, INVALID, JAROWINKLER_SIMILARITY, JSON_VALUE, LEVENSHTEIN_DISTANCE, LOG, LOWER, LPAD, LTRIM, OVERLAY, POSITION, RCONCAT, REGEXP_COUNT, REGEXP_REPLACE, REGEXP_SUBSTR, REPEAT, REPLACE, REVERSE, RPAD, RTRIM, SPLIT_PART, SUBSTRING, TRIM, TRY_STRING_CAST, UPPER, URL_DECODE, and URL_ENCODE.
395 return os <<
"LOWER";
397 return os <<
"UPPER";
399 return os <<
"INITCAP";
401 return os <<
"REVERSE";
403 return os <<
"REPEAT";
405 return os <<
"CONCAT";
407 return os <<
"RCONCAT";
415 return os <<
"LTRIM";
417 return os <<
"RTRIM";
419 return os <<
"SUBSTRING";
421 return os <<
"OVERLAY";
423 return os <<
"REPLACE";
425 return os <<
"SPLIT_PART";
427 return os <<
"REGEXP_REPLACE";
429 return os <<
"REGEXP_SUBSTR";
431 return os <<
"REGEXP_COUNT";
433 return os <<
"JSON_VALUE";
435 return os <<
"BASE64_ENCODE";
437 return os <<
"BASE64_DECODE";
439 return os <<
"URL_ENCODE";
441 return os <<
"URL_DECODE";
443 return os <<
"TRY_STRING_CAST";
445 return os <<
"POSITION";
447 return os <<
"JAROWINKLER_SIMILARITY";
449 return os <<
"LEVENSHTEIN_DISTANCE";
453 return os <<
"INVALID";
455 LOG(
FATAL) <<
"Invalid string operation";
457 return os <<
"INVALID";
std::string toString |
( |
const SQLOps & |
op | ) |
|
|
inline |
Definition at line 331 of file sqldefs.h.
References logger::FATAL, kAND, kARRAY_AT, kBBOX_INTERSECT, kBW_EQ, kCAST, kDIVIDE, kENCODE_TEXT, kEQ, kEXISTS, kFUNCTION, kGE, kGT, kIN, kINVALID_OP, kISNOTNULL, kISNULL, kLE, kLT, kMINUS, kMODULO, kMULTIPLY, kNE, kNOT, kOR, kPLUS, kUMINUS, kUNNEST, and LOG.
382 return "BOUNDING_BOX_INTERSECT";
384 return "ENCODE_TEXT";
388 LOG(
FATAL) <<
"Invalid operation kind: " << op;