lookml_model_explore doesn't pull correct view_name

I have one of my explores built in the following way:

explore: test {
    view_name: btest
}

When running lookml_model_explore the output is the following:

name: "test",
scopes: ["test", "btest"],
view_name: "test"

Questions:

  1. Why view_name doesn’t reflect the code? (ie. btest)
  2. Why is the same explore mentioned twice in scopes, by its name and alias?
1 1 151
1 REPLY 1

This is still a problem, neither the view nor the scope field actually returns the name of the view associated with a dimension. Adding a from field to an explore is a great example of this.