Documentation ¶
Index ¶
Constants ¶
View Source
const (
FromKind = "array.from"
)
Variables ¶
View Source
var FluxTestPackages = []*ast.Package{&ast.Package{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: nil, }, Files: []*ast.File{&ast.File{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 79, Line: 70, }, File: "from_group_test.flux", Source: "package array_test\n\n\nimport \"testing\"\nimport \"array\"\n\noption now = () => 2018-12-19T22:14:30Z\n\ndata = \"\n#datatype,string,long,string,string,string,dateTime:RFC3339,boolean\n#group,false,false,true,true,true,false,false\n#default,_result,,,,,,\n,result,table,_measurement,_field,t0,_time,_value\n,,0,m0,f0,tagvalue,2018-12-19T22:13:30Z,false\n,,0,m0,f0,tagvalue,2018-12-19T22:13:40Z,true\n,,0,m0,f0,tagvalue,2018-12-19T22:13:50Z,false\n,,0,m0,f0,tagvalue,2018-12-19T22:14:00Z,false\n,,0,m0,f0,tagvalue,2018-12-19T22:14:10Z,true\n,,0,m0,f0,tagvalue,2018-12-19T22:14:20Z,true\n\"\ninput = array.from(\n rows: [\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:30Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:40Z,\n _value: true,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:50Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:00Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:10Z,\n _value: true,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:20Z,\n _value: true,\n },\n ],\n)\npass = (tables=<-) => tables\n |> group(columns: [\"_measurement\", \"_field\", \"t0\"])\n\ntest from = () => ({input: input, want: testing.loadMem(csv: data), fn: pass})", Start: ast.Position{ Column: 1, Line: 1, }, }, }, Body: []ast.Statement{&ast.OptionStatement{ Assignment: &ast.VariableAssignment{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 7, }, File: "from_group_test.flux", Source: "now = () => 2018-12-19T22:14:30Z", Start: ast.Position{ Column: 8, Line: 7, }, }, }, ID: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 11, Line: 7, }, File: "from_group_test.flux", Source: "now", Start: ast.Position{ Column: 8, Line: 7, }, }, }, Name: "now", }, Init: &ast.FunctionExpression{ Arrow: nil, BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 7, }, File: "from_group_test.flux", Source: "() => 2018-12-19T22:14:30Z", Start: ast.Position{ Column: 14, Line: 7, }, }, }, Body: &ast.DateTimeLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 7, }, File: "from_group_test.flux", Source: "2018-12-19T22:14:30Z", Start: ast.Position{ Column: 20, Line: 7, }, }, }, Value: parser.MustParseTime("2018-12-19T22:14:30Z"), }, Lparen: nil, Params: []*ast.Property{}, Rparan: nil, }, }, BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 7, }, File: "from_group_test.flux", Source: "option now = () => 2018-12-19T22:14:30Z", Start: ast.Position{ Column: 1, Line: 7, }, }, }, }, &ast.VariableAssignment{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 2, Line: 20, }, File: "from_group_test.flux", Source: "data = \"\n#datatype,string,long,string,string,string,dateTime:RFC3339,boolean\n#group,false,false,true,true,true,false,false\n#default,_result,,,,,,\n,result,table,_measurement,_field,t0,_time,_value\n,,0,m0,f0,tagvalue,2018-12-19T22:13:30Z,false\n,,0,m0,f0,tagvalue,2018-12-19T22:13:40Z,true\n,,0,m0,f0,tagvalue,2018-12-19T22:13:50Z,false\n,,0,m0,f0,tagvalue,2018-12-19T22:14:00Z,false\n,,0,m0,f0,tagvalue,2018-12-19T22:14:10Z,true\n,,0,m0,f0,tagvalue,2018-12-19T22:14:20Z,true\n\"", Start: ast.Position{ Column: 1, Line: 9, }, }, }, ID: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 5, Line: 9, }, File: "from_group_test.flux", Source: "data", Start: ast.Position{ Column: 1, Line: 9, }, }, }, Name: "data", }, Init: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 2, Line: 20, }, File: "from_group_test.flux", Source: "\"\n#datatype,string,long,string,string,string,dateTime:RFC3339,boolean\n#group,false,false,true,true,true,false,false\n#default,_result,,,,,,\n,result,table,_measurement,_field,t0,_time,_value\n,,0,m0,f0,tagvalue,2018-12-19T22:13:30Z,false\n,,0,m0,f0,tagvalue,2018-12-19T22:13:40Z,true\n,,0,m0,f0,tagvalue,2018-12-19T22:13:50Z,false\n,,0,m0,f0,tagvalue,2018-12-19T22:14:00Z,false\n,,0,m0,f0,tagvalue,2018-12-19T22:14:10Z,true\n,,0,m0,f0,tagvalue,2018-12-19T22:14:20Z,true\n\"", Start: ast.Position{ Column: 8, Line: 9, }, }, }, Value: "\n#datatype,string,long,string,string,string,dateTime:RFC3339,boolean\n#group,false,false,true,true,true,false,false\n#default,_result,,,,,,\n,result,table,_measurement,_field,t0,_time,_value\n,,0,m0,f0,tagvalue,2018-12-19T22:13:30Z,false\n,,0,m0,f0,tagvalue,2018-12-19T22:13:40Z,true\n,,0,m0,f0,tagvalue,2018-12-19T22:13:50Z,false\n,,0,m0,f0,tagvalue,2018-12-19T22:14:00Z,false\n,,0,m0,f0,tagvalue,2018-12-19T22:14:10Z,true\n,,0,m0,f0,tagvalue,2018-12-19T22:14:20Z,true\n", }, }, &ast.VariableAssignment{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 2, Line: 66, }, File: "from_group_test.flux", Source: "input = array.from(\n rows: [\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:30Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:40Z,\n _value: true,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:50Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:00Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:10Z,\n _value: true,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:20Z,\n _value: true,\n },\n ],\n)", Start: ast.Position{ Column: 1, Line: 21, }, }, }, ID: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 6, Line: 21, }, File: "from_group_test.flux", Source: "input", Start: ast.Position{ Column: 1, Line: 21, }, }, }, Name: "input", }, Init: &ast.CallExpression{ Arguments: []ast.Expression{&ast.ObjectExpression{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 6, Line: 65, }, File: "from_group_test.flux", Source: "rows: [\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:30Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:40Z,\n _value: true,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:50Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:00Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:10Z,\n _value: true,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:20Z,\n _value: true,\n },\n ]", Start: ast.Position{ Column: 5, Line: 22, }, }, }, Lbrace: nil, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 6, Line: 65, }, File: "from_group_test.flux", Source: "rows: [\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:30Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:40Z,\n _value: true,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:50Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:00Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:10Z,\n _value: true,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:20Z,\n _value: true,\n },\n ]", Start: ast.Position{ Column: 5, Line: 22, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 9, Line: 22, }, File: "from_group_test.flux", Source: "rows", Start: ast.Position{ Column: 5, Line: 22, }, }, }, Name: "rows", }, Separator: nil, Value: &ast.ArrayExpression{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 6, Line: 65, }, File: "from_group_test.flux", Source: "[\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:30Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:40Z,\n _value: true,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:50Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:00Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:10Z,\n _value: true,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:20Z,\n _value: true,\n },\n ]", Start: ast.Position{ Column: 11, Line: 22, }, }, }, Elements: []ast.Expression{&ast.ObjectExpression{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 10, Line: 29, }, File: "from_group_test.flux", Source: "{\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:30Z,\n _value: false,\n }", Start: ast.Position{ Column: 9, Line: 23, }, }, }, Lbrace: nil, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 31, Line: 24, }, File: "from_group_test.flux", Source: "_measurement: \"m0\"", Start: ast.Position{ Column: 13, Line: 24, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 24, }, File: "from_group_test.flux", Source: "_measurement", Start: ast.Position{ Column: 13, Line: 24, }, }, }, Name: "_measurement", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 31, Line: 24, }, File: "from_group_test.flux", Source: "\"m0\"", Start: ast.Position{ Column: 27, Line: 24, }, }, }, Value: "m0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 25, }, File: "from_group_test.flux", Source: "_field: \"f0\"", Start: ast.Position{ Column: 13, Line: 25, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 19, Line: 25, }, File: "from_group_test.flux", Source: "_field", Start: ast.Position{ Column: 13, Line: 25, }, }, }, Name: "_field", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 25, }, File: "from_group_test.flux", Source: "\"f0\"", Start: ast.Position{ Column: 21, Line: 25, }, }, }, Value: "f0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 27, Line: 26, }, File: "from_group_test.flux", Source: "t0: \"tagvalue\"", Start: ast.Position{ Column: 13, Line: 26, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 15, Line: 26, }, File: "from_group_test.flux", Source: "t0", Start: ast.Position{ Column: 13, Line: 26, }, }, }, Name: "t0", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 27, Line: 26, }, File: "from_group_test.flux", Source: "\"tagvalue\"", Start: ast.Position{ Column: 17, Line: 26, }, }, }, Value: "tagvalue", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 27, }, File: "from_group_test.flux", Source: "_time: 2018-12-19T22:13:30Z", Start: ast.Position{ Column: 13, Line: 27, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 18, Line: 27, }, File: "from_group_test.flux", Source: "_time", Start: ast.Position{ Column: 13, Line: 27, }, }, }, Name: "_time", }, Separator: nil, Value: &ast.DateTimeLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 27, }, File: "from_group_test.flux", Source: "2018-12-19T22:13:30Z", Start: ast.Position{ Column: 20, Line: 27, }, }, }, Value: parser.MustParseTime("2018-12-19T22:13:30Z"), }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 26, Line: 28, }, File: "from_group_test.flux", Source: "_value: false", Start: ast.Position{ Column: 13, Line: 28, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 19, Line: 28, }, File: "from_group_test.flux", Source: "_value", Start: ast.Position{ Column: 13, Line: 28, }, }, }, Name: "_value", }, Separator: nil, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 26, Line: 28, }, File: "from_group_test.flux", Source: "false", Start: ast.Position{ Column: 21, Line: 28, }, }, }, Name: "false", }, }}, Rbrace: nil, With: nil, }, &ast.ObjectExpression{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 10, Line: 36, }, File: "from_group_test.flux", Source: "{\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:40Z,\n _value: true,\n }", Start: ast.Position{ Column: 9, Line: 30, }, }, }, Lbrace: nil, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 31, Line: 31, }, File: "from_group_test.flux", Source: "_measurement: \"m0\"", Start: ast.Position{ Column: 13, Line: 31, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 31, }, File: "from_group_test.flux", Source: "_measurement", Start: ast.Position{ Column: 13, Line: 31, }, }, }, Name: "_measurement", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 31, Line: 31, }, File: "from_group_test.flux", Source: "\"m0\"", Start: ast.Position{ Column: 27, Line: 31, }, }, }, Value: "m0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 32, }, File: "from_group_test.flux", Source: "_field: \"f0\"", Start: ast.Position{ Column: 13, Line: 32, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 19, Line: 32, }, File: "from_group_test.flux", Source: "_field", Start: ast.Position{ Column: 13, Line: 32, }, }, }, Name: "_field", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 32, }, File: "from_group_test.flux", Source: "\"f0\"", Start: ast.Position{ Column: 21, Line: 32, }, }, }, Value: "f0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 27, Line: 33, }, File: "from_group_test.flux", Source: "t0: \"tagvalue\"", Start: ast.Position{ Column: 13, Line: 33, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 15, Line: 33, }, File: "from_group_test.flux", Source: "t0", Start: ast.Position{ Column: 13, Line: 33, }, }, }, Name: "t0", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 27, Line: 33, }, File: "from_group_test.flux", Source: "\"tagvalue\"", Start: ast.Position{ Column: 17, Line: 33, }, }, }, Value: "tagvalue", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 34, }, File: "from_group_test.flux", Source: "_time: 2018-12-19T22:13:40Z", Start: ast.Position{ Column: 13, Line: 34, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 18, Line: 34, }, File: "from_group_test.flux", Source: "_time", Start: ast.Position{ Column: 13, Line: 34, }, }, }, Name: "_time", }, Separator: nil, Value: &ast.DateTimeLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 34, }, File: "from_group_test.flux", Source: "2018-12-19T22:13:40Z", Start: ast.Position{ Column: 20, Line: 34, }, }, }, Value: parser.MustParseTime("2018-12-19T22:13:40Z"), }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 35, }, File: "from_group_test.flux", Source: "_value: true", Start: ast.Position{ Column: 13, Line: 35, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 19, Line: 35, }, File: "from_group_test.flux", Source: "_value", Start: ast.Position{ Column: 13, Line: 35, }, }, }, Name: "_value", }, Separator: nil, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 35, }, File: "from_group_test.flux", Source: "true", Start: ast.Position{ Column: 21, Line: 35, }, }, }, Name: "true", }, }}, Rbrace: nil, With: nil, }, &ast.ObjectExpression{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 10, Line: 43, }, File: "from_group_test.flux", Source: "{\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:50Z,\n _value: false,\n }", Start: ast.Position{ Column: 9, Line: 37, }, }, }, Lbrace: nil, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 31, Line: 38, }, File: "from_group_test.flux", Source: "_measurement: \"m0\"", Start: ast.Position{ Column: 13, Line: 38, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 38, }, File: "from_group_test.flux", Source: "_measurement", Start: ast.Position{ Column: 13, Line: 38, }, }, }, Name: "_measurement", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 31, Line: 38, }, File: "from_group_test.flux", Source: "\"m0\"", Start: ast.Position{ Column: 27, Line: 38, }, }, }, Value: "m0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 39, }, File: "from_group_test.flux", Source: "_field: \"f0\"", Start: ast.Position{ Column: 13, Line: 39, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 19, Line: 39, }, File: "from_group_test.flux", Source: "_field", Start: ast.Position{ Column: 13, Line: 39, }, }, }, Name: "_field", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 39, }, File: "from_group_test.flux", Source: "\"f0\"", Start: ast.Position{ Column: 21, Line: 39, }, }, }, Value: "f0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 27, Line: 40, }, File: "from_group_test.flux", Source: "t0: \"tagvalue\"", Start: ast.Position{ Column: 13, Line: 40, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 15, Line: 40, }, File: "from_group_test.flux", Source: "t0", Start: ast.Position{ Column: 13, Line: 40, }, }, }, Name: "t0", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 27, Line: 40, }, File: "from_group_test.flux", Source: "\"tagvalue\"", Start: ast.Position{ Column: 17, Line: 40, }, }, }, Value: "tagvalue", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 41, }, File: "from_group_test.flux", Source: "_time: 2018-12-19T22:13:50Z", Start: ast.Position{ Column: 13, Line: 41, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 18, Line: 41, }, File: "from_group_test.flux", Source: "_time", Start: ast.Position{ Column: 13, Line: 41, }, }, }, Name: "_time", }, Separator: nil, Value: &ast.DateTimeLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 41, }, File: "from_group_test.flux", Source: "2018-12-19T22:13:50Z", Start: ast.Position{ Column: 20, Line: 41, }, }, }, Value: parser.MustParseTime("2018-12-19T22:13:50Z"), }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 26, Line: 42, }, File: "from_group_test.flux", Source: "_value: false", Start: ast.Position{ Column: 13, Line: 42, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 19, Line: 42, }, File: "from_group_test.flux", Source: "_value", Start: ast.Position{ Column: 13, Line: 42, }, }, }, Name: "_value", }, Separator: nil, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 26, Line: 42, }, File: "from_group_test.flux", Source: "false", Start: ast.Position{ Column: 21, Line: 42, }, }, }, Name: "false", }, }}, Rbrace: nil, With: nil, }, &ast.ObjectExpression{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 10, Line: 50, }, File: "from_group_test.flux", Source: "{\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:00Z,\n _value: false,\n }", Start: ast.Position{ Column: 9, Line: 44, }, }, }, Lbrace: nil, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 31, Line: 45, }, File: "from_group_test.flux", Source: "_measurement: \"m0\"", Start: ast.Position{ Column: 13, Line: 45, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 45, }, File: "from_group_test.flux", Source: "_measurement", Start: ast.Position{ Column: 13, Line: 45, }, }, }, Name: "_measurement", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 31, Line: 45, }, File: "from_group_test.flux", Source: "\"m0\"", Start: ast.Position{ Column: 27, Line: 45, }, }, }, Value: "m0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 46, }, File: "from_group_test.flux", Source: "_field: \"f0\"", Start: ast.Position{ Column: 13, Line: 46, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 19, Line: 46, }, File: "from_group_test.flux", Source: "_field", Start: ast.Position{ Column: 13, Line: 46, }, }, }, Name: "_field", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 46, }, File: "from_group_test.flux", Source: "\"f0\"", Start: ast.Position{ Column: 21, Line: 46, }, }, }, Value: "f0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 27, Line: 47, }, File: "from_group_test.flux", Source: "t0: \"tagvalue\"", Start: ast.Position{ Column: 13, Line: 47, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 15, Line: 47, }, File: "from_group_test.flux", Source: "t0", Start: ast.Position{ Column: 13, Line: 47, }, }, }, Name: "t0", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 27, Line: 47, }, File: "from_group_test.flux", Source: "\"tagvalue\"", Start: ast.Position{ Column: 17, Line: 47, }, }, }, Value: "tagvalue", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 48, }, File: "from_group_test.flux", Source: "_time: 2018-12-19T22:14:00Z", Start: ast.Position{ Column: 13, Line: 48, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 18, Line: 48, }, File: "from_group_test.flux", Source: "_time", Start: ast.Position{ Column: 13, Line: 48, }, }, }, Name: "_time", }, Separator: nil, Value: &ast.DateTimeLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 48, }, File: "from_group_test.flux", Source: "2018-12-19T22:14:00Z", Start: ast.Position{ Column: 20, Line: 48, }, }, }, Value: parser.MustParseTime("2018-12-19T22:14:00Z"), }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 26, Line: 49, }, File: "from_group_test.flux", Source: "_value: false", Start: ast.Position{ Column: 13, Line: 49, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 19, Line: 49, }, File: "from_group_test.flux", Source: "_value", Start: ast.Position{ Column: 13, Line: 49, }, }, }, Name: "_value", }, Separator: nil, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 26, Line: 49, }, File: "from_group_test.flux", Source: "false", Start: ast.Position{ Column: 21, Line: 49, }, }, }, Name: "false", }, }}, Rbrace: nil, With: nil, }, &ast.ObjectExpression{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 10, Line: 57, }, File: "from_group_test.flux", Source: "{\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:10Z,\n _value: true,\n }", Start: ast.Position{ Column: 9, Line: 51, }, }, }, Lbrace: nil, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 31, Line: 52, }, File: "from_group_test.flux", Source: "_measurement: \"m0\"", Start: ast.Position{ Column: 13, Line: 52, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 52, }, File: "from_group_test.flux", Source: "_measurement", Start: ast.Position{ Column: 13, Line: 52, }, }, }, Name: "_measurement", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 31, Line: 52, }, File: "from_group_test.flux", Source: "\"m0\"", Start: ast.Position{ Column: 27, Line: 52, }, }, }, Value: "m0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 53, }, File: "from_group_test.flux", Source: "_field: \"f0\"", Start: ast.Position{ Column: 13, Line: 53, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 19, Line: 53, }, File: "from_group_test.flux", Source: "_field", Start: ast.Position{ Column: 13, Line: 53, }, }, }, Name: "_field", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 53, }, File: "from_group_test.flux", Source: "\"f0\"", Start: ast.Position{ Column: 21, Line: 53, }, }, }, Value: "f0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 27, Line: 54, }, File: "from_group_test.flux", Source: "t0: \"tagvalue\"", Start: ast.Position{ Column: 13, Line: 54, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 15, Line: 54, }, File: "from_group_test.flux", Source: "t0", Start: ast.Position{ Column: 13, Line: 54, }, }, }, Name: "t0", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 27, Line: 54, }, File: "from_group_test.flux", Source: "\"tagvalue\"", Start: ast.Position{ Column: 17, Line: 54, }, }, }, Value: "tagvalue", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 55, }, File: "from_group_test.flux", Source: "_time: 2018-12-19T22:14:10Z", Start: ast.Position{ Column: 13, Line: 55, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 18, Line: 55, }, File: "from_group_test.flux", Source: "_time", Start: ast.Position{ Column: 13, Line: 55, }, }, }, Name: "_time", }, Separator: nil, Value: &ast.DateTimeLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 55, }, File: "from_group_test.flux", Source: "2018-12-19T22:14:10Z", Start: ast.Position{ Column: 20, Line: 55, }, }, }, Value: parser.MustParseTime("2018-12-19T22:14:10Z"), }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 56, }, File: "from_group_test.flux", Source: "_value: true", Start: ast.Position{ Column: 13, Line: 56, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 19, Line: 56, }, File: "from_group_test.flux", Source: "_value", Start: ast.Position{ Column: 13, Line: 56, }, }, }, Name: "_value", }, Separator: nil, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 56, }, File: "from_group_test.flux", Source: "true", Start: ast.Position{ Column: 21, Line: 56, }, }, }, Name: "true", }, }}, Rbrace: nil, With: nil, }, &ast.ObjectExpression{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 10, Line: 64, }, File: "from_group_test.flux", Source: "{\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:20Z,\n _value: true,\n }", Start: ast.Position{ Column: 9, Line: 58, }, }, }, Lbrace: nil, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 31, Line: 59, }, File: "from_group_test.flux", Source: "_measurement: \"m0\"", Start: ast.Position{ Column: 13, Line: 59, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 59, }, File: "from_group_test.flux", Source: "_measurement", Start: ast.Position{ Column: 13, Line: 59, }, }, }, Name: "_measurement", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 31, Line: 59, }, File: "from_group_test.flux", Source: "\"m0\"", Start: ast.Position{ Column: 27, Line: 59, }, }, }, Value: "m0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 60, }, File: "from_group_test.flux", Source: "_field: \"f0\"", Start: ast.Position{ Column: 13, Line: 60, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 19, Line: 60, }, File: "from_group_test.flux", Source: "_field", Start: ast.Position{ Column: 13, Line: 60, }, }, }, Name: "_field", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 60, }, File: "from_group_test.flux", Source: "\"f0\"", Start: ast.Position{ Column: 21, Line: 60, }, }, }, Value: "f0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 27, Line: 61, }, File: "from_group_test.flux", Source: "t0: \"tagvalue\"", Start: ast.Position{ Column: 13, Line: 61, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 15, Line: 61, }, File: "from_group_test.flux", Source: "t0", Start: ast.Position{ Column: 13, Line: 61, }, }, }, Name: "t0", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 27, Line: 61, }, File: "from_group_test.flux", Source: "\"tagvalue\"", Start: ast.Position{ Column: 17, Line: 61, }, }, }, Value: "tagvalue", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 62, }, File: "from_group_test.flux", Source: "_time: 2018-12-19T22:14:20Z", Start: ast.Position{ Column: 13, Line: 62, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 18, Line: 62, }, File: "from_group_test.flux", Source: "_time", Start: ast.Position{ Column: 13, Line: 62, }, }, }, Name: "_time", }, Separator: nil, Value: &ast.DateTimeLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 62, }, File: "from_group_test.flux", Source: "2018-12-19T22:14:20Z", Start: ast.Position{ Column: 20, Line: 62, }, }, }, Value: parser.MustParseTime("2018-12-19T22:14:20Z"), }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 63, }, File: "from_group_test.flux", Source: "_value: true", Start: ast.Position{ Column: 13, Line: 63, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 19, Line: 63, }, File: "from_group_test.flux", Source: "_value", Start: ast.Position{ Column: 13, Line: 63, }, }, }, Name: "_value", }, Separator: nil, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 63, }, File: "from_group_test.flux", Source: "true", Start: ast.Position{ Column: 21, Line: 63, }, }, }, Name: "true", }, }}, Rbrace: nil, With: nil, }}, Lbrack: nil, Rbrack: nil, }, }}, Rbrace: nil, With: nil, }}, BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 2, Line: 66, }, File: "from_group_test.flux", Source: "array.from(\n rows: [\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:30Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:40Z,\n _value: true,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:50Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:00Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:10Z,\n _value: true,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:20Z,\n _value: true,\n },\n ],\n)", Start: ast.Position{ Column: 9, Line: 21, }, }, }, Callee: &ast.MemberExpression{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 19, Line: 21, }, File: "from_group_test.flux", Source: "array.from", Start: ast.Position{ Column: 9, Line: 21, }, }, }, Lbrack: nil, Object: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 21, }, File: "from_group_test.flux", Source: "array", Start: ast.Position{ Column: 9, Line: 21, }, }, }, Name: "array", }, Property: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 19, Line: 21, }, File: "from_group_test.flux", Source: "from", Start: ast.Position{ Column: 15, Line: 21, }, }, }, Name: "from", }, Rbrack: nil, }, Lparen: nil, Rparen: nil, }, }, &ast.VariableAssignment{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 56, Line: 68, }, File: "from_group_test.flux", Source: "pass = (tables=<-) => tables\n |> group(columns: [\"_measurement\", \"_field\", \"t0\"])", Start: ast.Position{ Column: 1, Line: 67, }, }, }, ID: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 5, Line: 67, }, File: "from_group_test.flux", Source: "pass", Start: ast.Position{ Column: 1, Line: 67, }, }, }, Name: "pass", }, Init: &ast.FunctionExpression{ Arrow: nil, BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 56, Line: 68, }, File: "from_group_test.flux", Source: "(tables=<-) => tables\n |> group(columns: [\"_measurement\", \"_field\", \"t0\"])", Start: ast.Position{ Column: 8, Line: 67, }, }, }, Body: &ast.PipeExpression{ Argument: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 29, Line: 67, }, File: "from_group_test.flux", Source: "tables", Start: ast.Position{ Column: 23, Line: 67, }, }, }, Name: "tables", }, BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 56, Line: 68, }, File: "from_group_test.flux", Source: "tables\n |> group(columns: [\"_measurement\", \"_field\", \"t0\"])", Start: ast.Position{ Column: 23, Line: 67, }, }, }, Call: &ast.CallExpression{ Arguments: []ast.Expression{&ast.ObjectExpression{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 55, Line: 68, }, File: "from_group_test.flux", Source: "columns: [\"_measurement\", \"_field\", \"t0\"]", Start: ast.Position{ Column: 14, Line: 68, }, }, }, Lbrace: nil, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 55, Line: 68, }, File: "from_group_test.flux", Source: "columns: [\"_measurement\", \"_field\", \"t0\"]", Start: ast.Position{ Column: 14, Line: 68, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 21, Line: 68, }, File: "from_group_test.flux", Source: "columns", Start: ast.Position{ Column: 14, Line: 68, }, }, }, Name: "columns", }, Separator: nil, Value: &ast.ArrayExpression{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 55, Line: 68, }, File: "from_group_test.flux", Source: "[\"_measurement\", \"_field\", \"t0\"]", Start: ast.Position{ Column: 23, Line: 68, }, }, }, Elements: []ast.Expression{&ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 38, Line: 68, }, File: "from_group_test.flux", Source: "\"_measurement\"", Start: ast.Position{ Column: 24, Line: 68, }, }, }, Value: "_measurement", }, &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 48, Line: 68, }, File: "from_group_test.flux", Source: "\"_field\"", Start: ast.Position{ Column: 40, Line: 68, }, }, }, Value: "_field", }, &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 54, Line: 68, }, File: "from_group_test.flux", Source: "\"t0\"", Start: ast.Position{ Column: 50, Line: 68, }, }, }, Value: "t0", }}, Lbrack: nil, Rbrack: nil, }, }}, Rbrace: nil, With: nil, }}, BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 56, Line: 68, }, File: "from_group_test.flux", Source: "group(columns: [\"_measurement\", \"_field\", \"t0\"])", Start: ast.Position{ Column: 8, Line: 68, }, }, }, Callee: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 13, Line: 68, }, File: "from_group_test.flux", Source: "group", Start: ast.Position{ Column: 8, Line: 68, }, }, }, Name: "group", }, Lparen: nil, Rparen: nil, }, }, Lparen: nil, Params: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 18, Line: 67, }, File: "from_group_test.flux", Source: "tables=<-", Start: ast.Position{ Column: 9, Line: 67, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 15, Line: 67, }, File: "from_group_test.flux", Source: "tables", Start: ast.Position{ Column: 9, Line: 67, }, }, }, Name: "tables", }, Separator: nil, Value: &ast.PipeLiteral{BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 18, Line: 67, }, File: "from_group_test.flux", Source: "<-", Start: ast.Position{ Column: 16, Line: 67, }, }, }}, }}, Rparan: nil, }, }, &ast.TestStatement{ Assignment: &ast.VariableAssignment{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 79, Line: 70, }, File: "from_group_test.flux", Source: "from = () => ({input: input, want: testing.loadMem(csv: data), fn: pass})", Start: ast.Position{ Column: 6, Line: 70, }, }, }, ID: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 10, Line: 70, }, File: "from_group_test.flux", Source: "from", Start: ast.Position{ Column: 6, Line: 70, }, }, }, Name: "from", }, Init: &ast.FunctionExpression{ Arrow: nil, BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 79, Line: 70, }, File: "from_group_test.flux", Source: "() => ({input: input, want: testing.loadMem(csv: data), fn: pass})", Start: ast.Position{ Column: 13, Line: 70, }, }, }, Body: &ast.ParenExpression{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 79, Line: 70, }, File: "from_group_test.flux", Source: "({input: input, want: testing.loadMem(csv: data), fn: pass})", Start: ast.Position{ Column: 19, Line: 70, }, }, }, Expression: &ast.ObjectExpression{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 78, Line: 70, }, File: "from_group_test.flux", Source: "{input: input, want: testing.loadMem(csv: data), fn: pass}", Start: ast.Position{ Column: 20, Line: 70, }, }, }, Lbrace: nil, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 33, Line: 70, }, File: "from_group_test.flux", Source: "input: input", Start: ast.Position{ Column: 21, Line: 70, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 26, Line: 70, }, File: "from_group_test.flux", Source: "input", Start: ast.Position{ Column: 21, Line: 70, }, }, }, Name: "input", }, Separator: nil, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 33, Line: 70, }, File: "from_group_test.flux", Source: "input", Start: ast.Position{ Column: 28, Line: 70, }, }, }, Name: "input", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 67, Line: 70, }, File: "from_group_test.flux", Source: "want: testing.loadMem(csv: data)", Start: ast.Position{ Column: 35, Line: 70, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 39, Line: 70, }, File: "from_group_test.flux", Source: "want", Start: ast.Position{ Column: 35, Line: 70, }, }, }, Name: "want", }, Separator: nil, Value: &ast.CallExpression{ Arguments: []ast.Expression{&ast.ObjectExpression{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 66, Line: 70, }, File: "from_group_test.flux", Source: "csv: data", Start: ast.Position{ Column: 57, Line: 70, }, }, }, Lbrace: nil, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 66, Line: 70, }, File: "from_group_test.flux", Source: "csv: data", Start: ast.Position{ Column: 57, Line: 70, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 60, Line: 70, }, File: "from_group_test.flux", Source: "csv", Start: ast.Position{ Column: 57, Line: 70, }, }, }, Name: "csv", }, Separator: nil, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 66, Line: 70, }, File: "from_group_test.flux", Source: "data", Start: ast.Position{ Column: 62, Line: 70, }, }, }, Name: "data", }, }}, Rbrace: nil, With: nil, }}, BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 67, Line: 70, }, File: "from_group_test.flux", Source: "testing.loadMem(csv: data)", Start: ast.Position{ Column: 41, Line: 70, }, }, }, Callee: &ast.MemberExpression{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 56, Line: 70, }, File: "from_group_test.flux", Source: "testing.loadMem", Start: ast.Position{ Column: 41, Line: 70, }, }, }, Lbrack: nil, Object: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 48, Line: 70, }, File: "from_group_test.flux", Source: "testing", Start: ast.Position{ Column: 41, Line: 70, }, }, }, Name: "testing", }, Property: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 56, Line: 70, }, File: "from_group_test.flux", Source: "loadMem", Start: ast.Position{ Column: 49, Line: 70, }, }, }, Name: "loadMem", }, Rbrack: nil, }, Lparen: nil, Rparen: nil, }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 77, Line: 70, }, File: "from_group_test.flux", Source: "fn: pass", Start: ast.Position{ Column: 69, Line: 70, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 71, Line: 70, }, File: "from_group_test.flux", Source: "fn", Start: ast.Position{ Column: 69, Line: 70, }, }, }, Name: "fn", }, Separator: nil, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 77, Line: 70, }, File: "from_group_test.flux", Source: "pass", Start: ast.Position{ Column: 73, Line: 70, }, }, }, Name: "pass", }, }}, Rbrace: nil, With: nil, }, Lparen: nil, Rparen: nil, }, Lparen: nil, Params: []*ast.Property{}, Rparan: nil, }, }, BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 79, Line: 70, }, File: "from_group_test.flux", Source: "test from = () => ({input: input, want: testing.loadMem(csv: data), fn: pass})", Start: ast.Position{ Column: 1, Line: 70, }, }, }, }}, Eof: nil, Imports: []*ast.ImportDeclaration{&ast.ImportDeclaration{ As: nil, BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 17, Line: 4, }, File: "from_group_test.flux", Source: "import \"testing\"", Start: ast.Position{ Column: 1, Line: 4, }, }, }, Path: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 17, Line: 4, }, File: "from_group_test.flux", Source: "\"testing\"", Start: ast.Position{ Column: 8, Line: 4, }, }, }, Value: "testing", }, }, &ast.ImportDeclaration{ As: nil, BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 15, Line: 5, }, File: "from_group_test.flux", Source: "import \"array\"", Start: ast.Position{ Column: 1, Line: 5, }, }, }, Path: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 15, Line: 5, }, File: "from_group_test.flux", Source: "\"array\"", Start: ast.Position{ Column: 8, Line: 5, }, }, }, Value: "array", }, }}, Metadata: "parser-type=rust", Name: "from_group_test.flux", Package: &ast.PackageClause{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 19, Line: 1, }, File: "from_group_test.flux", Source: "package array_test", Start: ast.Position{ Column: 1, Line: 1, }, }, }, Name: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 19, Line: 1, }, File: "from_group_test.flux", Source: "array_test", Start: ast.Position{ Column: 9, Line: 1, }, }, }, Name: "array_test", }, }, }, &ast.File{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 79, Line: 69, }, File: "from_test.flux", Source: "package array_test\n\n\nimport \"testing\"\nimport \"array\"\n\noption now = () => 2018-12-19T22:14:30Z\n\ndata = \"\n#datatype,string,long,string,string,string,dateTime:RFC3339,boolean\n#group,false,false,false,false,false,false,false\n#default,_result,,,,,,\n,result,table,_measurement,_field,t0,_time,_value\n,,0,m0,f0,tagvalue,2018-12-19T22:13:30Z,false\n,,0,m0,f0,tagvalue,2018-12-19T22:13:40Z,true\n,,0,m0,f0,tagvalue,2018-12-19T22:13:50Z,false\n,,0,m0,f0,tagvalue,2018-12-19T22:14:00Z,false\n,,0,m0,f0,tagvalue,2018-12-19T22:14:10Z,true\n,,0,m0,f0,tagvalue,2018-12-19T22:14:20Z,true\n\"\ninput = array.from(\n rows: [\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:30Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:40Z,\n _value: true,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:50Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:00Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:10Z,\n _value: true,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:20Z,\n _value: true,\n },\n ],\n)\npass = (tables=<-) => tables\n\ntest from = () => ({input: input, want: testing.loadMem(csv: data), fn: pass})", Start: ast.Position{ Column: 1, Line: 1, }, }, }, Body: []ast.Statement{&ast.OptionStatement{ Assignment: &ast.VariableAssignment{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 7, }, File: "from_test.flux", Source: "now = () => 2018-12-19T22:14:30Z", Start: ast.Position{ Column: 8, Line: 7, }, }, }, ID: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 11, Line: 7, }, File: "from_test.flux", Source: "now", Start: ast.Position{ Column: 8, Line: 7, }, }, }, Name: "now", }, Init: &ast.FunctionExpression{ Arrow: nil, BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 7, }, File: "from_test.flux", Source: "() => 2018-12-19T22:14:30Z", Start: ast.Position{ Column: 14, Line: 7, }, }, }, Body: &ast.DateTimeLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 7, }, File: "from_test.flux", Source: "2018-12-19T22:14:30Z", Start: ast.Position{ Column: 20, Line: 7, }, }, }, Value: parser.MustParseTime("2018-12-19T22:14:30Z"), }, Lparen: nil, Params: []*ast.Property{}, Rparan: nil, }, }, BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 7, }, File: "from_test.flux", Source: "option now = () => 2018-12-19T22:14:30Z", Start: ast.Position{ Column: 1, Line: 7, }, }, }, }, &ast.VariableAssignment{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 2, Line: 20, }, File: "from_test.flux", Source: "data = \"\n#datatype,string,long,string,string,string,dateTime:RFC3339,boolean\n#group,false,false,false,false,false,false,false\n#default,_result,,,,,,\n,result,table,_measurement,_field,t0,_time,_value\n,,0,m0,f0,tagvalue,2018-12-19T22:13:30Z,false\n,,0,m0,f0,tagvalue,2018-12-19T22:13:40Z,true\n,,0,m0,f0,tagvalue,2018-12-19T22:13:50Z,false\n,,0,m0,f0,tagvalue,2018-12-19T22:14:00Z,false\n,,0,m0,f0,tagvalue,2018-12-19T22:14:10Z,true\n,,0,m0,f0,tagvalue,2018-12-19T22:14:20Z,true\n\"", Start: ast.Position{ Column: 1, Line: 9, }, }, }, ID: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 5, Line: 9, }, File: "from_test.flux", Source: "data", Start: ast.Position{ Column: 1, Line: 9, }, }, }, Name: "data", }, Init: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 2, Line: 20, }, File: "from_test.flux", Source: "\"\n#datatype,string,long,string,string,string,dateTime:RFC3339,boolean\n#group,false,false,false,false,false,false,false\n#default,_result,,,,,,\n,result,table,_measurement,_field,t0,_time,_value\n,,0,m0,f0,tagvalue,2018-12-19T22:13:30Z,false\n,,0,m0,f0,tagvalue,2018-12-19T22:13:40Z,true\n,,0,m0,f0,tagvalue,2018-12-19T22:13:50Z,false\n,,0,m0,f0,tagvalue,2018-12-19T22:14:00Z,false\n,,0,m0,f0,tagvalue,2018-12-19T22:14:10Z,true\n,,0,m0,f0,tagvalue,2018-12-19T22:14:20Z,true\n\"", Start: ast.Position{ Column: 8, Line: 9, }, }, }, Value: "\n#datatype,string,long,string,string,string,dateTime:RFC3339,boolean\n#group,false,false,false,false,false,false,false\n#default,_result,,,,,,\n,result,table,_measurement,_field,t0,_time,_value\n,,0,m0,f0,tagvalue,2018-12-19T22:13:30Z,false\n,,0,m0,f0,tagvalue,2018-12-19T22:13:40Z,true\n,,0,m0,f0,tagvalue,2018-12-19T22:13:50Z,false\n,,0,m0,f0,tagvalue,2018-12-19T22:14:00Z,false\n,,0,m0,f0,tagvalue,2018-12-19T22:14:10Z,true\n,,0,m0,f0,tagvalue,2018-12-19T22:14:20Z,true\n", }, }, &ast.VariableAssignment{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 2, Line: 66, }, File: "from_test.flux", Source: "input = array.from(\n rows: [\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:30Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:40Z,\n _value: true,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:50Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:00Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:10Z,\n _value: true,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:20Z,\n _value: true,\n },\n ],\n)", Start: ast.Position{ Column: 1, Line: 21, }, }, }, ID: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 6, Line: 21, }, File: "from_test.flux", Source: "input", Start: ast.Position{ Column: 1, Line: 21, }, }, }, Name: "input", }, Init: &ast.CallExpression{ Arguments: []ast.Expression{&ast.ObjectExpression{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 6, Line: 65, }, File: "from_test.flux", Source: "rows: [\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:30Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:40Z,\n _value: true,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:50Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:00Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:10Z,\n _value: true,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:20Z,\n _value: true,\n },\n ]", Start: ast.Position{ Column: 5, Line: 22, }, }, }, Lbrace: nil, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 6, Line: 65, }, File: "from_test.flux", Source: "rows: [\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:30Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:40Z,\n _value: true,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:50Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:00Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:10Z,\n _value: true,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:20Z,\n _value: true,\n },\n ]", Start: ast.Position{ Column: 5, Line: 22, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 9, Line: 22, }, File: "from_test.flux", Source: "rows", Start: ast.Position{ Column: 5, Line: 22, }, }, }, Name: "rows", }, Separator: nil, Value: &ast.ArrayExpression{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 6, Line: 65, }, File: "from_test.flux", Source: "[\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:30Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:40Z,\n _value: true,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:50Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:00Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:10Z,\n _value: true,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:20Z,\n _value: true,\n },\n ]", Start: ast.Position{ Column: 11, Line: 22, }, }, }, Elements: []ast.Expression{&ast.ObjectExpression{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 10, Line: 29, }, File: "from_test.flux", Source: "{\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:30Z,\n _value: false,\n }", Start: ast.Position{ Column: 9, Line: 23, }, }, }, Lbrace: nil, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 31, Line: 24, }, File: "from_test.flux", Source: "_measurement: \"m0\"", Start: ast.Position{ Column: 13, Line: 24, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 24, }, File: "from_test.flux", Source: "_measurement", Start: ast.Position{ Column: 13, Line: 24, }, }, }, Name: "_measurement", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 31, Line: 24, }, File: "from_test.flux", Source: "\"m0\"", Start: ast.Position{ Column: 27, Line: 24, }, }, }, Value: "m0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 25, }, File: "from_test.flux", Source: "_field: \"f0\"", Start: ast.Position{ Column: 13, Line: 25, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 19, Line: 25, }, File: "from_test.flux", Source: "_field", Start: ast.Position{ Column: 13, Line: 25, }, }, }, Name: "_field", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 25, }, File: "from_test.flux", Source: "\"f0\"", Start: ast.Position{ Column: 21, Line: 25, }, }, }, Value: "f0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 27, Line: 26, }, File: "from_test.flux", Source: "t0: \"tagvalue\"", Start: ast.Position{ Column: 13, Line: 26, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 15, Line: 26, }, File: "from_test.flux", Source: "t0", Start: ast.Position{ Column: 13, Line: 26, }, }, }, Name: "t0", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 27, Line: 26, }, File: "from_test.flux", Source: "\"tagvalue\"", Start: ast.Position{ Column: 17, Line: 26, }, }, }, Value: "tagvalue", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 27, }, File: "from_test.flux", Source: "_time: 2018-12-19T22:13:30Z", Start: ast.Position{ Column: 13, Line: 27, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 18, Line: 27, }, File: "from_test.flux", Source: "_time", Start: ast.Position{ Column: 13, Line: 27, }, }, }, Name: "_time", }, Separator: nil, Value: &ast.DateTimeLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 27, }, File: "from_test.flux", Source: "2018-12-19T22:13:30Z", Start: ast.Position{ Column: 20, Line: 27, }, }, }, Value: parser.MustParseTime("2018-12-19T22:13:30Z"), }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 26, Line: 28, }, File: "from_test.flux", Source: "_value: false", Start: ast.Position{ Column: 13, Line: 28, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 19, Line: 28, }, File: "from_test.flux", Source: "_value", Start: ast.Position{ Column: 13, Line: 28, }, }, }, Name: "_value", }, Separator: nil, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 26, Line: 28, }, File: "from_test.flux", Source: "false", Start: ast.Position{ Column: 21, Line: 28, }, }, }, Name: "false", }, }}, Rbrace: nil, With: nil, }, &ast.ObjectExpression{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 10, Line: 36, }, File: "from_test.flux", Source: "{\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:40Z,\n _value: true,\n }", Start: ast.Position{ Column: 9, Line: 30, }, }, }, Lbrace: nil, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 31, Line: 31, }, File: "from_test.flux", Source: "_measurement: \"m0\"", Start: ast.Position{ Column: 13, Line: 31, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 31, }, File: "from_test.flux", Source: "_measurement", Start: ast.Position{ Column: 13, Line: 31, }, }, }, Name: "_measurement", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 31, Line: 31, }, File: "from_test.flux", Source: "\"m0\"", Start: ast.Position{ Column: 27, Line: 31, }, }, }, Value: "m0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 32, }, File: "from_test.flux", Source: "_field: \"f0\"", Start: ast.Position{ Column: 13, Line: 32, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 19, Line: 32, }, File: "from_test.flux", Source: "_field", Start: ast.Position{ Column: 13, Line: 32, }, }, }, Name: "_field", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 32, }, File: "from_test.flux", Source: "\"f0\"", Start: ast.Position{ Column: 21, Line: 32, }, }, }, Value: "f0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 27, Line: 33, }, File: "from_test.flux", Source: "t0: \"tagvalue\"", Start: ast.Position{ Column: 13, Line: 33, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 15, Line: 33, }, File: "from_test.flux", Source: "t0", Start: ast.Position{ Column: 13, Line: 33, }, }, }, Name: "t0", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 27, Line: 33, }, File: "from_test.flux", Source: "\"tagvalue\"", Start: ast.Position{ Column: 17, Line: 33, }, }, }, Value: "tagvalue", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 34, }, File: "from_test.flux", Source: "_time: 2018-12-19T22:13:40Z", Start: ast.Position{ Column: 13, Line: 34, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 18, Line: 34, }, File: "from_test.flux", Source: "_time", Start: ast.Position{ Column: 13, Line: 34, }, }, }, Name: "_time", }, Separator: nil, Value: &ast.DateTimeLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 34, }, File: "from_test.flux", Source: "2018-12-19T22:13:40Z", Start: ast.Position{ Column: 20, Line: 34, }, }, }, Value: parser.MustParseTime("2018-12-19T22:13:40Z"), }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 35, }, File: "from_test.flux", Source: "_value: true", Start: ast.Position{ Column: 13, Line: 35, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 19, Line: 35, }, File: "from_test.flux", Source: "_value", Start: ast.Position{ Column: 13, Line: 35, }, }, }, Name: "_value", }, Separator: nil, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 35, }, File: "from_test.flux", Source: "true", Start: ast.Position{ Column: 21, Line: 35, }, }, }, Name: "true", }, }}, Rbrace: nil, With: nil, }, &ast.ObjectExpression{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 10, Line: 43, }, File: "from_test.flux", Source: "{\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:50Z,\n _value: false,\n }", Start: ast.Position{ Column: 9, Line: 37, }, }, }, Lbrace: nil, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 31, Line: 38, }, File: "from_test.flux", Source: "_measurement: \"m0\"", Start: ast.Position{ Column: 13, Line: 38, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 38, }, File: "from_test.flux", Source: "_measurement", Start: ast.Position{ Column: 13, Line: 38, }, }, }, Name: "_measurement", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 31, Line: 38, }, File: "from_test.flux", Source: "\"m0\"", Start: ast.Position{ Column: 27, Line: 38, }, }, }, Value: "m0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 39, }, File: "from_test.flux", Source: "_field: \"f0\"", Start: ast.Position{ Column: 13, Line: 39, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 19, Line: 39, }, File: "from_test.flux", Source: "_field", Start: ast.Position{ Column: 13, Line: 39, }, }, }, Name: "_field", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 39, }, File: "from_test.flux", Source: "\"f0\"", Start: ast.Position{ Column: 21, Line: 39, }, }, }, Value: "f0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 27, Line: 40, }, File: "from_test.flux", Source: "t0: \"tagvalue\"", Start: ast.Position{ Column: 13, Line: 40, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 15, Line: 40, }, File: "from_test.flux", Source: "t0", Start: ast.Position{ Column: 13, Line: 40, }, }, }, Name: "t0", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 27, Line: 40, }, File: "from_test.flux", Source: "\"tagvalue\"", Start: ast.Position{ Column: 17, Line: 40, }, }, }, Value: "tagvalue", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 41, }, File: "from_test.flux", Source: "_time: 2018-12-19T22:13:50Z", Start: ast.Position{ Column: 13, Line: 41, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 18, Line: 41, }, File: "from_test.flux", Source: "_time", Start: ast.Position{ Column: 13, Line: 41, }, }, }, Name: "_time", }, Separator: nil, Value: &ast.DateTimeLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 41, }, File: "from_test.flux", Source: "2018-12-19T22:13:50Z", Start: ast.Position{ Column: 20, Line: 41, }, }, }, Value: parser.MustParseTime("2018-12-19T22:13:50Z"), }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 26, Line: 42, }, File: "from_test.flux", Source: "_value: false", Start: ast.Position{ Column: 13, Line: 42, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 19, Line: 42, }, File: "from_test.flux", Source: "_value", Start: ast.Position{ Column: 13, Line: 42, }, }, }, Name: "_value", }, Separator: nil, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 26, Line: 42, }, File: "from_test.flux", Source: "false", Start: ast.Position{ Column: 21, Line: 42, }, }, }, Name: "false", }, }}, Rbrace: nil, With: nil, }, &ast.ObjectExpression{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 10, Line: 50, }, File: "from_test.flux", Source: "{\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:00Z,\n _value: false,\n }", Start: ast.Position{ Column: 9, Line: 44, }, }, }, Lbrace: nil, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 31, Line: 45, }, File: "from_test.flux", Source: "_measurement: \"m0\"", Start: ast.Position{ Column: 13, Line: 45, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 45, }, File: "from_test.flux", Source: "_measurement", Start: ast.Position{ Column: 13, Line: 45, }, }, }, Name: "_measurement", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 31, Line: 45, }, File: "from_test.flux", Source: "\"m0\"", Start: ast.Position{ Column: 27, Line: 45, }, }, }, Value: "m0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 46, }, File: "from_test.flux", Source: "_field: \"f0\"", Start: ast.Position{ Column: 13, Line: 46, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 19, Line: 46, }, File: "from_test.flux", Source: "_field", Start: ast.Position{ Column: 13, Line: 46, }, }, }, Name: "_field", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 46, }, File: "from_test.flux", Source: "\"f0\"", Start: ast.Position{ Column: 21, Line: 46, }, }, }, Value: "f0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 27, Line: 47, }, File: "from_test.flux", Source: "t0: \"tagvalue\"", Start: ast.Position{ Column: 13, Line: 47, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 15, Line: 47, }, File: "from_test.flux", Source: "t0", Start: ast.Position{ Column: 13, Line: 47, }, }, }, Name: "t0", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 27, Line: 47, }, File: "from_test.flux", Source: "\"tagvalue\"", Start: ast.Position{ Column: 17, Line: 47, }, }, }, Value: "tagvalue", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 48, }, File: "from_test.flux", Source: "_time: 2018-12-19T22:14:00Z", Start: ast.Position{ Column: 13, Line: 48, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 18, Line: 48, }, File: "from_test.flux", Source: "_time", Start: ast.Position{ Column: 13, Line: 48, }, }, }, Name: "_time", }, Separator: nil, Value: &ast.DateTimeLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 48, }, File: "from_test.flux", Source: "2018-12-19T22:14:00Z", Start: ast.Position{ Column: 20, Line: 48, }, }, }, Value: parser.MustParseTime("2018-12-19T22:14:00Z"), }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 26, Line: 49, }, File: "from_test.flux", Source: "_value: false", Start: ast.Position{ Column: 13, Line: 49, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 19, Line: 49, }, File: "from_test.flux", Source: "_value", Start: ast.Position{ Column: 13, Line: 49, }, }, }, Name: "_value", }, Separator: nil, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 26, Line: 49, }, File: "from_test.flux", Source: "false", Start: ast.Position{ Column: 21, Line: 49, }, }, }, Name: "false", }, }}, Rbrace: nil, With: nil, }, &ast.ObjectExpression{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 10, Line: 57, }, File: "from_test.flux", Source: "{\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:10Z,\n _value: true,\n }", Start: ast.Position{ Column: 9, Line: 51, }, }, }, Lbrace: nil, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 31, Line: 52, }, File: "from_test.flux", Source: "_measurement: \"m0\"", Start: ast.Position{ Column: 13, Line: 52, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 52, }, File: "from_test.flux", Source: "_measurement", Start: ast.Position{ Column: 13, Line: 52, }, }, }, Name: "_measurement", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 31, Line: 52, }, File: "from_test.flux", Source: "\"m0\"", Start: ast.Position{ Column: 27, Line: 52, }, }, }, Value: "m0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 53, }, File: "from_test.flux", Source: "_field: \"f0\"", Start: ast.Position{ Column: 13, Line: 53, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 19, Line: 53, }, File: "from_test.flux", Source: "_field", Start: ast.Position{ Column: 13, Line: 53, }, }, }, Name: "_field", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 53, }, File: "from_test.flux", Source: "\"f0\"", Start: ast.Position{ Column: 21, Line: 53, }, }, }, Value: "f0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 27, Line: 54, }, File: "from_test.flux", Source: "t0: \"tagvalue\"", Start: ast.Position{ Column: 13, Line: 54, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 15, Line: 54, }, File: "from_test.flux", Source: "t0", Start: ast.Position{ Column: 13, Line: 54, }, }, }, Name: "t0", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 27, Line: 54, }, File: "from_test.flux", Source: "\"tagvalue\"", Start: ast.Position{ Column: 17, Line: 54, }, }, }, Value: "tagvalue", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 55, }, File: "from_test.flux", Source: "_time: 2018-12-19T22:14:10Z", Start: ast.Position{ Column: 13, Line: 55, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 18, Line: 55, }, File: "from_test.flux", Source: "_time", Start: ast.Position{ Column: 13, Line: 55, }, }, }, Name: "_time", }, Separator: nil, Value: &ast.DateTimeLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 55, }, File: "from_test.flux", Source: "2018-12-19T22:14:10Z", Start: ast.Position{ Column: 20, Line: 55, }, }, }, Value: parser.MustParseTime("2018-12-19T22:14:10Z"), }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 56, }, File: "from_test.flux", Source: "_value: true", Start: ast.Position{ Column: 13, Line: 56, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 19, Line: 56, }, File: "from_test.flux", Source: "_value", Start: ast.Position{ Column: 13, Line: 56, }, }, }, Name: "_value", }, Separator: nil, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 56, }, File: "from_test.flux", Source: "true", Start: ast.Position{ Column: 21, Line: 56, }, }, }, Name: "true", }, }}, Rbrace: nil, With: nil, }, &ast.ObjectExpression{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 10, Line: 64, }, File: "from_test.flux", Source: "{\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:20Z,\n _value: true,\n }", Start: ast.Position{ Column: 9, Line: 58, }, }, }, Lbrace: nil, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 31, Line: 59, }, File: "from_test.flux", Source: "_measurement: \"m0\"", Start: ast.Position{ Column: 13, Line: 59, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 59, }, File: "from_test.flux", Source: "_measurement", Start: ast.Position{ Column: 13, Line: 59, }, }, }, Name: "_measurement", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 31, Line: 59, }, File: "from_test.flux", Source: "\"m0\"", Start: ast.Position{ Column: 27, Line: 59, }, }, }, Value: "m0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 60, }, File: "from_test.flux", Source: "_field: \"f0\"", Start: ast.Position{ Column: 13, Line: 60, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 19, Line: 60, }, File: "from_test.flux", Source: "_field", Start: ast.Position{ Column: 13, Line: 60, }, }, }, Name: "_field", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 60, }, File: "from_test.flux", Source: "\"f0\"", Start: ast.Position{ Column: 21, Line: 60, }, }, }, Value: "f0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 27, Line: 61, }, File: "from_test.flux", Source: "t0: \"tagvalue\"", Start: ast.Position{ Column: 13, Line: 61, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 15, Line: 61, }, File: "from_test.flux", Source: "t0", Start: ast.Position{ Column: 13, Line: 61, }, }, }, Name: "t0", }, Separator: nil, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 27, Line: 61, }, File: "from_test.flux", Source: "\"tagvalue\"", Start: ast.Position{ Column: 17, Line: 61, }, }, }, Value: "tagvalue", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 62, }, File: "from_test.flux", Source: "_time: 2018-12-19T22:14:20Z", Start: ast.Position{ Column: 13, Line: 62, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 18, Line: 62, }, File: "from_test.flux", Source: "_time", Start: ast.Position{ Column: 13, Line: 62, }, }, }, Name: "_time", }, Separator: nil, Value: &ast.DateTimeLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 62, }, File: "from_test.flux", Source: "2018-12-19T22:14:20Z", Start: ast.Position{ Column: 20, Line: 62, }, }, }, Value: parser.MustParseTime("2018-12-19T22:14:20Z"), }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 63, }, File: "from_test.flux", Source: "_value: true", Start: ast.Position{ Column: 13, Line: 63, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 19, Line: 63, }, File: "from_test.flux", Source: "_value", Start: ast.Position{ Column: 13, Line: 63, }, }, }, Name: "_value", }, Separator: nil, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 25, Line: 63, }, File: "from_test.flux", Source: "true", Start: ast.Position{ Column: 21, Line: 63, }, }, }, Name: "true", }, }}, Rbrace: nil, With: nil, }}, Lbrack: nil, Rbrack: nil, }, }}, Rbrace: nil, With: nil, }}, BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 2, Line: 66, }, File: "from_test.flux", Source: "array.from(\n rows: [\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:30Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:40Z,\n _value: true,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:13:50Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:00Z,\n _value: false,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:10Z,\n _value: true,\n },\n {\n _measurement: \"m0\",\n _field: \"f0\",\n t0: \"tagvalue\",\n _time: 2018-12-19T22:14:20Z,\n _value: true,\n },\n ],\n)", Start: ast.Position{ Column: 9, Line: 21, }, }, }, Callee: &ast.MemberExpression{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 19, Line: 21, }, File: "from_test.flux", Source: "array.from", Start: ast.Position{ Column: 9, Line: 21, }, }, }, Lbrack: nil, Object: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 21, }, File: "from_test.flux", Source: "array", Start: ast.Position{ Column: 9, Line: 21, }, }, }, Name: "array", }, Property: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 19, Line: 21, }, File: "from_test.flux", Source: "from", Start: ast.Position{ Column: 15, Line: 21, }, }, }, Name: "from", }, Rbrack: nil, }, Lparen: nil, Rparen: nil, }, }, &ast.VariableAssignment{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 29, Line: 67, }, File: "from_test.flux", Source: "pass = (tables=<-) => tables", Start: ast.Position{ Column: 1, Line: 67, }, }, }, ID: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 5, Line: 67, }, File: "from_test.flux", Source: "pass", Start: ast.Position{ Column: 1, Line: 67, }, }, }, Name: "pass", }, Init: &ast.FunctionExpression{ Arrow: nil, BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 29, Line: 67, }, File: "from_test.flux", Source: "(tables=<-) => tables", Start: ast.Position{ Column: 8, Line: 67, }, }, }, Body: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 29, Line: 67, }, File: "from_test.flux", Source: "tables", Start: ast.Position{ Column: 23, Line: 67, }, }, }, Name: "tables", }, Lparen: nil, Params: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 18, Line: 67, }, File: "from_test.flux", Source: "tables=<-", Start: ast.Position{ Column: 9, Line: 67, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 15, Line: 67, }, File: "from_test.flux", Source: "tables", Start: ast.Position{ Column: 9, Line: 67, }, }, }, Name: "tables", }, Separator: nil, Value: &ast.PipeLiteral{BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 18, Line: 67, }, File: "from_test.flux", Source: "<-", Start: ast.Position{ Column: 16, Line: 67, }, }, }}, }}, Rparan: nil, }, }, &ast.TestStatement{ Assignment: &ast.VariableAssignment{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 79, Line: 69, }, File: "from_test.flux", Source: "from = () => ({input: input, want: testing.loadMem(csv: data), fn: pass})", Start: ast.Position{ Column: 6, Line: 69, }, }, }, ID: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 10, Line: 69, }, File: "from_test.flux", Source: "from", Start: ast.Position{ Column: 6, Line: 69, }, }, }, Name: "from", }, Init: &ast.FunctionExpression{ Arrow: nil, BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 79, Line: 69, }, File: "from_test.flux", Source: "() => ({input: input, want: testing.loadMem(csv: data), fn: pass})", Start: ast.Position{ Column: 13, Line: 69, }, }, }, Body: &ast.ParenExpression{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 79, Line: 69, }, File: "from_test.flux", Source: "({input: input, want: testing.loadMem(csv: data), fn: pass})", Start: ast.Position{ Column: 19, Line: 69, }, }, }, Expression: &ast.ObjectExpression{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 78, Line: 69, }, File: "from_test.flux", Source: "{input: input, want: testing.loadMem(csv: data), fn: pass}", Start: ast.Position{ Column: 20, Line: 69, }, }, }, Lbrace: nil, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 33, Line: 69, }, File: "from_test.flux", Source: "input: input", Start: ast.Position{ Column: 21, Line: 69, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 26, Line: 69, }, File: "from_test.flux", Source: "input", Start: ast.Position{ Column: 21, Line: 69, }, }, }, Name: "input", }, Separator: nil, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 33, Line: 69, }, File: "from_test.flux", Source: "input", Start: ast.Position{ Column: 28, Line: 69, }, }, }, Name: "input", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 67, Line: 69, }, File: "from_test.flux", Source: "want: testing.loadMem(csv: data)", Start: ast.Position{ Column: 35, Line: 69, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 39, Line: 69, }, File: "from_test.flux", Source: "want", Start: ast.Position{ Column: 35, Line: 69, }, }, }, Name: "want", }, Separator: nil, Value: &ast.CallExpression{ Arguments: []ast.Expression{&ast.ObjectExpression{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 66, Line: 69, }, File: "from_test.flux", Source: "csv: data", Start: ast.Position{ Column: 57, Line: 69, }, }, }, Lbrace: nil, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 66, Line: 69, }, File: "from_test.flux", Source: "csv: data", Start: ast.Position{ Column: 57, Line: 69, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 60, Line: 69, }, File: "from_test.flux", Source: "csv", Start: ast.Position{ Column: 57, Line: 69, }, }, }, Name: "csv", }, Separator: nil, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 66, Line: 69, }, File: "from_test.flux", Source: "data", Start: ast.Position{ Column: 62, Line: 69, }, }, }, Name: "data", }, }}, Rbrace: nil, With: nil, }}, BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 67, Line: 69, }, File: "from_test.flux", Source: "testing.loadMem(csv: data)", Start: ast.Position{ Column: 41, Line: 69, }, }, }, Callee: &ast.MemberExpression{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 56, Line: 69, }, File: "from_test.flux", Source: "testing.loadMem", Start: ast.Position{ Column: 41, Line: 69, }, }, }, Lbrack: nil, Object: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 48, Line: 69, }, File: "from_test.flux", Source: "testing", Start: ast.Position{ Column: 41, Line: 69, }, }, }, Name: "testing", }, Property: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 56, Line: 69, }, File: "from_test.flux", Source: "loadMem", Start: ast.Position{ Column: 49, Line: 69, }, }, }, Name: "loadMem", }, Rbrack: nil, }, Lparen: nil, Rparen: nil, }, }, &ast.Property{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 77, Line: 69, }, File: "from_test.flux", Source: "fn: pass", Start: ast.Position{ Column: 69, Line: 69, }, }, }, Comma: nil, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 71, Line: 69, }, File: "from_test.flux", Source: "fn", Start: ast.Position{ Column: 69, Line: 69, }, }, }, Name: "fn", }, Separator: nil, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 77, Line: 69, }, File: "from_test.flux", Source: "pass", Start: ast.Position{ Column: 73, Line: 69, }, }, }, Name: "pass", }, }}, Rbrace: nil, With: nil, }, Lparen: nil, Rparen: nil, }, Lparen: nil, Params: []*ast.Property{}, Rparan: nil, }, }, BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 79, Line: 69, }, File: "from_test.flux", Source: "test from = () => ({input: input, want: testing.loadMem(csv: data), fn: pass})", Start: ast.Position{ Column: 1, Line: 69, }, }, }, }}, Eof: nil, Imports: []*ast.ImportDeclaration{&ast.ImportDeclaration{ As: nil, BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 17, Line: 4, }, File: "from_test.flux", Source: "import \"testing\"", Start: ast.Position{ Column: 1, Line: 4, }, }, }, Path: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 17, Line: 4, }, File: "from_test.flux", Source: "\"testing\"", Start: ast.Position{ Column: 8, Line: 4, }, }, }, Value: "testing", }, }, &ast.ImportDeclaration{ As: nil, BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 15, Line: 5, }, File: "from_test.flux", Source: "import \"array\"", Start: ast.Position{ Column: 1, Line: 5, }, }, }, Path: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 15, Line: 5, }, File: "from_test.flux", Source: "\"array\"", Start: ast.Position{ Column: 8, Line: 5, }, }, }, Value: "array", }, }}, Metadata: "parser-type=rust", Name: "from_test.flux", Package: &ast.PackageClause{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 19, Line: 1, }, File: "from_test.flux", Source: "package array_test", Start: ast.Position{ Column: 1, Line: 1, }, }, }, Name: &ast.Identifier{ BaseNode: ast.BaseNode{ Comments: nil, Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 19, Line: 1, }, File: "from_test.flux", Source: "array_test", Start: ast.Position{ Column: 9, Line: 1, }, }, }, Name: "array_test", }, }, }}, Package: "array_test", Path: "array", }}
Functions ¶
This section is empty.
Types ¶
type FromOpSpec ¶
func (*FromOpSpec) Kind ¶
func (s *FromOpSpec) Kind() flux.OperationKind
type FromProcedureSpec ¶
type FromProcedureSpec struct { plan.DefaultCost Rows values.Array }
func (*FromProcedureSpec) Copy ¶
func (s *FromProcedureSpec) Copy() plan.ProcedureSpec
func (*FromProcedureSpec) Kind ¶
func (s *FromProcedureSpec) Kind() plan.ProcedureKind
Click to show internal directories.
Click to hide internal directories.