Comments (4)
@fostermh any idea how to handle that. I'm not 100% sure but it seems like we may have to define a method to cast those ctd.qartod_flag_type to integers?
from hakai-datasets.
ctd.qartod_flag_type is a domain of integers so try casting the 'smallint' part to 'int' If you have an example sql query I can confirm how it should be writen.
from hakai-datasets.
Based on some exchanges with @fostermh, _flag_level_1
columns in the hakai databases are saved as ENUM of strings:
Running the following queries gives us the assoicated errors:
SELECT x.* FROM ctd.ctd_data x
where salinity_flag_level_1 ==1
SQL Error [42883]: ERROR: operator does not exist: qartod_flag_type == integer
Hint: No operator matches the given name and argument types. You might need to add explicit type casts.
Position: 60
SELECT x.* FROM ctd.ctd_data x
where salinity_flag_level_1 =1
QL Error [42883]: ERROR: operator does not exist: qartod_flag_type = integer
Hint: No operator matches the given name and argument types. You might need to add explicit type casts.
Position: 60
Error position: line: 2 pos: 59
This query runs successfully
SELECT x.* FROM ctd.ctd_data x
where salinity_flag_level_1 = '1'
from hakai-datasets.
Changes were applied to the hakaidev database. A local test of a ERDDAP dataset was tested sucessfully as well as a test to the "ctd/process/flags/json" endpoint. All worked sucessfully.
Those changes will be made available in the next release to the hakai database. We can close the issue and reopen if needed.
from hakai-datasets.
Related Issues (20)
- ...
- Algae Explorer Sentinel datasets daily and 8 day datasets HOT 1
- BamfieldBoL remote station new dataset HOT 6
- Decide which repo will be base repo for Hakai Data Mob. tasks and issues HOT 5
- [Issue]: SewardBoL view is not available and is breaking the creation of the different erddap views. HOT 1
- KC Buoy DO data is missing HOT 2
- Hakai Goose server is unstable HOT 18
- Add Hakai ERDDAP uptime check link HOT 3
- Deploy ERDDAP through Caprover HOT 4
- Rename Hakai ERDDAP repository? HOT 5
- Which email address should Hakai ERDDAP admin points to HOT 21
- Tracking downloads with plausible and ERDDAP HOT 17
- Maintain Datasets Files between the different servers HOT 2
- Vulnerability with postgresql driver HOT 7
- ERDDAP with NGINX HOT 1
- new erddap.hakai.app server requires sudo docker HOT 3
- hakai server catalogue.hakai.org docker v1.40 HOT 2
- HAKAI Nature Trust CTD Research dataset
- Historical Ocean Acidification Datasets Future HOT 1
- catalogue.hakai.org failed to upgrade to ERDDAP 2.23
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 hakai-datasets.