Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Temporary] Allow Heterogeneous Aggregates - Do Not Merge #99

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions eval/eval.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ type EvalResponse struct {

var celEnvOptions = []cel.EnvOption{
// 1.0 (1.23)
cel.HomogeneousAggregateLiterals(),
cel.EagerlyValidateDeclarations(true),
cel.DefaultUTCTimeZone(true),
k8s.URLs(),
Expand All @@ -56,7 +55,6 @@ var celEnvOptions = []cel.EnvOption{
cel.ValidateDurationLiterals(),
cel.ValidateTimestampLiterals(),
cel.ValidateRegexLiterals(),
cel.ValidateHomogeneousAggregateLiterals(),
),

// Strings (from 1.29 onwards)
Expand Down
6 changes: 3 additions & 3 deletions eval/eval_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,17 +270,17 @@ func TestValidation(t *testing.T) {
{
name: "Homogeneous Aggregate Validation test 1",
exp: `name in ['hello', 0]`,
wantErr: true,
wantErr: false,
},
{
name: "Homogeneous Aggregate Validation test 2",
exp: `{'hello':'world', 1:'!'}`,
wantErr: true,
wantErr: false,
},
{
name: "Homogeneous Aggregate Validation test 3",
exp: `name in {'hello':'world', 'goodbye':true}`,
wantErr: true,
wantErr: false,
},
{
name: "Homogeneous Aggregate Validation test 4",
Expand Down
Binary file modified web/assets/main.wasm.gz
Binary file not shown.