Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 380 Bytes

9-CustomScripts.md

File metadata and controls

25 lines (22 loc) · 380 Bytes

Custom Scripts

  • Let's first try using a simple cat map-side script

SELECT
   TRANSFORM(name) USING '/bin/cat' as name
FROM
   airports
LIMIT 10

  • Now, let's do something more complicated (still as a custom map script)

SELECT
   TRANSFORM(name) USING "/bin/sed -e 's/\s//g'" as name
FROM
   airports
LIMIT 10