github.com/turbot/steampipe@v1.7.0-rc.0.0.20240517123944-7cef272d4458/tests/manual_testing/node_reuse/base_with_param_default/dashboard.sp (about)

     1  
     2  dashboard "base_with" {
     3  #  with "w1" {
     4  #    sql = "select 'dashboard foo'"
     5  #  }
     6  
     7    table {
     8      base = table.t1
     9    }
    10  #  table {
    11  #    title = "nested level table"
    12  #    base = table.t1
    13  #        args = {
    14  #          "p1": with.w1.rows[0]
    15  #        }
    16  #  }
    17  }
    18  
    19  
    20  table "t1"{
    21    title = "top level table"
    22    with "w1" {
    23      sql = "select 'foo'"
    24    }
    25    sql = "select $1 as c1"
    26    param "p1" {
    27      default = with.w1.rows[0]
    28    }
    29  }