1

let's say I have a hive table that has only one column of type array<int>.

I can insert into that table by

INSERT INTO TABLE tablename SELECT array(1);

but what if I want to insert an empty int array into that column? Didn't figure out. Tried with array(), [], array<int> and array<int>()

1 Answer 1

2

this works for me

collect_set(CAST(NULL AS INT))
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.