Slide 22
Slide 22 text
‹#›
© Cloudera, Inc. All rights reserved.
CREATE TABLE IF NOT EXISTS passing_game_sess AS
SELECT a.psr as player, b.gid,
collect_all(named_struct(
'pid', a.pid,
'yds', a.yds,
'intcpt', cast(e.pid is not null as int),
'td', cast(coalesce(c.pts, 0) as int),
'conv', cast(d.pid is not null as int))) as passes
FROM football.pass …other stuff…
How do we make a (Hive) Supernova table?