process_streaming_inline_bash.sql 333 B

1234567891011121314
  1. /* syntax version 1 */
  2. /* postgres can not */
  3. -- not supported on windows
  4. $script = @@
  5. #!/bin/bash
  6. cat - | grep $1 | head -n 3 | grep [234]
  7. @@;
  8. $input = (
  9. SELECT String::JoinFromList(AsList(key, subkey, value), ",") AS Data FROM plato.Input1
  10. );
  11. PROCESS $input USING Streaming::ProcessInline(TableRows(), $script, AsList("bar"));