Looks metrics_daily_gas permission is not properly configured:
select * from mdao_near.metrics_daily_gas limit 100
-- SQL compilation error: Failure during expansion of view 'METRICS_DAILY_GAS': SQL compilation error: Object 'MDAO_NEAR.PROD.METRICS_DAILY_GAS' does not exist or not authorized.