Skip to content

Commit

Permalink
Up version, some code formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
mindreader committed Jun 1, 2023
1 parent 3121f26 commit 80d5060
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Simpleramix.MixProject do
def project do
[
app: :simpleramix,
version: "1.5.2",
version: "1.6.0",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
description: "Client library for sending requests to Druid.",
Expand Down
8 changes: 4 additions & 4 deletions test/query/query_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ defmodule QueryTest do
:foo,
expression("json_value(parse_json(to_json_string(\"foo\")),'$.rhs', 'STRING'))", :string)
)
|> Simpleramix.add_virtual_columns( foo2:
|> Simpleramix.add_virtual_columns(
foo2:
expression(
"json_value(parse_json(to_json_string(\"foo\")),'$.rhs', 'STRING'))",
:string
Expand All @@ -166,15 +167,15 @@ defmodule QueryTest do
|> Simpleramix.set_subtotals_spec([[:a1], [:a2]])

assert Enum.count(query.aggregations) == 9
assert Enum.count(query.post_aggregations) == 4
assert Enum.count(query.post_aggregations) == 11
assert Enum.count(query.virtual_columns) == 8
assert Enum.count(query.intervals) == 3
assert query.context.skipEmptyBuckets == true
assert query.subtotals_spec == [[:a1], [:a2]]

geotest = 1

some_ids = [1,2,3]
some_ids = [1, 2, 3]

mindate = DateTime.utc_now()
maxdate = DateTime.utc_now()
Expand Down Expand Up @@ -202,7 +203,6 @@ defmodule QueryTest do
|> Simpleramix.add_filter(dimensions.strfield >= "B")
|> Simpleramix.add_filter(geotest <= dimensions.foobar < 2)


assert query.filter.type == :and
assert query.filter.fields |> Enum.count() == 14
end
Expand Down

0 comments on commit 80d5060

Please sign in to comment.