@@ -84,7 +84,7 @@ g.test_parse = function()
84
84
local age_filter_condition = filter_conditions [1 ]
85
85
t .assert_type (age_filter_condition , ' table' )
86
86
t .assert_equals (age_filter_condition .fields , {5 })
87
- t .assert_equals (age_filter_condition .operator , select_conditions .operators .LT )
87
+ t .assert_equals (age_filter_condition .operator , compare_conditions .operators .LT )
88
88
t .assert_equals (age_filter_condition .values , {40 })
89
89
t .assert_equals (age_filter_condition .types , {' number' })
90
90
t .assert_equals (age_filter_condition .early_exit_is_possible , true )
@@ -93,7 +93,7 @@ g.test_parse = function()
93
93
local full_name_filter_condition = filter_conditions [2 ]
94
94
t .assert_type (full_name_filter_condition , ' table' )
95
95
t .assert_equals (full_name_filter_condition .fields , {3 , 4 })
96
- t .assert_equals (full_name_filter_condition .operator , select_conditions .operators .EQ )
96
+ t .assert_equals (full_name_filter_condition .operator , compare_conditions .operators .EQ )
97
97
t .assert_equals (full_name_filter_condition .values , {' Ivan' , ' Ivanov' })
98
98
t .assert_equals (full_name_filter_condition .types , {' string' , ' string' })
99
99
t .assert_equals (full_name_filter_condition .early_exit_is_possible , false )
@@ -116,7 +116,7 @@ g.test_parse = function()
116
116
local has_a_car_filter_condition = filter_conditions [3 ]
117
117
t .assert_type (has_a_car_filter_condition , ' table' )
118
118
t .assert_equals (has_a_car_filter_condition .fields , {7 })
119
- t .assert_equals (has_a_car_filter_condition .operator , select_conditions .operators .EQ )
119
+ t .assert_equals (has_a_car_filter_condition .operator , compare_conditions .operators .EQ )
120
120
t .assert_equals (has_a_car_filter_condition .values , {true })
121
121
t .assert_equals (has_a_car_filter_condition .types , {' boolean' })
122
122
t .assert_equals (has_a_car_filter_condition .early_exit_is_possible , false )
@@ -131,7 +131,7 @@ g.test_one_condition_number = function()
131
131
local filter_conditions = {
132
132
{
133
133
fields = {1 },
134
- operator = select_conditions .operators .EQ ,
134
+ operator = compare_conditions .operators .EQ ,
135
135
values = {3 },
136
136
types = {' number' },
137
137
early_exit_is_possible = true ,
@@ -168,7 +168,7 @@ g.test_one_condition_boolean = function()
168
168
local filter_conditions = {
169
169
{
170
170
fields = {1 },
171
- operator = select_conditions .operators .EQ ,
171
+ operator = compare_conditions .operators .EQ ,
172
172
values = {true },
173
173
types = {' boolean' },
174
174
early_exit_is_possible = true ,
@@ -208,7 +208,7 @@ g.test_one_condition_string = function()
208
208
local filter_conditions = {
209
209
{
210
210
fields = {2 },
211
- operator = select_conditions .operators .GT ,
211
+ operator = compare_conditions .operators .GT ,
212
212
values = {' dddddddd' },
213
213
types = {' string' },
214
214
early_exit_is_possible = true ,
@@ -305,7 +305,7 @@ g.test_two_conditions_non_nullable = function()
305
305
local filter_conditions = {
306
306
{
307
307
fields = {2 , 3 },
308
- operator = select_conditions .operators .GE ,
308
+ operator = compare_conditions .operators .GE ,
309
309
values = {" test" , 5 },
310
310
types = {' string' , ' number' },
311
311
early_exit_is_possible = false ,
@@ -316,7 +316,7 @@ g.test_two_conditions_non_nullable = function()
316
316
},
317
317
{
318
318
fields = {1 },
319
- operator = select_conditions .operators .LT ,
319
+ operator = compare_conditions .operators .LT ,
320
320
values = {3 },
321
321
types = {' number' },
322
322
early_exit_is_possible = true ,
@@ -373,7 +373,7 @@ g.test_one_condition_with_nil_value = function()
373
373
local filter_conditions = {
374
374
{
375
375
fields = {2 , 3 },
376
- operator = select_conditions .operators .GE ,
376
+ operator = compare_conditions .operators .GE ,
377
377
values = {" test" },
378
378
types = {' string' , ' number' },
379
379
early_exit_is_possible = false ,
@@ -416,7 +416,7 @@ g.test_unicode_collation = function()
416
416
local filter_conditions = {
417
417
{
418
418
fields = {1 , 2 , 3 , 4 },
419
- operator = select_conditions .operators .EQ ,
419
+ operator = compare_conditions .operators .EQ ,
420
420
values = {' A' , ' Á' , ' Ä' , 6 },
421
421
types = {' string' , ' string' , ' string' , ' number' },
422
422
early_exit_is_possible = false ,
@@ -462,7 +462,7 @@ g.test_binary_and_none_collation = function()
462
462
local filter_conditions = {
463
463
{
464
464
fields = {1 , 2 , 3 },
465
- operator = select_conditions .operators .EQ ,
465
+ operator = compare_conditions .operators .EQ ,
466
466
values = {' A' , ' B' , ' C' },
467
467
types = {' string' , ' string' , ' string' },
468
468
early_exit_is_possible = false ,
@@ -507,7 +507,7 @@ g.test_null_as_last_value_eq = function()
507
507
local filter_conditions = {
508
508
{
509
509
fields = {1 , 2 },
510
- operator = select_conditions .operators .EQ ,
510
+ operator = compare_conditions .operators .EQ ,
511
511
values = {' a' , box .NULL },
512
512
types = {' string' , ' string' },
513
513
early_exit_is_possible = false ,
@@ -548,7 +548,7 @@ g.test_null_as_last_value_gt = function()
548
548
local filter_conditions = {
549
549
{
550
550
fields = {1 , 2 },
551
- operator = select_conditions .operators .GT ,
551
+ operator = compare_conditions .operators .GT ,
552
552
values = {' a' , box .NULL },
553
553
types = {' string' , ' string' },
554
554
early_exit_is_possible = false ,
@@ -595,7 +595,7 @@ g.test_null_as_last_value_gt_non_nullable = function()
595
595
local filter_conditions = {
596
596
{
597
597
fields = {1 , 2 },
598
- operator = select_conditions .operators .GT ,
598
+ operator = compare_conditions .operators .GT ,
599
599
values = {' a' , box .NULL },
600
600
types = {' string' , ' string' },
601
601
early_exit_is_possible = false ,
@@ -642,7 +642,7 @@ g.test_jsonpath_fields_eq = function()
642
642
local filter_conditions = {
643
643
{
644
644
fields = {' [2].a.b' },
645
- operator = select_conditions .operators .EQ ,
645
+ operator = compare_conditions .operators .EQ ,
646
646
values = {55 },
647
647
types = {' number' },
648
648
early_exit_is_possible = true ,
@@ -680,7 +680,7 @@ g.test_jsonpath_fields_ge = function()
680
680
local filter_conditions = {
681
681
{
682
682
fields = {' [2]["field_2"]' },
683
- operator = select_conditions .operators .GT ,
683
+ operator = compare_conditions .operators .GT ,
684
684
values = {23 },
685
685
types = {' number' },
686
686
early_exit_is_possible = true ,
@@ -720,7 +720,7 @@ g.test_several_jsonpath = function()
720
720
local filter_conditions = {
721
721
{
722
722
fields = {' [3]["f2"][\' f3\' ]' , ' [4].f3' },
723
- operator = select_conditions .operators .EQ ,
723
+ operator = compare_conditions .operators .EQ ,
724
724
values = {' a' , ' b' },
725
725
types = {' string' , ' string' },
726
726
early_exit_is_possible = true ,
@@ -758,14 +758,14 @@ g.test_jsonpath_two_conditions = function()
758
758
local filter_conditions = {
759
759
{
760
760
fields = {' [2].fld_1' , ' [3]["f_1"]' },
761
- operator = select_conditions .operators .GE ,
761
+ operator = compare_conditions .operators .GE ,
762
762
values = {" jsonpath_test" , 23 },
763
763
types = {' string' , ' number' },
764
764
early_exit_is_possible = false ,
765
765
},
766
766
{
767
767
fields = {' [1].field_1' },
768
- operator = select_conditions .operators .LT ,
768
+ operator = compare_conditions .operators .LT ,
769
769
values = {8 },
770
770
types = {' number' },
771
771
early_exit_is_possible = true ,
0 commit comments