Comments (4)
Thanks for the quick response! I can report that the latest version does allow us to successfully run time-based queries on our data, and we get entirely sensible results. Also tried a compound filter with timestamp AND 'Location', and it worked perfectly as well.
Towards answering our own Bonus Question… Hacking odata-influxdb to support now()
feels yucky. And I don't expect pyslet will have stable support for OData v4 anytime soon. I think in our specific application we can use Nginx or something similar to wire up URL handling such that we can effectively insert/expand now()
in a query URL. That should get us where we want to go fairly painlessly.
from odata-influxdb.
Thanks for this, @soundstripe has been working on a pull request for this type of thing, so I'll leave it to him to comment on how he's going about that
and yeah, good point for the bonus question, I'd have to do a bit more reading about how to best handle that in odata - in general, the broader question of 'what best-practices there are for working with time-series data through odata' is something that I should look into more thoroughly, as i have found that quering a lot of data can be slow (since it constructs and downloads all the metadata for each row)
from odata-influxdb.
There's a few example queries in the README now.
The queries were designed according to InfluxDB 1.2 specs, but I believe they will work for 1.1 with no issues.
I have added to the supported filter operators, and the code to add more is pretty simple if you find some you need to be missing.
As for the Bonus Question, there are query functions in the OData spec (such as "now()") but it doesn't look like pyslet implements these. I think it would be possible to put this in this project, but would be better as a contribution to pyslet (toward its existing issue to support OData v4 etc).
from odata-influxdb.
Closing after fixes from #18
from odata-influxdb.
Related Issues (15)
- Problem loading data with fractional time stamps HOT 2
- Embedded service URL different from server URL HOT 4
- Not seeing Grouping statements in Influx queries HOT 5
- All fields across all measurements advertised for each measurement? HOT 2
- Methods renamed in pyslet.odata2.client and influxdb.client HOT 1
- Werkzeug dependency not mentioned HOT 1
- KeyError: u'boolean' HOT 3
- Any Python3 supports for this project in the future? HOT 4
- Handle spaces in key/field names
- Reflect nested structure of influx database -> measurement HOT 2
- Implement authentication HOT 1
- Add more tests HOT 1
- We're trying to integrate InfluxDB with Power BI. Do the errors we're seeing mean OData v3 / v4 is required? HOT 10
- Handle spaces in influxdb measurement names HOT 6
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 odata-influxdb.