From f47abe9520ab6c08f9687962235ad02402c4a52f Mon Sep 17 00:00:00 2001 From: Joshua Murray Date: Wed, 6 Jul 2016 14:35:23 -0500 Subject: [PATCH] ARMLS-2577 Expression limit upped from 50 to 75 --- CHANGELOG.md | 4 ++++ VERSION | 2 +- lib/sparkql/parser_compatibility.rb | 2 +- test/unit/parser_compatability_test.rb | 4 ++-- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 17ce1c7..34937c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +v1.0.3, 2016-06-06 ([changes](https://github.com/sparkapi/sparkql/compare/v1.0.2...v1.0.3)) +------------------- + * [IMPROVEMENT] Expression limit lifted to 75 expressions + v1.0.2, 2016-04-26 ([changes](https://github.com/sparkapi/sparkql/compare/v1.0.1...v1.0.2)) ------------------- * [IMPROVEMENT] Support for new range() function for character ranges diff --git a/VERSION b/VERSION index 6d7de6e..21e8796 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.2 +1.0.3 diff --git a/lib/sparkql/parser_compatibility.rb b/lib/sparkql/parser_compatibility.rb index 4616e0a..c6f5c22 100644 --- a/lib/sparkql/parser_compatibility.rb +++ b/lib/sparkql/parser_compatibility.rb @@ -2,7 +2,7 @@ module Sparkql::ParserCompatibility MAXIMUM_MULTIPLE_VALUES = 200 - MAXIMUM_EXPRESSIONS = 50 + MAXIMUM_EXPRESSIONS = 75 MAXIMUM_LEVEL_DEPTH = 2 # TODO I Really don't think this is required anymore diff --git a/test/unit/parser_compatability_test.rb b/test/unit/parser_compatability_test.rb index 471c0ce..ebf9414 100644 --- a/test/unit/parser_compatability_test.rb +++ b/test/unit/parser_compatability_test.rb @@ -338,11 +338,11 @@ def find_operator(string) test "max out expressions" do parser = Parser.new to_the_max = [] - 60.times do |x| + 80.times do |x| to_the_max << "City Eq 'Fargo'" end vals = parser.tokenize(to_the_max.join(" And ")) - assert_equal 50, vals.size + assert_equal 75, vals.size assert parser.errors? end