Rename cdb_random_seeds as 'internal'

This commit is contained in:
Javier Goizueta 2016-02-18 16:10:34 +01:00
parent f22b8334e0
commit 0742e3f72a
3 changed files with 10 additions and 9 deletions

View File

@ -1,7 +1,8 @@
-- Internal function.
-- Set the seeds of the RNGs (Random Number Generators)
-- used internally.
CREATE OR REPLACE FUNCTION
cdb_random_seeds (seed_value INTEGER) RETURNS VOID
_cdb_random_seeds (seed_value INTEGER) RETURNS VOID
AS $$
from crankshaft import random_seeds
random_seeds.set_random_seeds(seed_value)

View File

@ -113,9 +113,9 @@ INSERT INTO ppoints2 VALUES
-- Moral functions perform some nondeterministic computations
-- (to estimate the significance); we will set the seeds for the RNGs
-- that affect those results to have repeateble results
SELECT cdb_crankshaft.cdb_random_seeds(1234);
cdb_random_seeds
------------------
SELECT cdb_crankshaft._cdb_random_seeds(1234);
_cdb_random_seeds
-------------------
(1 row)
@ -186,9 +186,9 @@ CONTEXT: PL/Python function "cdb_moran_local"
52 | LL
(52 rows)
SELECT cdb_crankshaft.cdb_random_seeds(1234);
cdb_random_seeds
------------------
SELECT cdb_crankshaft._cdb_random_seeds(1234);
_cdb_random_seeds
-------------------
(1 row)

View File

@ -4,7 +4,7 @@
-- Moral functions perform some nondeterministic computations
-- (to estimate the significance); we will set the seeds for the RNGs
-- that affect those results to have repeateble results
SELECT cdb_crankshaft.cdb_random_seeds(1234);
SELECT cdb_crankshaft._cdb_random_seeds(1234);
SELECT ppoints.code, m.quads
FROM ppoints
@ -12,7 +12,7 @@ SELECT ppoints.code, m.quads
ON ppoints.cartodb_id = m.ids
ORDER BY ppoints.code;
SELECT cdb_crankshaft.cdb_random_seeds(1234);
SELECT cdb_crankshaft._cdb_random_seeds(1234);
SELECT ppoints2.code, m.quads
FROM ppoints2