Comments (6)
from lter-core-metabase.
SiteName is required, so there should always be at least the site name in geographicdescription. Therefore, I think the view should have something like an if-else statement that says,
If SiteDesc isn't null, then use SiteName: SiteDesc; otherwise, use SiteName.
from lter-core-metabase.
Not if/else. Use coalesce. There are complex situations that do warrant if/else but this is not one of them. The coalesce() function is built for this purpose.
from lter-core-metabase.
So then, how about this:
COALESCE(s."SiteName" || ': ' || s."SiteDesc", s."SiteName") AS geographicdescription;
from lter-core-metabase.
--or
s."SiteName" || coalesce(': '||s."SiteDesc",'');
-- if that is the output you want, SBC style. For MCR, I'll go with the following
coalesce(s."SiteDesc",s."SiteName");
-- since in my instance my SiteNames are redundant to the first bit of the description. That is, all my descriptions begin with something like 'LTER 1 is...' so putting 'LTER 1: LTER 1 is...' is bad. YMMV.
from lter-core-metabase.
In the official repo, will you please put one or the other or your suggested solutions? Either one is better than what is currently there. We can explain how those fields are used in the documentation.
from lter-core-metabase.
Related Issues (20)
- The keywords EML view (mb2eml_r.vw_eml_keyword) joins all instances of a keyword, regardless of ThesaurusID HOT 4
- Update docs to indicate which tables are required
- remove public schema from OBF HOT 1
- change "DataSetMethodSteps" table name to "DataSetMethod" HOT 3
- implement boilerplate `SubtractFromID` idea to allow same IDs on different scope HOT 10
- compare original eml to MetaEgres eml from mb
- diff OBF from Gastil's mac mini to OBF from BLE HOT 2
- dataset_archive_id not matching DataSetID in example rows
- suggest ListTaxonomicProviders rename EMLTaxonomicProviders HOT 2
- suggested list of taxonomic ID providers HOT 3
- add "docbook" to be an abstract and method description type HOT 4
- ListSites.AltitudeUnits char limit too short HOT 4
- varchar limit temporal_type column in pkg_sort is too short
- FK in DataSetAttributeAnnotation references wrong columns in DataSetAttributes HOT 2
- support citations for datasets HOT 3
- content for a scratch table of EML 2.2 units
- use ListMissingCodes for enumeration codes as well HOT 14
- Patch 41 causes problems in an EML view (mb2eml_r.vw_eml_attributecodedefinition) HOT 6
- README.md wrong url for quick overview metabase schema hyperlink ? HOT 2
- The keywords view (mb2eml_r.vw_eml_keyword) merges in all instances of a keyword, regardless of ThesaurusID HOT 1
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 lter-core-metabase.