Comments (4)
[default/cash]$ find("location = 'Atlanta \\(HQ\\)'")
Returned '[]' in 0.007 sec
If the phrase with the parens is quoted, then it parses, but the wrong result is returned because the CCL Parser alters all parens to have a space before and after
public static Queue<PostfixNotationSymbol> toPostfixNotation(String ccl) {
// This method uses a value buffer to correct cases when a string value
// is specified without quotes (because its a common mistake to make).
// If an operator other than BETWEEN is specified, we use logic that
// will buffer all the subsequent tokens until we reach a (parenthesis),
// (conjunction) or (at) and assume that the tokens belong to the same
// value.
ccl = ccl.replace("(", "( ");
ccl = ccl.replace(")", " )");
from concourse.
The reason that the parens are padded with spaces is so that they are split and handled as separate tokens. We could add an option to the StringSplitter to split on and return parens...
from concourse.
...or we could fix the regex to only do the replace on parens that
- are not escaped (so not preceeded by '')
- and are proceeded by whatever characters are allowed to be in a key ([A-Za-z0-9_])
from concourse.
Actually, if we add this logic to StringSplitter we won't need to deal with escaping the parens. The QuoteAware string splitter won't split or apply any of the options within quotes
from concourse.
Related Issues (20)
- Upgrade Task version bootstrap process does not set version in all places
- The Database can accept duplicate Writes if Blocks are partially synced
- Server crash can cause an irrecoverable error where Revisions are not properly offset
- Cannot override heap_size and other pre-launch configuration in concourse.prefs.dev
- CaSH short syntax doesn't work for regex with parenthesis HOT 1
- ConcurrentModificationException thrown when atomic operation birthed from Transaction commits while receiving concurrent version change notifications (e.g. from Engine accepting Writes)
- Wide write locks are not shared
- RangeLocks coalesce connected ranges and therefore can remove too much protection when unlocked
- Configure heap dump on OOM to occur even if server is not in DEBUG mode
- concourse-export does not properly escape double quotes within a field
- Concourse dockerfile needs to expost 9010 for JMX access
- Add configuration preference to initialize admin username and password HOT 1
- In ClientServerTest, getServerVersion() does not actually support returning and installer path. HOT 1
- Allow concourse_client.yaml to support connection details for multiple instances at the same time HOT 1
- Create standalone "cash" executable that can launch concourse shell HOT 1
- Add ConnectionPool factory method that copy the connection info from an existing concourse handler
- Add option to make Record accumulation of revisions (from Segment), asynchronous HOT 1
- Support CCL search operators HOT 5
- Add "probe" method to check if client is still connected to the server
- Use Finite State Transducers for more efficient memory representation of search strings HOT 3
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 concourse.