[postgis-tickets] [PostGIS] #5498: ERROR: function st_approxquantile(raster, double precision) is not unique

PostGIS trac at osgeo.org
Wed Aug 30 07:29:22 PDT 2023


#5498: ERROR:  function st_approxquantile(raster, double precision) is not unique
---------------------+----------------------------
  Reporter:  strk    |      Owner:  robe
      Type:  defect  |     Status:  new
  Priority:  medium  |  Milestone:  PostGIS 3.0.10
 Component:  raster  |    Version:  master
Resolution:          |   Keywords:
---------------------+----------------------------
Comment (by strk):

 Upon installing current master branch (3.5.0dev) there are 9 signatures of
 ST_ApproxQuantiles and two conflicting ones are:

 {{{
 -- Cannot be strict as "quantiles" can be NULL
 CREATE OR REPLACE FUNCTION st_approxquantile(
   rast raster,
   sample_percent double precision,
   quantiles double precision[] DEFAULT NULL,
   OUT quantile double precision,
   OUT value double precision
 )
 }}}

 And
 {{{
 CREATE OR REPLACE FUNCTION st_approxquantile(rast raster, quantile double
 precision)
 }}}

 The two functions even have a different return: the first one returns
 SETOF record, the second one returns a double.
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5498#comment:2>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list