Comments (3)
- I'll do it.
- Could you do it by passing in a defaultdict?
- I'll think about this when I get back from vacation.
I'll also add support for epochs (not sure about the dateutil format though, will have to see which timestamp format feels better)
Thanks for the ideas!
from pql.
- Excellent!
- I don't believe this will work because resolve_field in SchemaAwareOperatorMap checks to see if the field is in the map with "in". Also, I am using python 2.6 (shame on me).
- The dateutil parser parses a bunch of various string date formats. Very similar to what you have done with your date parser. I was just lazy, I haven't compared the two.
If you would like me to work on a patch for anything let me know. I'd be glad to help out.
Cheers,
Lew
P.S. Enjoy your vacation!
from pql.
I ended up doing the following:
- 'find' is just a shortcut for the trivial use cases. perhaps advanced users should use parsers themselves. I kinda prefer leaving it like it, not sure.
- It now does a getitem so defaultdict will work
- replaced to dateutil and added your epoch field.
Thanks again!
from pql.
Related Issues (20)
- Add support for now()
- Add support for hyphenated attributes HOT 2
- Error in exception handler HOT 2
- Validate number of arguments passed to functions
- Merge $and queries when possible
- match should support getting a query as string and not a mongo query as dict
- Reduce $and to a regular query when possible
- First example does not work HOT 5
- Want PQL fromdate and todate structure. HOT 2
- Bug on $near query HOT 1
- How to convert mongo query back to sql ?
- PQL does not support input of numbers of symbols HOT 1
- Support True, False and None in codition as python
- $gt and $lt on shared term
- Compatibility with Python 3.8 HOT 2
- Use cerberus for schema validation HOT 1
- Support geo queries
- parse date("...") as timestamp HOT 5
- some date related tests are failing 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 pql.