Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
723849a9
Unverified
Commit
723849a9
authored
7 years ago
by
Cam Saul
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #6967 from metabase/fix-druid-tests
Fix Druid tests :(
parents
2066bfd0
1b235b38
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/metabase/driver/druid/query_processor.clj
+12
-13
12 additions, 13 deletions
src/metabase/driver/druid/query_processor.clj
with
12 additions
and
13 deletions
src/metabase/driver/druid/query_processor.clj
+
12
−
13
View file @
723849a9
...
...
@@ -519,14 +519,13 @@
both. Defaults to being `inclusive` (e.g. `<=` instead of `<`) but specify option `inclusive?` to change this."
[
field
&
{
:keys
[
lower
upper
inclusive?
]
:or
{
inclusive?
true
}}]
(
u/prog1
{
:type
:bound
:ordering
:numeric
:dimension
(
->rvalue
field
)
:lower
(
num
(
->rvalue
lower
))
:upper
(
num
(
->rvalue
upper
))
:lowerStrict
(
not
inclusive?
)
:upperStrict
(
not
inclusive?
)}
(
println
"inclusive?"
inclusive?
(
u/pprint-to-str
'blue
<>
))))
{
:type
:bound
:ordering
:numeric
:dimension
(
->rvalue
field
)
:lower
(
num
(
->rvalue
lower
))
:upper
(
num
(
->rvalue
upper
))
:lowerStrict
(
not
inclusive?
)
:upperStrict
(
not
inclusive?
)})
(
defn-
check-filter-fields
[
filter-type
&
fields
]
(
doseq
[
field
fields
]
...
...
@@ -576,10 +575,10 @@
:=
(
filter
:=
field
value
)
:!=
(
filter
:not
(
filter
:=
field
value
))
:<
(
filter
:bound
field,
:
low
er
value,
:inclusive?
false
)
:>
(
filter
:bound
field,
:
upp
er
value,
:inclusive?
false
)
:<=
(
filter
:bound
field,
:
low
er
value
)
:>=
(
filter
:bound
field,
:
upp
er
value
)))
:<
(
filter
:bound
field,
:
upp
er
value,
:inclusive?
false
)
:>
(
filter
:bound
field,
:
low
er
value,
:inclusive?
false
)
:<=
(
filter
:bound
field,
:
upp
er
value
)
:>=
(
filter
:bound
field,
:
low
er
value
)))
(
catch
Throwable
e
(
log/warn
(
.getMessage
e
))))))
...
...
@@ -588,7 +587,7 @@
(
case
compound-type
:and
{
:type
:and,
:fields
(
filterv
identity
(
map
parse-filter-clause
:filter
subclauses
))}
:or
{
:type
:or,
:fields
(
filterv
identity
(
map
parse-filter-clause
:filter
subclauses
))}
:not
(
when-let
[
subclause
(
parse-filter-
sub
clause
:filter
subclause
)]
:not
(
when-let
[
subclause
(
parse-filter-clause
:filter
subclause
)]
(
filter
:not
subclause
))
nil
(
parse-filter-subclause
:filter
clause
)))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment