Documentation ¶
Index ¶
Constants ¶
View Source
const (
FromKind = "experimental/array.from"
)
Variables ¶
View Source
var FluxTestPackages = []*ast.Package{&ast.Package{ BaseNode: ast.BaseNode{ Errors: nil, Loc: nil, }, Files: []*ast.File{&ast.File{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 3, Line: 66, }, File: "from_group_test.flux", Source: "package array_test\n\nimport \"testing\"\nimport \"experimental/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\"\n\ninput = array.from(rows: [{\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:30Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:40Z,\n\t_value: true,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:50Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:00Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:10Z,\n\t_value: true,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:20Z,\n\t_value: true,\n}])\n\npass = (tables=<-) => tables\n\t|> group(columns: [\"_measurement\", \"_field\", \"t0\"])\n\ntest from = () => ({\n\tinput: input,\n\twant: testing.loadMem(csv: data),\n\tfn: pass,\n})", Start: ast.Position{ Column: 1, Line: 1, }, }, }, Body: []ast.Statement{&ast.OptionStatement{ Assignment: &ast.VariableAssignment{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 6, }, File: "from_group_test.flux", Source: "now = () => 2018-12-19T22:14:30Z", Start: ast.Position{ Column: 8, Line: 6, }, }, }, ID: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 11, Line: 6, }, File: "from_group_test.flux", Source: "now", Start: ast.Position{ Column: 8, Line: 6, }, }, }, Name: "now", }, Init: &ast.FunctionExpression{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 6, }, File: "from_group_test.flux", Source: "() => 2018-12-19T22:14:30Z", Start: ast.Position{ Column: 14, Line: 6, }, }, }, Body: &ast.DateTimeLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 6, }, File: "from_group_test.flux", Source: "2018-12-19T22:14:30Z", Start: ast.Position{ Column: 20, Line: 6, }, }, }, Value: parser.MustParseTime("2018-12-19T22:14:30Z"), }, Params: []*ast.Property{}, }, }, BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 6, }, File: "from_group_test.flux", Source: "option now = () => 2018-12-19T22:14:30Z", Start: ast.Position{ Column: 1, Line: 6, }, }, }, }, &ast.VariableAssignment{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 2, Line: 19, }, 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: 8, }, }, }, ID: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 5, Line: 8, }, File: "from_group_test.flux", Source: "data", Start: ast.Position{ Column: 1, Line: 8, }, }, }, Name: "data", }, Init: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 2, Line: 19, }, 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: 8, }, }, }, 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{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 4, Line: 57, }, File: "from_group_test.flux", Source: "input = array.from(rows: [{\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:30Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:40Z,\n\t_value: true,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:50Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:00Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:10Z,\n\t_value: true,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:20Z,\n\t_value: true,\n}])", Start: ast.Position{ Column: 1, Line: 21, }, }, }, ID: &ast.Identifier{ BaseNode: ast.BaseNode{ 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{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 3, Line: 57, }, File: "from_group_test.flux", Source: "rows: [{\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:30Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:40Z,\n\t_value: true,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:50Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:00Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:10Z,\n\t_value: true,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:20Z,\n\t_value: true,\n}]", Start: ast.Position{ Column: 20, Line: 21, }, }, }, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 3, Line: 57, }, File: "from_group_test.flux", Source: "rows: [{\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:30Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:40Z,\n\t_value: true,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:50Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:00Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:10Z,\n\t_value: true,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:20Z,\n\t_value: true,\n}]", Start: ast.Position{ Column: 20, Line: 21, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 24, Line: 21, }, File: "from_group_test.flux", Source: "rows", Start: ast.Position{ Column: 20, Line: 21, }, }, }, Name: "rows", }, Value: &ast.ArrayExpression{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 3, Line: 57, }, File: "from_group_test.flux", Source: "[{\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:30Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:40Z,\n\t_value: true,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:50Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:00Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:10Z,\n\t_value: true,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:20Z,\n\t_value: true,\n}]", Start: ast.Position{ Column: 26, Line: 21, }, }, }, Elements: []ast.Expression{&ast.ObjectExpression{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 2, Line: 27, }, File: "from_group_test.flux", Source: "{\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:30Z,\n\t_value: false,\n}", Start: ast.Position{ Column: 27, Line: 21, }, }, }, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 20, Line: 22, }, File: "from_group_test.flux", Source: "_measurement: \"m0\"", Start: ast.Position{ Column: 2, Line: 22, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 22, }, File: "from_group_test.flux", Source: "_measurement", Start: ast.Position{ Column: 2, Line: 22, }, }, }, Name: "_measurement", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 20, Line: 22, }, File: "from_group_test.flux", Source: "\"m0\"", Start: ast.Position{ Column: 16, Line: 22, }, }, }, Value: "m0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 23, }, File: "from_group_test.flux", Source: "_field: \"f0\"", Start: ast.Position{ Column: 2, Line: 23, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 8, Line: 23, }, File: "from_group_test.flux", Source: "_field", Start: ast.Position{ Column: 2, Line: 23, }, }, }, Name: "_field", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 23, }, File: "from_group_test.flux", Source: "\"f0\"", Start: ast.Position{ Column: 10, Line: 23, }, }, }, Value: "f0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 16, Line: 24, }, File: "from_group_test.flux", Source: "t0: \"tagvalue\"", Start: ast.Position{ Column: 2, Line: 24, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 4, Line: 24, }, File: "from_group_test.flux", Source: "t0", Start: ast.Position{ Column: 2, Line: 24, }, }, }, Name: "t0", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 16, Line: 24, }, File: "from_group_test.flux", Source: "\"tagvalue\"", Start: ast.Position{ Column: 6, Line: 24, }, }, }, Value: "tagvalue", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 29, Line: 25, }, File: "from_group_test.flux", Source: "_time: 2018-12-19T22:13:30Z", Start: ast.Position{ Column: 2, Line: 25, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 7, Line: 25, }, File: "from_group_test.flux", Source: "_time", Start: ast.Position{ Column: 2, Line: 25, }, }, }, Name: "_time", }, Value: &ast.DateTimeLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 29, Line: 25, }, File: "from_group_test.flux", Source: "2018-12-19T22:13:30Z", Start: ast.Position{ Column: 9, Line: 25, }, }, }, Value: parser.MustParseTime("2018-12-19T22:13:30Z"), }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 15, Line: 26, }, File: "from_group_test.flux", Source: "_value: false", Start: ast.Position{ Column: 2, Line: 26, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 8, Line: 26, }, File: "from_group_test.flux", Source: "_value", Start: ast.Position{ Column: 2, Line: 26, }, }, }, Name: "_value", }, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 15, Line: 26, }, File: "from_group_test.flux", Source: "false", Start: ast.Position{ Column: 10, Line: 26, }, }, }, Name: "false", }, }}, With: nil, }, &ast.ObjectExpression{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 2, Line: 33, }, File: "from_group_test.flux", Source: "{\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:40Z,\n\t_value: true,\n}", Start: ast.Position{ Column: 4, Line: 27, }, }, }, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 20, Line: 28, }, File: "from_group_test.flux", Source: "_measurement: \"m0\"", Start: ast.Position{ Column: 2, Line: 28, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 28, }, File: "from_group_test.flux", Source: "_measurement", Start: ast.Position{ Column: 2, Line: 28, }, }, }, Name: "_measurement", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 20, Line: 28, }, File: "from_group_test.flux", Source: "\"m0\"", Start: ast.Position{ Column: 16, Line: 28, }, }, }, Value: "m0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 29, }, File: "from_group_test.flux", Source: "_field: \"f0\"", Start: ast.Position{ Column: 2, Line: 29, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 8, Line: 29, }, File: "from_group_test.flux", Source: "_field", Start: ast.Position{ Column: 2, Line: 29, }, }, }, Name: "_field", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 29, }, File: "from_group_test.flux", Source: "\"f0\"", Start: ast.Position{ Column: 10, Line: 29, }, }, }, Value: "f0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 16, Line: 30, }, File: "from_group_test.flux", Source: "t0: \"tagvalue\"", Start: ast.Position{ Column: 2, Line: 30, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 4, Line: 30, }, File: "from_group_test.flux", Source: "t0", Start: ast.Position{ Column: 2, Line: 30, }, }, }, Name: "t0", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 16, Line: 30, }, File: "from_group_test.flux", Source: "\"tagvalue\"", Start: ast.Position{ Column: 6, Line: 30, }, }, }, Value: "tagvalue", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 29, Line: 31, }, File: "from_group_test.flux", Source: "_time: 2018-12-19T22:13:40Z", Start: ast.Position{ Column: 2, Line: 31, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 7, Line: 31, }, File: "from_group_test.flux", Source: "_time", Start: ast.Position{ Column: 2, Line: 31, }, }, }, Name: "_time", }, Value: &ast.DateTimeLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 29, Line: 31, }, File: "from_group_test.flux", Source: "2018-12-19T22:13:40Z", Start: ast.Position{ Column: 9, Line: 31, }, }, }, Value: parser.MustParseTime("2018-12-19T22:13:40Z"), }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 32, }, File: "from_group_test.flux", Source: "_value: true", Start: ast.Position{ Column: 2, Line: 32, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 8, Line: 32, }, File: "from_group_test.flux", Source: "_value", Start: ast.Position{ Column: 2, Line: 32, }, }, }, Name: "_value", }, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 32, }, File: "from_group_test.flux", Source: "true", Start: ast.Position{ Column: 10, Line: 32, }, }, }, Name: "true", }, }}, With: nil, }, &ast.ObjectExpression{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 2, Line: 39, }, File: "from_group_test.flux", Source: "{\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:50Z,\n\t_value: false,\n}", Start: ast.Position{ Column: 4, Line: 33, }, }, }, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 20, Line: 34, }, File: "from_group_test.flux", Source: "_measurement: \"m0\"", Start: ast.Position{ Column: 2, Line: 34, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 34, }, File: "from_group_test.flux", Source: "_measurement", Start: ast.Position{ Column: 2, Line: 34, }, }, }, Name: "_measurement", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 20, Line: 34, }, File: "from_group_test.flux", Source: "\"m0\"", Start: ast.Position{ Column: 16, Line: 34, }, }, }, Value: "m0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 35, }, File: "from_group_test.flux", Source: "_field: \"f0\"", Start: ast.Position{ Column: 2, Line: 35, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 8, Line: 35, }, File: "from_group_test.flux", Source: "_field", Start: ast.Position{ Column: 2, Line: 35, }, }, }, Name: "_field", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 35, }, File: "from_group_test.flux", Source: "\"f0\"", Start: ast.Position{ Column: 10, Line: 35, }, }, }, Value: "f0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 16, Line: 36, }, File: "from_group_test.flux", Source: "t0: \"tagvalue\"", Start: ast.Position{ Column: 2, Line: 36, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 4, Line: 36, }, File: "from_group_test.flux", Source: "t0", Start: ast.Position{ Column: 2, Line: 36, }, }, }, Name: "t0", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 16, Line: 36, }, File: "from_group_test.flux", Source: "\"tagvalue\"", Start: ast.Position{ Column: 6, Line: 36, }, }, }, Value: "tagvalue", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 29, Line: 37, }, File: "from_group_test.flux", Source: "_time: 2018-12-19T22:13:50Z", Start: ast.Position{ Column: 2, Line: 37, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 7, Line: 37, }, File: "from_group_test.flux", Source: "_time", Start: ast.Position{ Column: 2, Line: 37, }, }, }, Name: "_time", }, Value: &ast.DateTimeLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 29, Line: 37, }, File: "from_group_test.flux", Source: "2018-12-19T22:13:50Z", Start: ast.Position{ Column: 9, Line: 37, }, }, }, Value: parser.MustParseTime("2018-12-19T22:13:50Z"), }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 15, Line: 38, }, File: "from_group_test.flux", Source: "_value: false", Start: ast.Position{ Column: 2, Line: 38, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 8, Line: 38, }, File: "from_group_test.flux", Source: "_value", Start: ast.Position{ Column: 2, Line: 38, }, }, }, Name: "_value", }, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 15, Line: 38, }, File: "from_group_test.flux", Source: "false", Start: ast.Position{ Column: 10, Line: 38, }, }, }, Name: "false", }, }}, With: nil, }, &ast.ObjectExpression{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 2, Line: 45, }, File: "from_group_test.flux", Source: "{\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:00Z,\n\t_value: false,\n}", Start: ast.Position{ Column: 4, Line: 39, }, }, }, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 20, Line: 40, }, File: "from_group_test.flux", Source: "_measurement: \"m0\"", Start: ast.Position{ Column: 2, Line: 40, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 40, }, File: "from_group_test.flux", Source: "_measurement", Start: ast.Position{ Column: 2, Line: 40, }, }, }, Name: "_measurement", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 20, Line: 40, }, File: "from_group_test.flux", Source: "\"m0\"", Start: ast.Position{ Column: 16, Line: 40, }, }, }, Value: "m0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 41, }, File: "from_group_test.flux", Source: "_field: \"f0\"", Start: ast.Position{ Column: 2, Line: 41, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 8, Line: 41, }, File: "from_group_test.flux", Source: "_field", Start: ast.Position{ Column: 2, Line: 41, }, }, }, Name: "_field", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 41, }, File: "from_group_test.flux", Source: "\"f0\"", Start: ast.Position{ Column: 10, Line: 41, }, }, }, Value: "f0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 16, Line: 42, }, File: "from_group_test.flux", Source: "t0: \"tagvalue\"", Start: ast.Position{ Column: 2, Line: 42, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 4, Line: 42, }, File: "from_group_test.flux", Source: "t0", Start: ast.Position{ Column: 2, Line: 42, }, }, }, Name: "t0", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 16, Line: 42, }, File: "from_group_test.flux", Source: "\"tagvalue\"", Start: ast.Position{ Column: 6, Line: 42, }, }, }, Value: "tagvalue", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 29, Line: 43, }, File: "from_group_test.flux", Source: "_time: 2018-12-19T22:14:00Z", Start: ast.Position{ Column: 2, Line: 43, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 7, Line: 43, }, File: "from_group_test.flux", Source: "_time", Start: ast.Position{ Column: 2, Line: 43, }, }, }, Name: "_time", }, Value: &ast.DateTimeLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 29, Line: 43, }, File: "from_group_test.flux", Source: "2018-12-19T22:14:00Z", Start: ast.Position{ Column: 9, Line: 43, }, }, }, Value: parser.MustParseTime("2018-12-19T22:14:00Z"), }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 15, Line: 44, }, File: "from_group_test.flux", Source: "_value: false", Start: ast.Position{ Column: 2, Line: 44, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 8, Line: 44, }, File: "from_group_test.flux", Source: "_value", Start: ast.Position{ Column: 2, Line: 44, }, }, }, Name: "_value", }, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 15, Line: 44, }, File: "from_group_test.flux", Source: "false", Start: ast.Position{ Column: 10, Line: 44, }, }, }, Name: "false", }, }}, With: nil, }, &ast.ObjectExpression{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 2, Line: 51, }, File: "from_group_test.flux", Source: "{\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:10Z,\n\t_value: true,\n}", Start: ast.Position{ Column: 4, Line: 45, }, }, }, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 20, Line: 46, }, File: "from_group_test.flux", Source: "_measurement: \"m0\"", Start: ast.Position{ Column: 2, Line: 46, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 46, }, File: "from_group_test.flux", Source: "_measurement", Start: ast.Position{ Column: 2, Line: 46, }, }, }, Name: "_measurement", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 20, Line: 46, }, File: "from_group_test.flux", Source: "\"m0\"", Start: ast.Position{ Column: 16, Line: 46, }, }, }, Value: "m0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 47, }, File: "from_group_test.flux", Source: "_field: \"f0\"", Start: ast.Position{ Column: 2, Line: 47, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 8, Line: 47, }, File: "from_group_test.flux", Source: "_field", Start: ast.Position{ Column: 2, Line: 47, }, }, }, Name: "_field", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 47, }, File: "from_group_test.flux", Source: "\"f0\"", Start: ast.Position{ Column: 10, Line: 47, }, }, }, Value: "f0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 16, Line: 48, }, File: "from_group_test.flux", Source: "t0: \"tagvalue\"", Start: ast.Position{ Column: 2, Line: 48, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 4, Line: 48, }, File: "from_group_test.flux", Source: "t0", Start: ast.Position{ Column: 2, Line: 48, }, }, }, Name: "t0", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 16, Line: 48, }, File: "from_group_test.flux", Source: "\"tagvalue\"", Start: ast.Position{ Column: 6, Line: 48, }, }, }, Value: "tagvalue", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 29, Line: 49, }, File: "from_group_test.flux", Source: "_time: 2018-12-19T22:14:10Z", Start: ast.Position{ Column: 2, Line: 49, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 7, Line: 49, }, File: "from_group_test.flux", Source: "_time", Start: ast.Position{ Column: 2, Line: 49, }, }, }, Name: "_time", }, Value: &ast.DateTimeLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 29, Line: 49, }, File: "from_group_test.flux", Source: "2018-12-19T22:14:10Z", Start: ast.Position{ Column: 9, Line: 49, }, }, }, Value: parser.MustParseTime("2018-12-19T22:14:10Z"), }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 50, }, File: "from_group_test.flux", Source: "_value: true", Start: ast.Position{ Column: 2, Line: 50, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 8, Line: 50, }, File: "from_group_test.flux", Source: "_value", Start: ast.Position{ Column: 2, Line: 50, }, }, }, Name: "_value", }, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 50, }, File: "from_group_test.flux", Source: "true", Start: ast.Position{ Column: 10, Line: 50, }, }, }, Name: "true", }, }}, With: nil, }, &ast.ObjectExpression{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 2, Line: 57, }, File: "from_group_test.flux", Source: "{\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:20Z,\n\t_value: true,\n}", Start: ast.Position{ Column: 4, Line: 51, }, }, }, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 20, Line: 52, }, File: "from_group_test.flux", Source: "_measurement: \"m0\"", Start: ast.Position{ Column: 2, Line: 52, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 52, }, File: "from_group_test.flux", Source: "_measurement", Start: ast.Position{ Column: 2, Line: 52, }, }, }, Name: "_measurement", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 20, Line: 52, }, File: "from_group_test.flux", Source: "\"m0\"", Start: ast.Position{ Column: 16, Line: 52, }, }, }, Value: "m0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 53, }, File: "from_group_test.flux", Source: "_field: \"f0\"", Start: ast.Position{ Column: 2, Line: 53, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 8, Line: 53, }, File: "from_group_test.flux", Source: "_field", Start: ast.Position{ Column: 2, Line: 53, }, }, }, Name: "_field", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 53, }, File: "from_group_test.flux", Source: "\"f0\"", Start: ast.Position{ Column: 10, Line: 53, }, }, }, Value: "f0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 16, Line: 54, }, File: "from_group_test.flux", Source: "t0: \"tagvalue\"", Start: ast.Position{ Column: 2, Line: 54, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 4, Line: 54, }, File: "from_group_test.flux", Source: "t0", Start: ast.Position{ Column: 2, Line: 54, }, }, }, Name: "t0", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 16, Line: 54, }, File: "from_group_test.flux", Source: "\"tagvalue\"", Start: ast.Position{ Column: 6, Line: 54, }, }, }, Value: "tagvalue", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 29, Line: 55, }, File: "from_group_test.flux", Source: "_time: 2018-12-19T22:14:20Z", Start: ast.Position{ Column: 2, Line: 55, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 7, Line: 55, }, File: "from_group_test.flux", Source: "_time", Start: ast.Position{ Column: 2, Line: 55, }, }, }, Name: "_time", }, Value: &ast.DateTimeLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 29, Line: 55, }, File: "from_group_test.flux", Source: "2018-12-19T22:14:20Z", Start: ast.Position{ Column: 9, Line: 55, }, }, }, Value: parser.MustParseTime("2018-12-19T22:14:20Z"), }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 56, }, File: "from_group_test.flux", Source: "_value: true", Start: ast.Position{ Column: 2, Line: 56, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 8, Line: 56, }, File: "from_group_test.flux", Source: "_value", Start: ast.Position{ Column: 2, Line: 56, }, }, }, Name: "_value", }, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 56, }, File: "from_group_test.flux", Source: "true", Start: ast.Position{ Column: 10, Line: 56, }, }, }, Name: "true", }, }}, With: nil, }}, }, }}, With: nil, }}, BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 4, Line: 57, }, File: "from_group_test.flux", Source: "array.from(rows: [{\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:30Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:40Z,\n\t_value: true,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:50Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:00Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:10Z,\n\t_value: true,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:20Z,\n\t_value: true,\n}])", Start: ast.Position{ Column: 9, Line: 21, }, }, }, Callee: &ast.MemberExpression{ BaseNode: ast.BaseNode{ 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, }, }, }, Object: &ast.Identifier{ BaseNode: ast.BaseNode{ 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{ 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", }, }, }, }, &ast.VariableAssignment{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 53, Line: 60, }, File: "from_group_test.flux", Source: "pass = (tables=<-) => tables\n\t|> group(columns: [\"_measurement\", \"_field\", \"t0\"])", Start: ast.Position{ Column: 1, Line: 59, }, }, }, ID: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 5, Line: 59, }, File: "from_group_test.flux", Source: "pass", Start: ast.Position{ Column: 1, Line: 59, }, }, }, Name: "pass", }, Init: &ast.FunctionExpression{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 53, Line: 60, }, File: "from_group_test.flux", Source: "(tables=<-) => tables\n\t|> group(columns: [\"_measurement\", \"_field\", \"t0\"])", Start: ast.Position{ Column: 8, Line: 59, }, }, }, Body: &ast.PipeExpression{ Argument: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 29, Line: 59, }, File: "from_group_test.flux", Source: "tables", Start: ast.Position{ Column: 23, Line: 59, }, }, }, Name: "tables", }, BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 53, Line: 60, }, File: "from_group_test.flux", Source: "tables\n\t|> group(columns: [\"_measurement\", \"_field\", \"t0\"])", Start: ast.Position{ Column: 23, Line: 59, }, }, }, Call: &ast.CallExpression{ Arguments: []ast.Expression{&ast.ObjectExpression{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 52, Line: 60, }, File: "from_group_test.flux", Source: "columns: [\"_measurement\", \"_field\", \"t0\"]", Start: ast.Position{ Column: 11, Line: 60, }, }, }, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 52, Line: 60, }, File: "from_group_test.flux", Source: "columns: [\"_measurement\", \"_field\", \"t0\"]", Start: ast.Position{ Column: 11, Line: 60, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 18, Line: 60, }, File: "from_group_test.flux", Source: "columns", Start: ast.Position{ Column: 11, Line: 60, }, }, }, Name: "columns", }, Value: &ast.ArrayExpression{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 52, Line: 60, }, File: "from_group_test.flux", Source: "[\"_measurement\", \"_field\", \"t0\"]", Start: ast.Position{ Column: 20, Line: 60, }, }, }, Elements: []ast.Expression{&ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 35, Line: 60, }, File: "from_group_test.flux", Source: "\"_measurement\"", Start: ast.Position{ Column: 21, Line: 60, }, }, }, Value: "_measurement", }, &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 45, Line: 60, }, File: "from_group_test.flux", Source: "\"_field\"", Start: ast.Position{ Column: 37, Line: 60, }, }, }, Value: "_field", }, &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 51, Line: 60, }, File: "from_group_test.flux", Source: "\"t0\"", Start: ast.Position{ Column: 47, Line: 60, }, }, }, Value: "t0", }}, }, }}, With: nil, }}, BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 53, Line: 60, }, File: "from_group_test.flux", Source: "group(columns: [\"_measurement\", \"_field\", \"t0\"])", Start: ast.Position{ Column: 5, Line: 60, }, }, }, Callee: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 10, Line: 60, }, File: "from_group_test.flux", Source: "group", Start: ast.Position{ Column: 5, Line: 60, }, }, }, Name: "group", }, }, }, Params: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 18, Line: 59, }, File: "from_group_test.flux", Source: "tables=<-", Start: ast.Position{ Column: 9, Line: 59, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 15, Line: 59, }, File: "from_group_test.flux", Source: "tables", Start: ast.Position{ Column: 9, Line: 59, }, }, }, Name: "tables", }, Value: &ast.PipeLiteral{BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 18, Line: 59, }, File: "from_group_test.flux", Source: "<-", Start: ast.Position{ Column: 16, Line: 59, }, }, }}, }}, }, }, &ast.TestStatement{ Assignment: &ast.VariableAssignment{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 3, Line: 66, }, File: "from_group_test.flux", Source: "from = () => ({\n\tinput: input,\n\twant: testing.loadMem(csv: data),\n\tfn: pass,\n})", Start: ast.Position{ Column: 6, Line: 62, }, }, }, ID: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 10, Line: 62, }, File: "from_group_test.flux", Source: "from", Start: ast.Position{ Column: 6, Line: 62, }, }, }, Name: "from", }, Init: &ast.FunctionExpression{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 3, Line: 66, }, File: "from_group_test.flux", Source: "() => ({\n\tinput: input,\n\twant: testing.loadMem(csv: data),\n\tfn: pass,\n})", Start: ast.Position{ Column: 13, Line: 62, }, }, }, Body: &ast.ParenExpression{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 3, Line: 66, }, File: "from_group_test.flux", Source: "({\n\tinput: input,\n\twant: testing.loadMem(csv: data),\n\tfn: pass,\n})", Start: ast.Position{ Column: 19, Line: 62, }, }, }, Expression: &ast.ObjectExpression{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 2, Line: 66, }, File: "from_group_test.flux", Source: "{\n\tinput: input,\n\twant: testing.loadMem(csv: data),\n\tfn: pass,\n}", Start: ast.Position{ Column: 20, Line: 62, }, }, }, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 63, }, File: "from_group_test.flux", Source: "input: input", Start: ast.Position{ Column: 2, Line: 63, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 7, Line: 63, }, File: "from_group_test.flux", Source: "input", Start: ast.Position{ Column: 2, Line: 63, }, }, }, Name: "input", }, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 63, }, File: "from_group_test.flux", Source: "input", Start: ast.Position{ Column: 9, Line: 63, }, }, }, Name: "input", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 34, Line: 64, }, File: "from_group_test.flux", Source: "want: testing.loadMem(csv: data)", Start: ast.Position{ Column: 2, Line: 64, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 6, Line: 64, }, File: "from_group_test.flux", Source: "want", Start: ast.Position{ Column: 2, Line: 64, }, }, }, Name: "want", }, Value: &ast.CallExpression{ Arguments: []ast.Expression{&ast.ObjectExpression{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 33, Line: 64, }, File: "from_group_test.flux", Source: "csv: data", Start: ast.Position{ Column: 24, Line: 64, }, }, }, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 33, Line: 64, }, File: "from_group_test.flux", Source: "csv: data", Start: ast.Position{ Column: 24, Line: 64, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 27, Line: 64, }, File: "from_group_test.flux", Source: "csv", Start: ast.Position{ Column: 24, Line: 64, }, }, }, Name: "csv", }, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 33, Line: 64, }, File: "from_group_test.flux", Source: "data", Start: ast.Position{ Column: 29, Line: 64, }, }, }, Name: "data", }, }}, With: nil, }}, BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 34, Line: 64, }, File: "from_group_test.flux", Source: "testing.loadMem(csv: data)", Start: ast.Position{ Column: 8, Line: 64, }, }, }, Callee: &ast.MemberExpression{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 23, Line: 64, }, File: "from_group_test.flux", Source: "testing.loadMem", Start: ast.Position{ Column: 8, Line: 64, }, }, }, Object: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 15, Line: 64, }, File: "from_group_test.flux", Source: "testing", Start: ast.Position{ Column: 8, Line: 64, }, }, }, Name: "testing", }, Property: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 23, Line: 64, }, File: "from_group_test.flux", Source: "loadMem", Start: ast.Position{ Column: 16, Line: 64, }, }, }, Name: "loadMem", }, }, }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 10, Line: 65, }, File: "from_group_test.flux", Source: "fn: pass", Start: ast.Position{ Column: 2, Line: 65, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 4, Line: 65, }, File: "from_group_test.flux", Source: "fn", Start: ast.Position{ Column: 2, Line: 65, }, }, }, Name: "fn", }, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 10, Line: 65, }, File: "from_group_test.flux", Source: "pass", Start: ast.Position{ Column: 6, Line: 65, }, }, }, Name: "pass", }, }}, With: nil, }, }, Params: []*ast.Property{}, }, }, BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 3, Line: 66, }, File: "from_group_test.flux", Source: "test from = () => ({\n\tinput: input,\n\twant: testing.loadMem(csv: data),\n\tfn: pass,\n})", Start: ast.Position{ Column: 1, Line: 62, }, }, }, }}, Imports: []*ast.ImportDeclaration{&ast.ImportDeclaration{ As: nil, BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 17, Line: 3, }, File: "from_group_test.flux", Source: "import \"testing\"", Start: ast.Position{ Column: 1, Line: 3, }, }, }, Path: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 17, Line: 3, }, File: "from_group_test.flux", Source: "\"testing\"", Start: ast.Position{ Column: 8, Line: 3, }, }, }, Value: "testing", }, }, &ast.ImportDeclaration{ As: nil, BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 28, Line: 4, }, File: "from_group_test.flux", Source: "import \"experimental/array\"", Start: ast.Position{ Column: 1, Line: 4, }, }, }, Path: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 28, Line: 4, }, File: "from_group_test.flux", Source: "\"experimental/array\"", Start: ast.Position{ Column: 8, Line: 4, }, }, }, Value: "experimental/array", }, }}, Metadata: "parser-type=rust", Name: "from_group_test.flux", Package: &ast.PackageClause{ BaseNode: ast.BaseNode{ 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{ 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{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 3, Line: 65, }, File: "from_test.flux", Source: "package array_test\n\nimport \"testing\"\nimport \"experimental/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\"\n\ninput = array.from(rows: [{\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:30Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:40Z,\n\t_value: true,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:50Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:00Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:10Z,\n\t_value: true,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:20Z,\n\t_value: true,\n}])\n\npass = (tables=<-) => tables\n\ntest from = () => ({\n\tinput: input,\n\twant: testing.loadMem(csv: data),\n\tfn: pass,\n})", Start: ast.Position{ Column: 1, Line: 1, }, }, }, Body: []ast.Statement{&ast.OptionStatement{ Assignment: &ast.VariableAssignment{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 6, }, File: "from_test.flux", Source: "now = () => 2018-12-19T22:14:30Z", Start: ast.Position{ Column: 8, Line: 6, }, }, }, ID: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 11, Line: 6, }, File: "from_test.flux", Source: "now", Start: ast.Position{ Column: 8, Line: 6, }, }, }, Name: "now", }, Init: &ast.FunctionExpression{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 6, }, File: "from_test.flux", Source: "() => 2018-12-19T22:14:30Z", Start: ast.Position{ Column: 14, Line: 6, }, }, }, Body: &ast.DateTimeLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 6, }, File: "from_test.flux", Source: "2018-12-19T22:14:30Z", Start: ast.Position{ Column: 20, Line: 6, }, }, }, Value: parser.MustParseTime("2018-12-19T22:14:30Z"), }, Params: []*ast.Property{}, }, }, BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 40, Line: 6, }, File: "from_test.flux", Source: "option now = () => 2018-12-19T22:14:30Z", Start: ast.Position{ Column: 1, Line: 6, }, }, }, }, &ast.VariableAssignment{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 2, Line: 19, }, 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: 8, }, }, }, ID: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 5, Line: 8, }, File: "from_test.flux", Source: "data", Start: ast.Position{ Column: 1, Line: 8, }, }, }, Name: "data", }, Init: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 2, Line: 19, }, 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: 8, }, }, }, 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{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 4, Line: 57, }, File: "from_test.flux", Source: "input = array.from(rows: [{\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:30Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:40Z,\n\t_value: true,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:50Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:00Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:10Z,\n\t_value: true,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:20Z,\n\t_value: true,\n}])", Start: ast.Position{ Column: 1, Line: 21, }, }, }, ID: &ast.Identifier{ BaseNode: ast.BaseNode{ 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{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 3, Line: 57, }, File: "from_test.flux", Source: "rows: [{\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:30Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:40Z,\n\t_value: true,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:50Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:00Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:10Z,\n\t_value: true,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:20Z,\n\t_value: true,\n}]", Start: ast.Position{ Column: 20, Line: 21, }, }, }, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 3, Line: 57, }, File: "from_test.flux", Source: "rows: [{\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:30Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:40Z,\n\t_value: true,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:50Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:00Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:10Z,\n\t_value: true,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:20Z,\n\t_value: true,\n}]", Start: ast.Position{ Column: 20, Line: 21, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 24, Line: 21, }, File: "from_test.flux", Source: "rows", Start: ast.Position{ Column: 20, Line: 21, }, }, }, Name: "rows", }, Value: &ast.ArrayExpression{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 3, Line: 57, }, File: "from_test.flux", Source: "[{\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:30Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:40Z,\n\t_value: true,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:50Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:00Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:10Z,\n\t_value: true,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:20Z,\n\t_value: true,\n}]", Start: ast.Position{ Column: 26, Line: 21, }, }, }, Elements: []ast.Expression{&ast.ObjectExpression{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 2, Line: 27, }, File: "from_test.flux", Source: "{\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:30Z,\n\t_value: false,\n}", Start: ast.Position{ Column: 27, Line: 21, }, }, }, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 20, Line: 22, }, File: "from_test.flux", Source: "_measurement: \"m0\"", Start: ast.Position{ Column: 2, Line: 22, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 22, }, File: "from_test.flux", Source: "_measurement", Start: ast.Position{ Column: 2, Line: 22, }, }, }, Name: "_measurement", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 20, Line: 22, }, File: "from_test.flux", Source: "\"m0\"", Start: ast.Position{ Column: 16, Line: 22, }, }, }, Value: "m0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 23, }, File: "from_test.flux", Source: "_field: \"f0\"", Start: ast.Position{ Column: 2, Line: 23, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 8, Line: 23, }, File: "from_test.flux", Source: "_field", Start: ast.Position{ Column: 2, Line: 23, }, }, }, Name: "_field", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 23, }, File: "from_test.flux", Source: "\"f0\"", Start: ast.Position{ Column: 10, Line: 23, }, }, }, Value: "f0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 16, Line: 24, }, File: "from_test.flux", Source: "t0: \"tagvalue\"", Start: ast.Position{ Column: 2, Line: 24, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 4, Line: 24, }, File: "from_test.flux", Source: "t0", Start: ast.Position{ Column: 2, Line: 24, }, }, }, Name: "t0", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 16, Line: 24, }, File: "from_test.flux", Source: "\"tagvalue\"", Start: ast.Position{ Column: 6, Line: 24, }, }, }, Value: "tagvalue", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 29, Line: 25, }, File: "from_test.flux", Source: "_time: 2018-12-19T22:13:30Z", Start: ast.Position{ Column: 2, Line: 25, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 7, Line: 25, }, File: "from_test.flux", Source: "_time", Start: ast.Position{ Column: 2, Line: 25, }, }, }, Name: "_time", }, Value: &ast.DateTimeLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 29, Line: 25, }, File: "from_test.flux", Source: "2018-12-19T22:13:30Z", Start: ast.Position{ Column: 9, Line: 25, }, }, }, Value: parser.MustParseTime("2018-12-19T22:13:30Z"), }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 15, Line: 26, }, File: "from_test.flux", Source: "_value: false", Start: ast.Position{ Column: 2, Line: 26, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 8, Line: 26, }, File: "from_test.flux", Source: "_value", Start: ast.Position{ Column: 2, Line: 26, }, }, }, Name: "_value", }, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 15, Line: 26, }, File: "from_test.flux", Source: "false", Start: ast.Position{ Column: 10, Line: 26, }, }, }, Name: "false", }, }}, With: nil, }, &ast.ObjectExpression{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 2, Line: 33, }, File: "from_test.flux", Source: "{\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:40Z,\n\t_value: true,\n}", Start: ast.Position{ Column: 4, Line: 27, }, }, }, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 20, Line: 28, }, File: "from_test.flux", Source: "_measurement: \"m0\"", Start: ast.Position{ Column: 2, Line: 28, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 28, }, File: "from_test.flux", Source: "_measurement", Start: ast.Position{ Column: 2, Line: 28, }, }, }, Name: "_measurement", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 20, Line: 28, }, File: "from_test.flux", Source: "\"m0\"", Start: ast.Position{ Column: 16, Line: 28, }, }, }, Value: "m0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 29, }, File: "from_test.flux", Source: "_field: \"f0\"", Start: ast.Position{ Column: 2, Line: 29, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 8, Line: 29, }, File: "from_test.flux", Source: "_field", Start: ast.Position{ Column: 2, Line: 29, }, }, }, Name: "_field", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 29, }, File: "from_test.flux", Source: "\"f0\"", Start: ast.Position{ Column: 10, Line: 29, }, }, }, Value: "f0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 16, Line: 30, }, File: "from_test.flux", Source: "t0: \"tagvalue\"", Start: ast.Position{ Column: 2, Line: 30, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 4, Line: 30, }, File: "from_test.flux", Source: "t0", Start: ast.Position{ Column: 2, Line: 30, }, }, }, Name: "t0", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 16, Line: 30, }, File: "from_test.flux", Source: "\"tagvalue\"", Start: ast.Position{ Column: 6, Line: 30, }, }, }, Value: "tagvalue", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 29, Line: 31, }, File: "from_test.flux", Source: "_time: 2018-12-19T22:13:40Z", Start: ast.Position{ Column: 2, Line: 31, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 7, Line: 31, }, File: "from_test.flux", Source: "_time", Start: ast.Position{ Column: 2, Line: 31, }, }, }, Name: "_time", }, Value: &ast.DateTimeLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 29, Line: 31, }, File: "from_test.flux", Source: "2018-12-19T22:13:40Z", Start: ast.Position{ Column: 9, Line: 31, }, }, }, Value: parser.MustParseTime("2018-12-19T22:13:40Z"), }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 32, }, File: "from_test.flux", Source: "_value: true", Start: ast.Position{ Column: 2, Line: 32, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 8, Line: 32, }, File: "from_test.flux", Source: "_value", Start: ast.Position{ Column: 2, Line: 32, }, }, }, Name: "_value", }, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 32, }, File: "from_test.flux", Source: "true", Start: ast.Position{ Column: 10, Line: 32, }, }, }, Name: "true", }, }}, With: nil, }, &ast.ObjectExpression{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 2, Line: 39, }, File: "from_test.flux", Source: "{\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:50Z,\n\t_value: false,\n}", Start: ast.Position{ Column: 4, Line: 33, }, }, }, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 20, Line: 34, }, File: "from_test.flux", Source: "_measurement: \"m0\"", Start: ast.Position{ Column: 2, Line: 34, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 34, }, File: "from_test.flux", Source: "_measurement", Start: ast.Position{ Column: 2, Line: 34, }, }, }, Name: "_measurement", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 20, Line: 34, }, File: "from_test.flux", Source: "\"m0\"", Start: ast.Position{ Column: 16, Line: 34, }, }, }, Value: "m0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 35, }, File: "from_test.flux", Source: "_field: \"f0\"", Start: ast.Position{ Column: 2, Line: 35, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 8, Line: 35, }, File: "from_test.flux", Source: "_field", Start: ast.Position{ Column: 2, Line: 35, }, }, }, Name: "_field", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 35, }, File: "from_test.flux", Source: "\"f0\"", Start: ast.Position{ Column: 10, Line: 35, }, }, }, Value: "f0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 16, Line: 36, }, File: "from_test.flux", Source: "t0: \"tagvalue\"", Start: ast.Position{ Column: 2, Line: 36, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 4, Line: 36, }, File: "from_test.flux", Source: "t0", Start: ast.Position{ Column: 2, Line: 36, }, }, }, Name: "t0", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 16, Line: 36, }, File: "from_test.flux", Source: "\"tagvalue\"", Start: ast.Position{ Column: 6, Line: 36, }, }, }, Value: "tagvalue", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 29, Line: 37, }, File: "from_test.flux", Source: "_time: 2018-12-19T22:13:50Z", Start: ast.Position{ Column: 2, Line: 37, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 7, Line: 37, }, File: "from_test.flux", Source: "_time", Start: ast.Position{ Column: 2, Line: 37, }, }, }, Name: "_time", }, Value: &ast.DateTimeLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 29, Line: 37, }, File: "from_test.flux", Source: "2018-12-19T22:13:50Z", Start: ast.Position{ Column: 9, Line: 37, }, }, }, Value: parser.MustParseTime("2018-12-19T22:13:50Z"), }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 15, Line: 38, }, File: "from_test.flux", Source: "_value: false", Start: ast.Position{ Column: 2, Line: 38, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 8, Line: 38, }, File: "from_test.flux", Source: "_value", Start: ast.Position{ Column: 2, Line: 38, }, }, }, Name: "_value", }, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 15, Line: 38, }, File: "from_test.flux", Source: "false", Start: ast.Position{ Column: 10, Line: 38, }, }, }, Name: "false", }, }}, With: nil, }, &ast.ObjectExpression{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 2, Line: 45, }, File: "from_test.flux", Source: "{\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:00Z,\n\t_value: false,\n}", Start: ast.Position{ Column: 4, Line: 39, }, }, }, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 20, Line: 40, }, File: "from_test.flux", Source: "_measurement: \"m0\"", Start: ast.Position{ Column: 2, Line: 40, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 40, }, File: "from_test.flux", Source: "_measurement", Start: ast.Position{ Column: 2, Line: 40, }, }, }, Name: "_measurement", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 20, Line: 40, }, File: "from_test.flux", Source: "\"m0\"", Start: ast.Position{ Column: 16, Line: 40, }, }, }, Value: "m0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 41, }, File: "from_test.flux", Source: "_field: \"f0\"", Start: ast.Position{ Column: 2, Line: 41, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 8, Line: 41, }, File: "from_test.flux", Source: "_field", Start: ast.Position{ Column: 2, Line: 41, }, }, }, Name: "_field", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 41, }, File: "from_test.flux", Source: "\"f0\"", Start: ast.Position{ Column: 10, Line: 41, }, }, }, Value: "f0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 16, Line: 42, }, File: "from_test.flux", Source: "t0: \"tagvalue\"", Start: ast.Position{ Column: 2, Line: 42, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 4, Line: 42, }, File: "from_test.flux", Source: "t0", Start: ast.Position{ Column: 2, Line: 42, }, }, }, Name: "t0", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 16, Line: 42, }, File: "from_test.flux", Source: "\"tagvalue\"", Start: ast.Position{ Column: 6, Line: 42, }, }, }, Value: "tagvalue", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 29, Line: 43, }, File: "from_test.flux", Source: "_time: 2018-12-19T22:14:00Z", Start: ast.Position{ Column: 2, Line: 43, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 7, Line: 43, }, File: "from_test.flux", Source: "_time", Start: ast.Position{ Column: 2, Line: 43, }, }, }, Name: "_time", }, Value: &ast.DateTimeLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 29, Line: 43, }, File: "from_test.flux", Source: "2018-12-19T22:14:00Z", Start: ast.Position{ Column: 9, Line: 43, }, }, }, Value: parser.MustParseTime("2018-12-19T22:14:00Z"), }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 15, Line: 44, }, File: "from_test.flux", Source: "_value: false", Start: ast.Position{ Column: 2, Line: 44, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 8, Line: 44, }, File: "from_test.flux", Source: "_value", Start: ast.Position{ Column: 2, Line: 44, }, }, }, Name: "_value", }, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 15, Line: 44, }, File: "from_test.flux", Source: "false", Start: ast.Position{ Column: 10, Line: 44, }, }, }, Name: "false", }, }}, With: nil, }, &ast.ObjectExpression{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 2, Line: 51, }, File: "from_test.flux", Source: "{\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:10Z,\n\t_value: true,\n}", Start: ast.Position{ Column: 4, Line: 45, }, }, }, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 20, Line: 46, }, File: "from_test.flux", Source: "_measurement: \"m0\"", Start: ast.Position{ Column: 2, Line: 46, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 46, }, File: "from_test.flux", Source: "_measurement", Start: ast.Position{ Column: 2, Line: 46, }, }, }, Name: "_measurement", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 20, Line: 46, }, File: "from_test.flux", Source: "\"m0\"", Start: ast.Position{ Column: 16, Line: 46, }, }, }, Value: "m0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 47, }, File: "from_test.flux", Source: "_field: \"f0\"", Start: ast.Position{ Column: 2, Line: 47, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 8, Line: 47, }, File: "from_test.flux", Source: "_field", Start: ast.Position{ Column: 2, Line: 47, }, }, }, Name: "_field", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 47, }, File: "from_test.flux", Source: "\"f0\"", Start: ast.Position{ Column: 10, Line: 47, }, }, }, Value: "f0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 16, Line: 48, }, File: "from_test.flux", Source: "t0: \"tagvalue\"", Start: ast.Position{ Column: 2, Line: 48, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 4, Line: 48, }, File: "from_test.flux", Source: "t0", Start: ast.Position{ Column: 2, Line: 48, }, }, }, Name: "t0", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 16, Line: 48, }, File: "from_test.flux", Source: "\"tagvalue\"", Start: ast.Position{ Column: 6, Line: 48, }, }, }, Value: "tagvalue", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 29, Line: 49, }, File: "from_test.flux", Source: "_time: 2018-12-19T22:14:10Z", Start: ast.Position{ Column: 2, Line: 49, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 7, Line: 49, }, File: "from_test.flux", Source: "_time", Start: ast.Position{ Column: 2, Line: 49, }, }, }, Name: "_time", }, Value: &ast.DateTimeLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 29, Line: 49, }, File: "from_test.flux", Source: "2018-12-19T22:14:10Z", Start: ast.Position{ Column: 9, Line: 49, }, }, }, Value: parser.MustParseTime("2018-12-19T22:14:10Z"), }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 50, }, File: "from_test.flux", Source: "_value: true", Start: ast.Position{ Column: 2, Line: 50, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 8, Line: 50, }, File: "from_test.flux", Source: "_value", Start: ast.Position{ Column: 2, Line: 50, }, }, }, Name: "_value", }, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 50, }, File: "from_test.flux", Source: "true", Start: ast.Position{ Column: 10, Line: 50, }, }, }, Name: "true", }, }}, With: nil, }, &ast.ObjectExpression{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 2, Line: 57, }, File: "from_test.flux", Source: "{\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:20Z,\n\t_value: true,\n}", Start: ast.Position{ Column: 4, Line: 51, }, }, }, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 20, Line: 52, }, File: "from_test.flux", Source: "_measurement: \"m0\"", Start: ast.Position{ Column: 2, Line: 52, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 52, }, File: "from_test.flux", Source: "_measurement", Start: ast.Position{ Column: 2, Line: 52, }, }, }, Name: "_measurement", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 20, Line: 52, }, File: "from_test.flux", Source: "\"m0\"", Start: ast.Position{ Column: 16, Line: 52, }, }, }, Value: "m0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 53, }, File: "from_test.flux", Source: "_field: \"f0\"", Start: ast.Position{ Column: 2, Line: 53, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 8, Line: 53, }, File: "from_test.flux", Source: "_field", Start: ast.Position{ Column: 2, Line: 53, }, }, }, Name: "_field", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 53, }, File: "from_test.flux", Source: "\"f0\"", Start: ast.Position{ Column: 10, Line: 53, }, }, }, Value: "f0", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 16, Line: 54, }, File: "from_test.flux", Source: "t0: \"tagvalue\"", Start: ast.Position{ Column: 2, Line: 54, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 4, Line: 54, }, File: "from_test.flux", Source: "t0", Start: ast.Position{ Column: 2, Line: 54, }, }, }, Name: "t0", }, Value: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 16, Line: 54, }, File: "from_test.flux", Source: "\"tagvalue\"", Start: ast.Position{ Column: 6, Line: 54, }, }, }, Value: "tagvalue", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 29, Line: 55, }, File: "from_test.flux", Source: "_time: 2018-12-19T22:14:20Z", Start: ast.Position{ Column: 2, Line: 55, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 7, Line: 55, }, File: "from_test.flux", Source: "_time", Start: ast.Position{ Column: 2, Line: 55, }, }, }, Name: "_time", }, Value: &ast.DateTimeLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 29, Line: 55, }, File: "from_test.flux", Source: "2018-12-19T22:14:20Z", Start: ast.Position{ Column: 9, Line: 55, }, }, }, Value: parser.MustParseTime("2018-12-19T22:14:20Z"), }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 56, }, File: "from_test.flux", Source: "_value: true", Start: ast.Position{ Column: 2, Line: 56, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 8, Line: 56, }, File: "from_test.flux", Source: "_value", Start: ast.Position{ Column: 2, Line: 56, }, }, }, Name: "_value", }, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 56, }, File: "from_test.flux", Source: "true", Start: ast.Position{ Column: 10, Line: 56, }, }, }, Name: "true", }, }}, With: nil, }}, }, }}, With: nil, }}, BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 4, Line: 57, }, File: "from_test.flux", Source: "array.from(rows: [{\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:30Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:40Z,\n\t_value: true,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:13:50Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:00Z,\n\t_value: false,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:10Z,\n\t_value: true,\n}, {\n\t_measurement: \"m0\",\n\t_field: \"f0\",\n\tt0: \"tagvalue\",\n\t_time: 2018-12-19T22:14:20Z,\n\t_value: true,\n}])", Start: ast.Position{ Column: 9, Line: 21, }, }, }, Callee: &ast.MemberExpression{ BaseNode: ast.BaseNode{ 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, }, }, }, Object: &ast.Identifier{ BaseNode: ast.BaseNode{ 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{ 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", }, }, }, }, &ast.VariableAssignment{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 29, Line: 59, }, File: "from_test.flux", Source: "pass = (tables=<-) => tables", Start: ast.Position{ Column: 1, Line: 59, }, }, }, ID: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 5, Line: 59, }, File: "from_test.flux", Source: "pass", Start: ast.Position{ Column: 1, Line: 59, }, }, }, Name: "pass", }, Init: &ast.FunctionExpression{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 29, Line: 59, }, File: "from_test.flux", Source: "(tables=<-) => tables", Start: ast.Position{ Column: 8, Line: 59, }, }, }, Body: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 29, Line: 59, }, File: "from_test.flux", Source: "tables", Start: ast.Position{ Column: 23, Line: 59, }, }, }, Name: "tables", }, Params: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 18, Line: 59, }, File: "from_test.flux", Source: "tables=<-", Start: ast.Position{ Column: 9, Line: 59, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 15, Line: 59, }, File: "from_test.flux", Source: "tables", Start: ast.Position{ Column: 9, Line: 59, }, }, }, Name: "tables", }, Value: &ast.PipeLiteral{BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 18, Line: 59, }, File: "from_test.flux", Source: "<-", Start: ast.Position{ Column: 16, Line: 59, }, }, }}, }}, }, }, &ast.TestStatement{ Assignment: &ast.VariableAssignment{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 3, Line: 65, }, File: "from_test.flux", Source: "from = () => ({\n\tinput: input,\n\twant: testing.loadMem(csv: data),\n\tfn: pass,\n})", Start: ast.Position{ Column: 6, Line: 61, }, }, }, ID: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 10, Line: 61, }, File: "from_test.flux", Source: "from", Start: ast.Position{ Column: 6, Line: 61, }, }, }, Name: "from", }, Init: &ast.FunctionExpression{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 3, Line: 65, }, File: "from_test.flux", Source: "() => ({\n\tinput: input,\n\twant: testing.loadMem(csv: data),\n\tfn: pass,\n})", Start: ast.Position{ Column: 13, Line: 61, }, }, }, Body: &ast.ParenExpression{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 3, Line: 65, }, File: "from_test.flux", Source: "({\n\tinput: input,\n\twant: testing.loadMem(csv: data),\n\tfn: pass,\n})", Start: ast.Position{ Column: 19, Line: 61, }, }, }, Expression: &ast.ObjectExpression{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 2, Line: 65, }, File: "from_test.flux", Source: "{\n\tinput: input,\n\twant: testing.loadMem(csv: data),\n\tfn: pass,\n}", Start: ast.Position{ Column: 20, Line: 61, }, }, }, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 62, }, File: "from_test.flux", Source: "input: input", Start: ast.Position{ Column: 2, Line: 62, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 7, Line: 62, }, File: "from_test.flux", Source: "input", Start: ast.Position{ Column: 2, Line: 62, }, }, }, Name: "input", }, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 14, Line: 62, }, File: "from_test.flux", Source: "input", Start: ast.Position{ Column: 9, Line: 62, }, }, }, Name: "input", }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 34, Line: 63, }, File: "from_test.flux", Source: "want: testing.loadMem(csv: data)", Start: ast.Position{ Column: 2, Line: 63, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 6, Line: 63, }, File: "from_test.flux", Source: "want", Start: ast.Position{ Column: 2, Line: 63, }, }, }, Name: "want", }, Value: &ast.CallExpression{ Arguments: []ast.Expression{&ast.ObjectExpression{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 33, Line: 63, }, File: "from_test.flux", Source: "csv: data", Start: ast.Position{ Column: 24, Line: 63, }, }, }, Properties: []*ast.Property{&ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 33, Line: 63, }, File: "from_test.flux", Source: "csv: data", Start: ast.Position{ Column: 24, Line: 63, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 27, Line: 63, }, File: "from_test.flux", Source: "csv", Start: ast.Position{ Column: 24, Line: 63, }, }, }, Name: "csv", }, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 33, Line: 63, }, File: "from_test.flux", Source: "data", Start: ast.Position{ Column: 29, Line: 63, }, }, }, Name: "data", }, }}, With: nil, }}, BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 34, Line: 63, }, File: "from_test.flux", Source: "testing.loadMem(csv: data)", Start: ast.Position{ Column: 8, Line: 63, }, }, }, Callee: &ast.MemberExpression{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 23, Line: 63, }, File: "from_test.flux", Source: "testing.loadMem", Start: ast.Position{ Column: 8, Line: 63, }, }, }, Object: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 15, Line: 63, }, File: "from_test.flux", Source: "testing", Start: ast.Position{ Column: 8, Line: 63, }, }, }, Name: "testing", }, Property: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 23, Line: 63, }, File: "from_test.flux", Source: "loadMem", Start: ast.Position{ Column: 16, Line: 63, }, }, }, Name: "loadMem", }, }, }, }, &ast.Property{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 10, Line: 64, }, File: "from_test.flux", Source: "fn: pass", Start: ast.Position{ Column: 2, Line: 64, }, }, }, Key: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 4, Line: 64, }, File: "from_test.flux", Source: "fn", Start: ast.Position{ Column: 2, Line: 64, }, }, }, Name: "fn", }, Value: &ast.Identifier{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 10, Line: 64, }, File: "from_test.flux", Source: "pass", Start: ast.Position{ Column: 6, Line: 64, }, }, }, Name: "pass", }, }}, With: nil, }, }, Params: []*ast.Property{}, }, }, BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 3, Line: 65, }, File: "from_test.flux", Source: "test from = () => ({\n\tinput: input,\n\twant: testing.loadMem(csv: data),\n\tfn: pass,\n})", Start: ast.Position{ Column: 1, Line: 61, }, }, }, }}, Imports: []*ast.ImportDeclaration{&ast.ImportDeclaration{ As: nil, BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 17, Line: 3, }, File: "from_test.flux", Source: "import \"testing\"", Start: ast.Position{ Column: 1, Line: 3, }, }, }, Path: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 17, Line: 3, }, File: "from_test.flux", Source: "\"testing\"", Start: ast.Position{ Column: 8, Line: 3, }, }, }, Value: "testing", }, }, &ast.ImportDeclaration{ As: nil, BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 28, Line: 4, }, File: "from_test.flux", Source: "import \"experimental/array\"", Start: ast.Position{ Column: 1, Line: 4, }, }, }, Path: &ast.StringLiteral{ BaseNode: ast.BaseNode{ Errors: nil, Loc: &ast.SourceLocation{ End: ast.Position{ Column: 28, Line: 4, }, File: "from_test.flux", Source: "\"experimental/array\"", Start: ast.Position{ Column: 8, Line: 4, }, }, }, Value: "experimental/array", }, }}, Metadata: "parser-type=rust", Name: "from_test.flux", Package: &ast.PackageClause{ BaseNode: ast.BaseNode{ 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{ 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: "experimental/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.