Sha256: 0fdb9b5d12ff8a752d03c34dc7c5c4c44bf9d85d6be515a06fa5ec4566289cb7
Contents?: true
Size: 719 Bytes
Versions: 5
Compression:
Stored size: 719 Bytes
Contents
WITH files AS ( SELECT jsonb_array_elements(data->'files') FROM rubocops ), lines AS ( SELECT jsonb_array_elements(files)->>'file' as file, jsonb_array_elements(files)->'lines' as lines FROM files ), denormalized AS ( SELECT jsonb_array_elements(lines)->>'position' as position, jsonb_array_elements(lines)->>'status' as status, jsonb_array_elements(lines)->>'status_message' as status_message, jsonb_array_elements(lines)->>'cop' as cop, jsonb_array_elements(lines)->>'message' as message, jsonb_array_elements(lines)->>'full_line' as full_line, jsonb_array_elements(lines)->>'file_name' as file_name FROM lines ) select row_number() OVER () AS id, * from denormalized
Version data entries
5 entries across 5 versions & 1 rubygems