Comments (1)
Hey @dsmdavidSCIL! Thanks for asking this question, it's a good one, and I'll make a note to document this better for the future.
One design choice I made with lkml, is that you should be able to parse lkml and then serialize it back to its original form (with the exception of whitespace and comments, when using simple parsing). If we were to resolve the base view with refinements like you've described, we wouldn't be able to serialize it back to its original form because we would lose the information that baz
and bar
come from a refinement.
I want to avoid adding any of Looker's actual higher-level "understanding" of LookML into this parser. It's a slippery slope, and I want the parser to be firmly rooted in "converting LookML into a Python data structure that can be navigated and altered." Resolving refinements is something Looker should do, but I don't believe it's something this parser should do.
In this case, I recommend you write some code to resolve the refinements yourself as I believe it's out of scope for the way the parser is intended to function. If it's not possible to do that without changes to lkml, please let me know!
from lkml.
Related Issues (20)
- Update docstrings
- Cannot parse filter (correct LookML) HOT 7
- Whitespace sensitive parsing issue HOT 2
- Preceding comma in lists HOT 2
- lkml.dump deletes "name" key from dict HOT 6
- Add Sql Premable to parsing tree HOT 4
- new post-1.1.0 release? HOT 2
- Release New Version HOT 5
- Add back comments to parsed/dumped file
- Comments Are Dropped in the Vistor Method HOT 1
- How to generate SQL from lookerml? HOT 1
- whitespace sensitive parsing inside a query HOT 3
- Problem with override_constant parameter in remote_dependency/local_dependency HOT 2
- Space after dash in ALL_FIELDS explore fields HOT 1
- Support parsing the project manifest file
- Support parsing datagroup interval_trigger
- Parsing *.dashboard.lookml files HOT 4
- Multiline descriptions are parsed with `\n` characters HOT 1
- Multiple colons HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lkml.