# Commenting the view as table is not supported by PDE
# view: facts_prod_recent_placements_by_track_playlist_country_feed_rollup {
#   sql_table_name: facts.prod.RECENT_PLACEMENTS_BY_TRACK_PLAYLIST_COUNTRY_FEED_ROLLUP_DBT;;

#   dimension: pseudo_primary {
#     type: string
#     sql: ${TABLE}.track_id || ${TABLE}.playlist_id || ${TABLE}.feed_id || ${TABLE}.country ;;
#     primary_key: yes
#   }

#   dimension: track_id {
#     type: number
#     sql: ${TABLE}.track_id ;;
#   }

#   dimension: isrc {
#     type: string
#     sql: ${TABLE}.isrc ;;
#   }

#   dimension: label_id {
#     type: number
#     sql: ${TABLE}.label_id ;;
#   }

#   dimension: store_id {
#     type: number
#     sql: ${TABLE}.store_id ;;
#   }

#   dimension: playlist_id {
#     type: string
#     sql: ${TABLE}.playlist_id ;;
#   }

#   dimension: country {
#     type: string
#     sql: ${TABLE}.country ;;
#   }

#   dimension_group: added {
#     type: time
#     sql: ${TABLE}.added ;;
#     timeframes: [date,week,month, hour]
#   }

#   measure: count_placements {
#     type: count
#     drill_fields: [facts_prod_dim_track.isrc, facts_prod_dim_track.track_name, facts_prod_dim_playlist.playlistname]
#   }

#   measure: total_streams {
#     label: "Weekly Streams from Playlist"
#     description: "Shows the weekly streams an Orchard track has recieved from a playlist globally"
#     type: max
#     sql: ${TABLE}.total_streams ;;
#   }

#   }
