SQL functions for carrying out routine tasks.
More...
- See also
- For a brief overview of utility functions, see the module description Developer Database Functions.
◆ __internal_get_col_names_except_dep_variable()
varchar __internal_get_col_names_except_dep_variable |
( |
varchar |
source_table, |
|
|
varchar |
dependent_varname |
|
) |
| |
◆ __to_char()
text __to_char |
( |
anyelement |
val | ) |
|
- Parameters
-
val | A value with any specific type. |
- Returns
- The text format string for the value.
- Note
- Greenplum doesn't support bit/boolean to text casting.
◆ __unique_string()
varchar __unique_string |
( |
| ) |
|
◆ _final_mode()
float8 _final_mode |
( |
float8 |
[] | ) |
|
◆ _gen_state()
set<_grp_state_type> _gen_state |
( |
text [] |
grp_key, |
|
|
integer [] |
iteration, |
|
|
float8 [] |
state |
|
) |
| |
◆ _string_to_array()
varchar [] _string_to_array |
( |
varchar |
s | ) |
|
◆ assert()
void assert |
( |
boolean |
condition, |
|
|
varchar |
msg |
|
) |
| |
◆ bool_to_text()
text bool_to_text |
( |
boolean |
| ) |
|
◆ bytea8in()
bytea8 bytea8in |
( |
cstring |
| ) |
|
◆ bytea8out()
cstring bytea8out |
( |
bytea8 |
| ) |
|
◆ bytea8recv()
bytea8 bytea8recv |
( |
internal |
| ) |
|
◆ bytea8send()
bytea bytea8send |
( |
bytea8 |
| ) |
|
◆ check_if_col_exists()
boolean check_if_col_exists |
( |
text |
source_table, |
|
|
text |
column_name |
|
) |
| |
- Parameters
-
source_table | Source table |
column_name | Column name in the table |
- Returns
TRUE
if it exsists and FALSE if not
◆ check_if_raises_error()
boolean check_if_raises_error |
( |
text |
sql | ) |
|
- Parameters
-
- Returns
TRUE
if an exception is raised while executing sql
, FALSE
otherwise.
◆ cleanup_madlib_temp_tables()
void cleanup_madlib_temp_tables |
( |
text |
target_schema | ) |
|
- Parameters
-
target_schema | TEXT. The schema that takes affect. |
◆ cleanup_madlib_temp_tables_script()
text cleanup_madlib_temp_tables_script |
( |
text |
target_schema | ) |
|
◆ create_schema_pg_temp()
void create_schema_pg_temp |
( |
| ) |
|
◆ isnan()
boolean isnan |
( |
float8 |
number | ) |
|
This function exists for portability. Some DBMSs like PostgreSQL treat floating-point numbers as fully ordered – contrary to IEEE 754. (See, e.g., the PostgreSQL documentation. For portability, MADlib code should not make use of such "features" directly, but only use isnan() instead.
- Parameters
-
- Returns
TRUE
if number
is NaN
, FALSE
otherwise
◆ mode()
aggregate float8 mode |
( |
float8 |
| ) |
|
◆ noop()
◆ relative_error() [1/2]
float8 relative_error |
( |
float8 |
approx, |
|
|
float8 |
value |
|
) |
| |
◆ relative_error() [2/2]
float8 relative_error |
( |
float8 [] |
approx, |
|
|
float8 [] |
value |
|
) |
| |
◆ version()
- Returns
- Summary of MADlib build information, consisting of MADlib version, git revision, cmake configuration time, build type, build system, C compiler, and C++ compiler