empty_iterator.sql 392 B

1234567891011121314151617181920
  1. /* syntax version 1 */
  2. /* postgres can not */
  3. USE plato;
  4. $train =
  5. SELECT * FROM Input WHERE key > "900" GROUP BY value;
  6. $method = ($stream) -> {
  7. $func = Callable(
  8. CallableType(0, TypeOf($stream), TypeOf($stream)),
  9. ($_1) -> { return $_1; }
  10. );
  11. RETURN $func($stream);
  12. };
  13. $prediction =
  14. PROCESS $train
  15. USING $method(TableRows());
  16. SELECT * FROM $prediction;