Github user viirya commented on the pull request:

    https://github.com/apache/spark/pull/4014#issuecomment-71957621
  
    [Schema-less Map-reduce 
Scripts](https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Transform#LanguageManualTransform-Schema-lessMap-reduceScripts)
 is a feature of Hive transform syntax. That is there is no `AS` clause after 
`USING my_script`. Hive assumes that the script output contains two columns: 
`key` and `value`. The example SQL looks like:
    
    `SELECT TRANSFORM (key, value) USING 'cat' FROM src`
    
    Custom delimiter is defined by `ROW FORMAT` clause such as:
    
    `SELECT TRANSFORM (key) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\002' 
USING 'cat' AS (tKey) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\002' FROM src`
    
    So you can use field delimiters other than default `\t`.



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to