How can select a column and do a TRANSFORM in Hive?

后端 未结 1 1630
臣服心动
臣服心动 2020-12-15 05:35

I was using TRANSFORM USING with Hive 0.8.1, and noticed that this is invalid syntax:

SELECT
    a,
    TRANSFORM(b, c) USING \'fake.py\' AS d,
         


        
相关标签:
1条回答
  • 2020-12-15 06:09

    Apparently this is not possible. The fake.py has to handle that as well, i.e. one must do

    SELECT
        TRANSFORM(a, b, c) USING 'fake.py' AS a, d
    FROM test_table;
    

    and make it so that fake.py does output 'a' as well.

    0 讨论(0)
提交回复
热议问题