Project

General

Profile

« Previous | Next » 

Revision 10381

inputs/.../: translated multi-column filters with _avg() to postprocessing derived columns, using the steps at wiki.vegpath.org/Adding_new-style_import_to_a_datasource#Translating-filters-to-postprocessing-derived-columns

View differences:

postprocess.sql
5 5
SELECT mk_derived_col((:table_str, 'occurrenceRemarks'),
6 6
$$CASE WHEN "Locality_Description" IS NOT NULL THEN "Notes_Plant" END$$)
7 7
; -- runtime: 0.3 s ("Time: 311.190 ms") @starscream
8

  
9
SELECT mk_derived_col((:table_str, 'diameterBreastHeight_cm'), $$_avg("DBH_Min"   , "DBH_Max"   )$$); -- runtime:  s ("Time:  ms") @starscream
10
SELECT mk_derived_col((:table_str, 'height_m'),                $$_avg("Height_Min", "Height_Max")$$); -- runtime:  s ("Time:  ms") @starscream

Also available in: Unified diff