promql

package
v0.165.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FluxTestPackages = []*ast.Package{&ast.Package{
	BaseNode: ast.BaseNode{
		Comments: nil,
		Errors:   nil,
		Loc:      nil,
	},
	Files: []*ast.File{&ast.File{
		BaseNode: ast.BaseNode{
			Comments: nil,
			Errors:   nil,
			Loc: &ast.SourceLocation{
				End: ast.Position{
					Column: 118,
					Line:   49,
				},
				File:   "changes_test.flux",
				Source: "package promql_test\n\n\nimport \"testing\"\nimport \"internal/promql\"\n\noption now = () => 2030-01-01T00:00:00Z\n\ninData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,2,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,2,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,2,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,1,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,2,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,3,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,1,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,2,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,3,prometheus\n\"\noutData =\n    \"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-01T00:00:00Z,2030-01-01T00:00:00Z,metric_name1,0,prometheus\n,,1,2018-12-01T00:00:00Z,2030-01-01T00:00:00Z,metric_name2,1,prometheus\n,,2,2018-12-01T00:00:00Z,2030-01-01T00:00:00Z,metric_name3,5,prometheus\n\"\nt_changes = (table=<-) =>\n    table\n        |> range(start: 2018-12-01T00:00:00Z)\n        |> promql.changes()\n\ntest _changes = () => ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_changes})",
				Start: ast.Position{
					Column: 1,
					Line:   1,
				},
			},
		},
		Body: []ast.Statement{&ast.OptionStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 40,
							Line:   7,
						},
						File:   "changes_test.flux",
						Source: "now = () => 2030-01-01T00:00:00Z",
						Start: ast.Position{
							Column: 8,
							Line:   7,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 11,
								Line:   7,
							},
							File:   "changes_test.flux",
							Source: "now",
							Start: ast.Position{
								Column: 8,
								Line:   7,
							},
						},
					},
					Name: "now",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 40,
								Line:   7,
							},
							File:   "changes_test.flux",
							Source: "() => 2030-01-01T00:00:00Z",
							Start: ast.Position{
								Column: 14,
								Line:   7,
							},
						},
					},
					Body: &ast.DateTimeLiteral{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 40,
									Line:   7,
								},
								File:   "changes_test.flux",
								Source: "2030-01-01T00:00:00Z",
								Start: ast.Position{
									Column: 20,
									Line:   7,
								},
							},
						},
						Value: parser.MustParseTime("2030-01-01T00:00:00Z"),
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 40,
						Line:   7,
					},
					File:   "changes_test.flux",
					Source: "option now = () => 2030-01-01T00:00:00Z",
					Start: ast.Position{
						Column: 1,
						Line:   7,
					},
				},
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   33,
					},
					File:   "changes_test.flux",
					Source: "inData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,2,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,2,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,2,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,1,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,2,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,3,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,1,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,2,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,3,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   9,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 7,
							Line:   9,
						},
						File:   "changes_test.flux",
						Source: "inData",
						Start: ast.Position{
							Column: 1,
							Line:   9,
						},
					},
				},
				Name: "inData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   33,
						},
						File:   "changes_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,2,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,2,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,2,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,1,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,2,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,3,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,1,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,2,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,3,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   10,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,2,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,2,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,2,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,1,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,2,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,3,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,1,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,2,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,3,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   43,
					},
					File:   "changes_test.flux",
					Source: "outData =\n    \"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-01T00:00:00Z,2030-01-01T00:00:00Z,metric_name1,0,prometheus\n,,1,2018-12-01T00:00:00Z,2030-01-01T00:00:00Z,metric_name2,1,prometheus\n,,2,2018-12-01T00:00:00Z,2030-01-01T00:00:00Z,metric_name3,5,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   34,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 8,
							Line:   34,
						},
						File:   "changes_test.flux",
						Source: "outData",
						Start: ast.Position{
							Column: 1,
							Line:   34,
						},
					},
				},
				Name: "outData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   43,
						},
						File:   "changes_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-01T00:00:00Z,2030-01-01T00:00:00Z,metric_name1,0,prometheus\n,,1,2018-12-01T00:00:00Z,2030-01-01T00:00:00Z,metric_name2,1,prometheus\n,,2,2018-12-01T00:00:00Z,2030-01-01T00:00:00Z,metric_name3,5,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   35,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-01T00:00:00Z,2030-01-01T00:00:00Z,metric_name1,0,prometheus\n,,1,2018-12-01T00:00:00Z,2030-01-01T00:00:00Z,metric_name2,1,prometheus\n,,2,2018-12-01T00:00:00Z,2030-01-01T00:00:00Z,metric_name3,5,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 28,
						Line:   47,
					},
					File:   "changes_test.flux",
					Source: "t_changes = (table=<-) =>\n    table\n        |> range(start: 2018-12-01T00:00:00Z)\n        |> promql.changes()",
					Start: ast.Position{
						Column: 1,
						Line:   44,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 10,
							Line:   44,
						},
						File:   "changes_test.flux",
						Source: "t_changes",
						Start: ast.Position{
							Column: 1,
							Line:   44,
						},
					},
				},
				Name: "t_changes",
			},
			Init: &ast.FunctionExpression{
				Arrow: nil,
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 28,
							Line:   47,
						},
						File:   "changes_test.flux",
						Source: "(table=<-) =>\n    table\n        |> range(start: 2018-12-01T00:00:00Z)\n        |> promql.changes()",
						Start: ast.Position{
							Column: 13,
							Line:   44,
						},
					},
				},
				Body: &ast.PipeExpression{
					Argument: &ast.PipeExpression{
						Argument: &ast.Identifier{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 10,
										Line:   45,
									},
									File:   "changes_test.flux",
									Source: "table",
									Start: ast.Position{
										Column: 5,
										Line:   45,
									},
								},
							},
							Name: "table",
						},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 46,
									Line:   46,
								},
								File:   "changes_test.flux",
								Source: "table\n        |> range(start: 2018-12-01T00:00:00Z)",
								Start: ast.Position{
									Column: 5,
									Line:   45,
								},
							},
						},
						Call: &ast.CallExpression{
							Arguments: []ast.Expression{&ast.ObjectExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 45,
											Line:   46,
										},
										File:   "changes_test.flux",
										Source: "start: 2018-12-01T00:00:00Z",
										Start: ast.Position{
											Column: 18,
											Line:   46,
										},
									},
								},
								Lbrace: nil,
								Properties: []*ast.Property{&ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   46,
											},
											File:   "changes_test.flux",
											Source: "start: 2018-12-01T00:00:00Z",
											Start: ast.Position{
												Column: 18,
												Line:   46,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 23,
													Line:   46,
												},
												File:   "changes_test.flux",
												Source: "start",
												Start: ast.Position{
													Column: 18,
													Line:   46,
												},
											},
										},
										Name: "start",
									},
									Separator: nil,
									Value: &ast.DateTimeLiteral{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   46,
												},
												File:   "changes_test.flux",
												Source: "2018-12-01T00:00:00Z",
												Start: ast.Position{
													Column: 25,
													Line:   46,
												},
											},
										},
										Value: parser.MustParseTime("2018-12-01T00:00:00Z"),
									},
								}},
								Rbrace: nil,
								With:   nil,
							}},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 46,
										Line:   46,
									},
									File:   "changes_test.flux",
									Source: "range(start: 2018-12-01T00:00:00Z)",
									Start: ast.Position{
										Column: 12,
										Line:   46,
									},
								},
							},
							Callee: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 17,
											Line:   46,
										},
										File:   "changes_test.flux",
										Source: "range",
										Start: ast.Position{
											Column: 12,
											Line:   46,
										},
									},
								},
								Name: "range",
							},
							Lparen: nil,
							Rparen: nil,
						},
					},
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 28,
								Line:   47,
							},
							File:   "changes_test.flux",
							Source: "table\n        |> range(start: 2018-12-01T00:00:00Z)\n        |> promql.changes()",
							Start: ast.Position{
								Column: 5,
								Line:   45,
							},
						},
					},
					Call: &ast.CallExpression{
						Arguments: nil,
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 28,
									Line:   47,
								},
								File:   "changes_test.flux",
								Source: "promql.changes()",
								Start: ast.Position{
									Column: 12,
									Line:   47,
								},
							},
						},
						Callee: &ast.MemberExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 26,
										Line:   47,
									},
									File:   "changes_test.flux",
									Source: "promql.changes",
									Start: ast.Position{
										Column: 12,
										Line:   47,
									},
								},
							},
							Lbrack: nil,
							Object: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 18,
											Line:   47,
										},
										File:   "changes_test.flux",
										Source: "promql",
										Start: ast.Position{
											Column: 12,
											Line:   47,
										},
									},
								},
								Name: "promql",
							},
							Property: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 26,
											Line:   47,
										},
										File:   "changes_test.flux",
										Source: "changes",
										Start: ast.Position{
											Column: 19,
											Line:   47,
										},
									},
								},
								Name: "changes",
							},
							Rbrack: nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
				},
				Lparen: nil,
				Params: []*ast.Property{&ast.Property{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 22,
								Line:   44,
							},
							File:   "changes_test.flux",
							Source: "table=<-",
							Start: ast.Position{
								Column: 14,
								Line:   44,
							},
						},
					},
					Comma: nil,
					Key: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 19,
									Line:   44,
								},
								File:   "changes_test.flux",
								Source: "table",
								Start: ast.Position{
									Column: 14,
									Line:   44,
								},
							},
						},
						Name: "table",
					},
					Separator: nil,
					Value: &ast.PipeLiteral{BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 22,
								Line:   44,
							},
							File:   "changes_test.flux",
							Source: "<-",
							Start: ast.Position{
								Column: 20,
								Line:   44,
							},
						},
					}},
				}},
				Rparan: nil,
			},
		}, &ast.TestStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 118,
							Line:   49,
						},
						File:   "changes_test.flux",
						Source: "_changes = () => ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_changes})",
						Start: ast.Position{
							Column: 6,
							Line:   49,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 14,
								Line:   49,
							},
							File:   "changes_test.flux",
							Source: "_changes",
							Start: ast.Position{
								Column: 6,
								Line:   49,
							},
						},
					},
					Name: "_changes",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 118,
								Line:   49,
							},
							File:   "changes_test.flux",
							Source: "() => ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_changes})",
							Start: ast.Position{
								Column: 17,
								Line:   49,
							},
						},
					},
					Body: &ast.ParenExpression{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 118,
									Line:   49,
								},
								File:   "changes_test.flux",
								Source: "({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_changes})",
								Start: ast.Position{
									Column: 23,
									Line:   49,
								},
							},
						},
						Expression: &ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 117,
										Line:   49,
									},
									File:   "changes_test.flux",
									Source: "{input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_changes}",
									Start: ast.Position{
										Column: 24,
										Line:   49,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 64,
											Line:   49,
										},
										File:   "changes_test.flux",
										Source: "input: testing.loadStorage(csv: inData)",
										Start: ast.Position{
											Column: 25,
											Line:   49,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 30,
												Line:   49,
											},
											File:   "changes_test.flux",
											Source: "input",
											Start: ast.Position{
												Column: 25,
												Line:   49,
											},
										},
									},
									Name: "input",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 63,
													Line:   49,
												},
												File:   "changes_test.flux",
												Source: "csv: inData",
												Start: ast.Position{
													Column: 52,
													Line:   49,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 63,
														Line:   49,
													},
													File:   "changes_test.flux",
													Source: "csv: inData",
													Start: ast.Position{
														Column: 52,
														Line:   49,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 55,
															Line:   49,
														},
														File:   "changes_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 52,
															Line:   49,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 63,
															Line:   49,
														},
														File:   "changes_test.flux",
														Source: "inData",
														Start: ast.Position{
															Column: 57,
															Line:   49,
														},
													},
												},
												Name: "inData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 64,
												Line:   49,
											},
											File:   "changes_test.flux",
											Source: "testing.loadStorage(csv: inData)",
											Start: ast.Position{
												Column: 32,
												Line:   49,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 51,
													Line:   49,
												},
												File:   "changes_test.flux",
												Source: "testing.loadStorage",
												Start: ast.Position{
													Column: 32,
													Line:   49,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 39,
														Line:   49,
													},
													File:   "changes_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 32,
														Line:   49,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 51,
														Line:   49,
													},
													File:   "changes_test.flux",
													Source: "loadStorage",
													Start: ast.Position{
														Column: 40,
														Line:   49,
													},
												},
											},
											Name: "loadStorage",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 101,
											Line:   49,
										},
										File:   "changes_test.flux",
										Source: "want: testing.loadMem(csv: outData)",
										Start: ast.Position{
											Column: 66,
											Line:   49,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 70,
												Line:   49,
											},
											File:   "changes_test.flux",
											Source: "want",
											Start: ast.Position{
												Column: 66,
												Line:   49,
											},
										},
									},
									Name: "want",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 100,
													Line:   49,
												},
												File:   "changes_test.flux",
												Source: "csv: outData",
												Start: ast.Position{
													Column: 88,
													Line:   49,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 100,
														Line:   49,
													},
													File:   "changes_test.flux",
													Source: "csv: outData",
													Start: ast.Position{
														Column: 88,
														Line:   49,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 91,
															Line:   49,
														},
														File:   "changes_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 88,
															Line:   49,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 100,
															Line:   49,
														},
														File:   "changes_test.flux",
														Source: "outData",
														Start: ast.Position{
															Column: 93,
															Line:   49,
														},
													},
												},
												Name: "outData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 101,
												Line:   49,
											},
											File:   "changes_test.flux",
											Source: "testing.loadMem(csv: outData)",
											Start: ast.Position{
												Column: 72,
												Line:   49,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 87,
													Line:   49,
												},
												File:   "changes_test.flux",
												Source: "testing.loadMem",
												Start: ast.Position{
													Column: 72,
													Line:   49,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 79,
														Line:   49,
													},
													File:   "changes_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 72,
														Line:   49,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 87,
														Line:   49,
													},
													File:   "changes_test.flux",
													Source: "loadMem",
													Start: ast.Position{
														Column: 80,
														Line:   49,
													},
												},
											},
											Name: "loadMem",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 116,
											Line:   49,
										},
										File:   "changes_test.flux",
										Source: "fn: t_changes",
										Start: ast.Position{
											Column: 103,
											Line:   49,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 105,
												Line:   49,
											},
											File:   "changes_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 103,
												Line:   49,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 116,
												Line:   49,
											},
											File:   "changes_test.flux",
											Source: "t_changes",
											Start: ast.Position{
												Column: 107,
												Line:   49,
											},
										},
									},
									Name: "t_changes",
								},
							}},
							Rbrace: nil,
							With:   nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 118,
						Line:   49,
					},
					File:   "changes_test.flux",
					Source: "test _changes = () => ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_changes})",
					Start: ast.Position{
						Column: 1,
						Line:   49,
					},
				},
			},
		}},
		Eof: nil,
		Imports: []*ast.ImportDeclaration{&ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 17,
						Line:   4,
					},
					File:   "changes_test.flux",
					Source: "import \"testing\"",
					Start: ast.Position{
						Column: 1,
						Line:   4,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 17,
							Line:   4,
						},
						File:   "changes_test.flux",
						Source: "\"testing\"",
						Start: ast.Position{
							Column: 8,
							Line:   4,
						},
					},
				},
				Value: "testing",
			},
		}, &ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 25,
						Line:   5,
					},
					File:   "changes_test.flux",
					Source: "import \"internal/promql\"",
					Start: ast.Position{
						Column: 1,
						Line:   5,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 25,
							Line:   5,
						},
						File:   "changes_test.flux",
						Source: "\"internal/promql\"",
						Start: ast.Position{
							Column: 8,
							Line:   5,
						},
					},
				},
				Value: "internal/promql",
			},
		}},
		Metadata: "parser-type=rust",
		Name:     "changes_test.flux",
		Package: &ast.PackageClause{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 20,
						Line:   1,
					},
					File:   "changes_test.flux",
					Source: "package promql_test",
					Start: ast.Position{
						Column: 1,
						Line:   1,
					},
				},
			},
			Name: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 20,
							Line:   1,
						},
						File:   "changes_test.flux",
						Source: "promql_test",
						Start: ast.Position{
							Column: 9,
							Line:   1,
						},
					},
				},
				Name: "promql_test",
			},
		},
	}, &ast.File{
		BaseNode: ast.BaseNode{
			Comments: nil,
			Errors:   nil,
			Loc: &ast.SourceLocation{
				End: ast.Position{
					Column: 109,
					Line:   43,
				},
				File:   "dayOfMonth_test.flux",
				Source: "package promql_test\n\n\nimport \"testing\"\nimport \"internal/promql\"\n\noption now = () => 2030-01-01T00:00:00Z\n\ninData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-01T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-02T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-03T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-29T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-30T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-31T20:00:00Z,metric_name,0,prometheus\n\"\noutData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,outData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-01T20:00:00Z,metric_name,1,prometheus\n,,0,2018-12-02T20:00:00Z,metric_name,2,prometheus\n,,0,2018-12-03T20:00:00Z,metric_name,3,prometheus\n,,0,2018-12-29T20:00:00Z,metric_name,29,prometheus\n,,0,2018-12-30T20:00:00Z,metric_name,30,prometheus\n,,0,2018-12-31T20:00:00Z,metric_name,31,prometheus\n\"\nt_promqlDayOfMonth = (table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()\n        |> map(fn: (r) => ({r with _value: promql.promqlDayOfMonth(timestamp: r._value)}))\n\ntest _promqlDayOfMonth = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlDayOfMonth})",
				Start: ast.Position{
					Column: 1,
					Line:   1,
				},
			},
		},
		Body: []ast.Statement{&ast.OptionStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 40,
							Line:   7,
						},
						File:   "dayOfMonth_test.flux",
						Source: "now = () => 2030-01-01T00:00:00Z",
						Start: ast.Position{
							Column: 8,
							Line:   7,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 11,
								Line:   7,
							},
							File:   "dayOfMonth_test.flux",
							Source: "now",
							Start: ast.Position{
								Column: 8,
								Line:   7,
							},
						},
					},
					Name: "now",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 40,
								Line:   7,
							},
							File:   "dayOfMonth_test.flux",
							Source: "() => 2030-01-01T00:00:00Z",
							Start: ast.Position{
								Column: 14,
								Line:   7,
							},
						},
					},
					Body: &ast.DateTimeLiteral{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 40,
									Line:   7,
								},
								File:   "dayOfMonth_test.flux",
								Source: "2030-01-01T00:00:00Z",
								Start: ast.Position{
									Column: 20,
									Line:   7,
								},
							},
						},
						Value: parser.MustParseTime("2030-01-01T00:00:00Z"),
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 40,
						Line:   7,
					},
					File:   "dayOfMonth_test.flux",
					Source: "option now = () => 2030-01-01T00:00:00Z",
					Start: ast.Position{
						Column: 1,
						Line:   7,
					},
				},
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   21,
					},
					File:   "dayOfMonth_test.flux",
					Source: "inData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-01T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-02T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-03T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-29T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-30T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-31T20:00:00Z,metric_name,0,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   9,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 7,
							Line:   9,
						},
						File:   "dayOfMonth_test.flux",
						Source: "inData",
						Start: ast.Position{
							Column: 1,
							Line:   9,
						},
					},
				},
				Name: "inData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   21,
						},
						File:   "dayOfMonth_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-01T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-02T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-03T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-29T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-30T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-31T20:00:00Z,metric_name,0,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   10,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-01T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-02T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-03T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-29T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-30T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-31T20:00:00Z,metric_name,0,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   34,
					},
					File:   "dayOfMonth_test.flux",
					Source: "outData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,outData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-01T20:00:00Z,metric_name,1,prometheus\n,,0,2018-12-02T20:00:00Z,metric_name,2,prometheus\n,,0,2018-12-03T20:00:00Z,metric_name,3,prometheus\n,,0,2018-12-29T20:00:00Z,metric_name,29,prometheus\n,,0,2018-12-30T20:00:00Z,metric_name,30,prometheus\n,,0,2018-12-31T20:00:00Z,metric_name,31,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   22,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 8,
							Line:   22,
						},
						File:   "dayOfMonth_test.flux",
						Source: "outData",
						Start: ast.Position{
							Column: 1,
							Line:   22,
						},
					},
				},
				Name: "outData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   34,
						},
						File:   "dayOfMonth_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,outData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-01T20:00:00Z,metric_name,1,prometheus\n,,0,2018-12-02T20:00:00Z,metric_name,2,prometheus\n,,0,2018-12-03T20:00:00Z,metric_name,3,prometheus\n,,0,2018-12-29T20:00:00Z,metric_name,29,prometheus\n,,0,2018-12-30T20:00:00Z,metric_name,30,prometheus\n,,0,2018-12-31T20:00:00Z,metric_name,31,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   23,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,outData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-01T20:00:00Z,metric_name,1,prometheus\n,,0,2018-12-02T20:00:00Z,metric_name,2,prometheus\n,,0,2018-12-03T20:00:00Z,metric_name,3,prometheus\n,,0,2018-12-29T20:00:00Z,metric_name,29,prometheus\n,,0,2018-12-30T20:00:00Z,metric_name,30,prometheus\n,,0,2018-12-31T20:00:00Z,metric_name,31,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 91,
						Line:   40,
					},
					File:   "dayOfMonth_test.flux",
					Source: "t_promqlDayOfMonth = (table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()\n        |> map(fn: (r) => ({r with _value: promql.promqlDayOfMonth(timestamp: r._value)}))",
					Start: ast.Position{
						Column: 1,
						Line:   35,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 19,
							Line:   35,
						},
						File:   "dayOfMonth_test.flux",
						Source: "t_promqlDayOfMonth",
						Start: ast.Position{
							Column: 1,
							Line:   35,
						},
					},
				},
				Name: "t_promqlDayOfMonth",
			},
			Init: &ast.FunctionExpression{
				Arrow: nil,
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 91,
							Line:   40,
						},
						File:   "dayOfMonth_test.flux",
						Source: "(table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()\n        |> map(fn: (r) => ({r with _value: promql.promqlDayOfMonth(timestamp: r._value)}))",
						Start: ast.Position{
							Column: 22,
							Line:   35,
						},
					},
				},
				Body: &ast.PipeExpression{
					Argument: &ast.PipeExpression{
						Argument: &ast.PipeExpression{
							Argument: &ast.PipeExpression{
								Argument: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 10,
												Line:   36,
											},
											File:   "dayOfMonth_test.flux",
											Source: "table",
											Start: ast.Position{
												Column: 5,
												Line:   36,
											},
										},
									},
									Name: "table",
								},
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   37,
										},
										File:   "dayOfMonth_test.flux",
										Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)",
										Start: ast.Position{
											Column: 5,
											Line:   36,
										},
									},
								},
								Call: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   37,
												},
												File:   "dayOfMonth_test.flux",
												Source: "start: 1980-01-01T00:00:00Z",
												Start: ast.Position{
													Column: 18,
													Line:   37,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   37,
													},
													File:   "dayOfMonth_test.flux",
													Source: "start: 1980-01-01T00:00:00Z",
													Start: ast.Position{
														Column: 18,
														Line:   37,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 23,
															Line:   37,
														},
														File:   "dayOfMonth_test.flux",
														Source: "start",
														Start: ast.Position{
															Column: 18,
															Line:   37,
														},
													},
												},
												Name: "start",
											},
											Separator: nil,
											Value: &ast.DateTimeLiteral{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 45,
															Line:   37,
														},
														File:   "dayOfMonth_test.flux",
														Source: "1980-01-01T00:00:00Z",
														Start: ast.Position{
															Column: 25,
															Line:   37,
														},
													},
												},
												Value: parser.MustParseTime("1980-01-01T00:00:00Z"),
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 46,
												Line:   37,
											},
											File:   "dayOfMonth_test.flux",
											Source: "range(start: 1980-01-01T00:00:00Z)",
											Start: ast.Position{
												Column: 12,
												Line:   37,
											},
										},
									},
									Callee: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 17,
													Line:   37,
												},
												File:   "dayOfMonth_test.flux",
												Source: "range",
												Start: ast.Position{
													Column: 12,
													Line:   37,
												},
											},
										},
										Name: "range",
									},
									Lparen: nil,
									Rparen: nil,
								},
							},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 46,
										Line:   38,
									},
									File:   "dayOfMonth_test.flux",
									Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])",
									Start: ast.Position{
										Column: 5,
										Line:   36,
									},
								},
							},
							Call: &ast.CallExpression{
								Arguments: []ast.Expression{&ast.ObjectExpression{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   38,
											},
											File:   "dayOfMonth_test.flux",
											Source: "columns: [\"_start\", \"_stop\"]",
											Start: ast.Position{
												Column: 17,
												Line:   38,
											},
										},
									},
									Lbrace: nil,
									Properties: []*ast.Property{&ast.Property{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   38,
												},
												File:   "dayOfMonth_test.flux",
												Source: "columns: [\"_start\", \"_stop\"]",
												Start: ast.Position{
													Column: 17,
													Line:   38,
												},
											},
										},
										Comma: nil,
										Key: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 24,
														Line:   38,
													},
													File:   "dayOfMonth_test.flux",
													Source: "columns",
													Start: ast.Position{
														Column: 17,
														Line:   38,
													},
												},
											},
											Name: "columns",
										},
										Separator: nil,
										Value: &ast.ArrayExpression{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   38,
													},
													File:   "dayOfMonth_test.flux",
													Source: "[\"_start\", \"_stop\"]",
													Start: ast.Position{
														Column: 26,
														Line:   38,
													},
												},
											},
											Elements: []ast.Expression{&ast.StringLiteral{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 35,
															Line:   38,
														},
														File:   "dayOfMonth_test.flux",
														Source: "\"_start\"",
														Start: ast.Position{
															Column: 27,
															Line:   38,
														},
													},
												},
												Value: "_start",
											}, &ast.StringLiteral{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 44,
															Line:   38,
														},
														File:   "dayOfMonth_test.flux",
														Source: "\"_stop\"",
														Start: ast.Position{
															Column: 37,
															Line:   38,
														},
													},
												},
												Value: "_stop",
											}},
											Lbrack: nil,
											Rbrack: nil,
										},
									}},
									Rbrace: nil,
									With:   nil,
								}},
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   38,
										},
										File:   "dayOfMonth_test.flux",
										Source: "drop(columns: [\"_start\", \"_stop\"])",
										Start: ast.Position{
											Column: 12,
											Line:   38,
										},
									},
								},
								Callee: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 16,
												Line:   38,
											},
											File:   "dayOfMonth_test.flux",
											Source: "drop",
											Start: ast.Position{
												Column: 12,
												Line:   38,
											},
										},
									},
									Name: "drop",
								},
								Lparen: nil,
								Rparen: nil,
							},
						},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 30,
									Line:   39,
								},
								File:   "dayOfMonth_test.flux",
								Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()",
								Start: ast.Position{
									Column: 5,
									Line:   36,
								},
							},
						},
						Call: &ast.CallExpression{
							Arguments: nil,
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 30,
										Line:   39,
									},
									File:   "dayOfMonth_test.flux",
									Source: "promql.timestamp()",
									Start: ast.Position{
										Column: 12,
										Line:   39,
									},
								},
							},
							Callee: &ast.MemberExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 28,
											Line:   39,
										},
										File:   "dayOfMonth_test.flux",
										Source: "promql.timestamp",
										Start: ast.Position{
											Column: 12,
											Line:   39,
										},
									},
								},
								Lbrack: nil,
								Object: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 18,
												Line:   39,
											},
											File:   "dayOfMonth_test.flux",
											Source: "promql",
											Start: ast.Position{
												Column: 12,
												Line:   39,
											},
										},
									},
									Name: "promql",
								},
								Property: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 28,
												Line:   39,
											},
											File:   "dayOfMonth_test.flux",
											Source: "timestamp",
											Start: ast.Position{
												Column: 19,
												Line:   39,
											},
										},
									},
									Name: "timestamp",
								},
								Rbrack: nil,
							},
							Lparen: nil,
							Rparen: nil,
						},
					},
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 91,
								Line:   40,
							},
							File:   "dayOfMonth_test.flux",
							Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()\n        |> map(fn: (r) => ({r with _value: promql.promqlDayOfMonth(timestamp: r._value)}))",
							Start: ast.Position{
								Column: 5,
								Line:   36,
							},
						},
					},
					Call: &ast.CallExpression{
						Arguments: []ast.Expression{&ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 90,
										Line:   40,
									},
									File:   "dayOfMonth_test.flux",
									Source: "fn: (r) => ({r with _value: promql.promqlDayOfMonth(timestamp: r._value)})",
									Start: ast.Position{
										Column: 16,
										Line:   40,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 90,
											Line:   40,
										},
										File:   "dayOfMonth_test.flux",
										Source: "fn: (r) => ({r with _value: promql.promqlDayOfMonth(timestamp: r._value)})",
										Start: ast.Position{
											Column: 16,
											Line:   40,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 18,
												Line:   40,
											},
											File:   "dayOfMonth_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 16,
												Line:   40,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.FunctionExpression{
									Arrow: nil,
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 90,
												Line:   40,
											},
											File:   "dayOfMonth_test.flux",
											Source: "(r) => ({r with _value: promql.promqlDayOfMonth(timestamp: r._value)})",
											Start: ast.Position{
												Column: 20,
												Line:   40,
											},
										},
									},
									Body: &ast.ParenExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 90,
													Line:   40,
												},
												File:   "dayOfMonth_test.flux",
												Source: "({r with _value: promql.promqlDayOfMonth(timestamp: r._value)})",
												Start: ast.Position{
													Column: 27,
													Line:   40,
												},
											},
										},
										Expression: &ast.ObjectExpression{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 89,
														Line:   40,
													},
													File:   "dayOfMonth_test.flux",
													Source: "{r with _value: promql.promqlDayOfMonth(timestamp: r._value)}",
													Start: ast.Position{
														Column: 28,
														Line:   40,
													},
												},
											},
											Lbrace: nil,
											Properties: []*ast.Property{&ast.Property{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 88,
															Line:   40,
														},
														File:   "dayOfMonth_test.flux",
														Source: "_value: promql.promqlDayOfMonth(timestamp: r._value)",
														Start: ast.Position{
															Column: 36,
															Line:   40,
														},
													},
												},
												Comma: nil,
												Key: &ast.Identifier{
													BaseNode: ast.BaseNode{
														Comments: nil,
														Errors:   nil,
														Loc: &ast.SourceLocation{
															End: ast.Position{
																Column: 42,
																Line:   40,
															},
															File:   "dayOfMonth_test.flux",
															Source: "_value",
															Start: ast.Position{
																Column: 36,
																Line:   40,
															},
														},
													},
													Name: "_value",
												},
												Separator: nil,
												Value: &ast.CallExpression{
													Arguments: []ast.Expression{&ast.ObjectExpression{
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 87,
																	Line:   40,
																},
																File:   "dayOfMonth_test.flux",
																Source: "timestamp: r._value",
																Start: ast.Position{
																	Column: 68,
																	Line:   40,
																},
															},
														},
														Lbrace: nil,
														Properties: []*ast.Property{&ast.Property{
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 87,
																		Line:   40,
																	},
																	File:   "dayOfMonth_test.flux",
																	Source: "timestamp: r._value",
																	Start: ast.Position{
																		Column: 68,
																		Line:   40,
																	},
																},
															},
															Comma: nil,
															Key: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 77,
																			Line:   40,
																		},
																		File:   "dayOfMonth_test.flux",
																		Source: "timestamp",
																		Start: ast.Position{
																			Column: 68,
																			Line:   40,
																		},
																	},
																},
																Name: "timestamp",
															},
															Separator: nil,
															Value: &ast.MemberExpression{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 87,
																			Line:   40,
																		},
																		File:   "dayOfMonth_test.flux",
																		Source: "r._value",
																		Start: ast.Position{
																			Column: 79,
																			Line:   40,
																		},
																	},
																},
																Lbrack: nil,
																Object: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 80,
																				Line:   40,
																			},
																			File:   "dayOfMonth_test.flux",
																			Source: "r",
																			Start: ast.Position{
																				Column: 79,
																				Line:   40,
																			},
																		},
																	},
																	Name: "r",
																},
																Property: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 87,
																				Line:   40,
																			},
																			File:   "dayOfMonth_test.flux",
																			Source: "_value",
																			Start: ast.Position{
																				Column: 81,
																				Line:   40,
																			},
																		},
																	},
																	Name: "_value",
																},
																Rbrack: nil,
															},
														}},
														Rbrace: nil,
														With:   nil,
													}},
													BaseNode: ast.BaseNode{
														Comments: nil,
														Errors:   nil,
														Loc: &ast.SourceLocation{
															End: ast.Position{
																Column: 88,
																Line:   40,
															},
															File:   "dayOfMonth_test.flux",
															Source: "promql.promqlDayOfMonth(timestamp: r._value)",
															Start: ast.Position{
																Column: 44,
																Line:   40,
															},
														},
													},
													Callee: &ast.MemberExpression{
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 67,
																	Line:   40,
																},
																File:   "dayOfMonth_test.flux",
																Source: "promql.promqlDayOfMonth",
																Start: ast.Position{
																	Column: 44,
																	Line:   40,
																},
															},
														},
														Lbrack: nil,
														Object: &ast.Identifier{
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 50,
																		Line:   40,
																	},
																	File:   "dayOfMonth_test.flux",
																	Source: "promql",
																	Start: ast.Position{
																		Column: 44,
																		Line:   40,
																	},
																},
															},
															Name: "promql",
														},
														Property: &ast.Identifier{
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 67,
																		Line:   40,
																	},
																	File:   "dayOfMonth_test.flux",
																	Source: "promqlDayOfMonth",
																	Start: ast.Position{
																		Column: 51,
																		Line:   40,
																	},
																},
															},
															Name: "promqlDayOfMonth",
														},
														Rbrack: nil,
													},
													Lparen: nil,
													Rparen: nil,
												},
											}},
											Rbrace: nil,
											With: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 30,
															Line:   40,
														},
														File:   "dayOfMonth_test.flux",
														Source: "r",
														Start: ast.Position{
															Column: 29,
															Line:   40,
														},
													},
												},
												Name: "r",
											},
										},
										Lparen: nil,
										Rparen: nil,
									},
									Lparen: nil,
									Params: []*ast.Property{&ast.Property{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 22,
													Line:   40,
												},
												File:   "dayOfMonth_test.flux",
												Source: "r",
												Start: ast.Position{
													Column: 21,
													Line:   40,
												},
											},
										},
										Comma: nil,
										Key: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 22,
														Line:   40,
													},
													File:   "dayOfMonth_test.flux",
													Source: "r",
													Start: ast.Position{
														Column: 21,
														Line:   40,
													},
												},
											},
											Name: "r",
										},
										Separator: nil,
										Value:     nil,
									}},
									Rparan: nil,
								},
							}},
							Rbrace: nil,
							With:   nil,
						}},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 91,
									Line:   40,
								},
								File:   "dayOfMonth_test.flux",
								Source: "map(fn: (r) => ({r with _value: promql.promqlDayOfMonth(timestamp: r._value)}))",
								Start: ast.Position{
									Column: 12,
									Line:   40,
								},
							},
						},
						Callee: &ast.Identifier{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 15,
										Line:   40,
									},
									File:   "dayOfMonth_test.flux",
									Source: "map",
									Start: ast.Position{
										Column: 12,
										Line:   40,
									},
								},
							},
							Name: "map",
						},
						Lparen: nil,
						Rparen: nil,
					},
				},
				Lparen: nil,
				Params: []*ast.Property{&ast.Property{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 31,
								Line:   35,
							},
							File:   "dayOfMonth_test.flux",
							Source: "table=<-",
							Start: ast.Position{
								Column: 23,
								Line:   35,
							},
						},
					},
					Comma: nil,
					Key: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 28,
									Line:   35,
								},
								File:   "dayOfMonth_test.flux",
								Source: "table",
								Start: ast.Position{
									Column: 23,
									Line:   35,
								},
							},
						},
						Name: "table",
					},
					Separator: nil,
					Value: &ast.PipeLiteral{BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 31,
								Line:   35,
							},
							File:   "dayOfMonth_test.flux",
							Source: "<-",
							Start: ast.Position{
								Column: 29,
								Line:   35,
							},
						},
					}},
				}},
				Rparan: nil,
			},
		}, &ast.TestStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 109,
							Line:   43,
						},
						File:   "dayOfMonth_test.flux",
						Source: "_promqlDayOfMonth = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlDayOfMonth})",
						Start: ast.Position{
							Column: 6,
							Line:   42,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 23,
								Line:   42,
							},
							File:   "dayOfMonth_test.flux",
							Source: "_promqlDayOfMonth",
							Start: ast.Position{
								Column: 6,
								Line:   42,
							},
						},
					},
					Name: "_promqlDayOfMonth",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 109,
								Line:   43,
							},
							File:   "dayOfMonth_test.flux",
							Source: "() =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlDayOfMonth})",
							Start: ast.Position{
								Column: 26,
								Line:   42,
							},
						},
					},
					Body: &ast.ParenExpression{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 109,
									Line:   43,
								},
								File:   "dayOfMonth_test.flux",
								Source: "({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlDayOfMonth})",
								Start: ast.Position{
									Column: 5,
									Line:   43,
								},
							},
						},
						Expression: &ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 108,
										Line:   43,
									},
									File:   "dayOfMonth_test.flux",
									Source: "{input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlDayOfMonth}",
									Start: ast.Position{
										Column: 6,
										Line:   43,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   43,
										},
										File:   "dayOfMonth_test.flux",
										Source: "input: testing.loadStorage(csv: inData)",
										Start: ast.Position{
											Column: 7,
											Line:   43,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 12,
												Line:   43,
											},
											File:   "dayOfMonth_test.flux",
											Source: "input",
											Start: ast.Position{
												Column: 7,
												Line:   43,
											},
										},
									},
									Name: "input",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   43,
												},
												File:   "dayOfMonth_test.flux",
												Source: "csv: inData",
												Start: ast.Position{
													Column: 34,
													Line:   43,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   43,
													},
													File:   "dayOfMonth_test.flux",
													Source: "csv: inData",
													Start: ast.Position{
														Column: 34,
														Line:   43,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 37,
															Line:   43,
														},
														File:   "dayOfMonth_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 34,
															Line:   43,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 45,
															Line:   43,
														},
														File:   "dayOfMonth_test.flux",
														Source: "inData",
														Start: ast.Position{
															Column: 39,
															Line:   43,
														},
													},
												},
												Name: "inData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 46,
												Line:   43,
											},
											File:   "dayOfMonth_test.flux",
											Source: "testing.loadStorage(csv: inData)",
											Start: ast.Position{
												Column: 14,
												Line:   43,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 33,
													Line:   43,
												},
												File:   "dayOfMonth_test.flux",
												Source: "testing.loadStorage",
												Start: ast.Position{
													Column: 14,
													Line:   43,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 21,
														Line:   43,
													},
													File:   "dayOfMonth_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 14,
														Line:   43,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 33,
														Line:   43,
													},
													File:   "dayOfMonth_test.flux",
													Source: "loadStorage",
													Start: ast.Position{
														Column: 22,
														Line:   43,
													},
												},
											},
											Name: "loadStorage",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 83,
											Line:   43,
										},
										File:   "dayOfMonth_test.flux",
										Source: "want: testing.loadMem(csv: outData)",
										Start: ast.Position{
											Column: 48,
											Line:   43,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 52,
												Line:   43,
											},
											File:   "dayOfMonth_test.flux",
											Source: "want",
											Start: ast.Position{
												Column: 48,
												Line:   43,
											},
										},
									},
									Name: "want",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 82,
													Line:   43,
												},
												File:   "dayOfMonth_test.flux",
												Source: "csv: outData",
												Start: ast.Position{
													Column: 70,
													Line:   43,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 82,
														Line:   43,
													},
													File:   "dayOfMonth_test.flux",
													Source: "csv: outData",
													Start: ast.Position{
														Column: 70,
														Line:   43,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 73,
															Line:   43,
														},
														File:   "dayOfMonth_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 70,
															Line:   43,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 82,
															Line:   43,
														},
														File:   "dayOfMonth_test.flux",
														Source: "outData",
														Start: ast.Position{
															Column: 75,
															Line:   43,
														},
													},
												},
												Name: "outData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 83,
												Line:   43,
											},
											File:   "dayOfMonth_test.flux",
											Source: "testing.loadMem(csv: outData)",
											Start: ast.Position{
												Column: 54,
												Line:   43,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 69,
													Line:   43,
												},
												File:   "dayOfMonth_test.flux",
												Source: "testing.loadMem",
												Start: ast.Position{
													Column: 54,
													Line:   43,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 61,
														Line:   43,
													},
													File:   "dayOfMonth_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 54,
														Line:   43,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 69,
														Line:   43,
													},
													File:   "dayOfMonth_test.flux",
													Source: "loadMem",
													Start: ast.Position{
														Column: 62,
														Line:   43,
													},
												},
											},
											Name: "loadMem",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 107,
											Line:   43,
										},
										File:   "dayOfMonth_test.flux",
										Source: "fn: t_promqlDayOfMonth",
										Start: ast.Position{
											Column: 85,
											Line:   43,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 87,
												Line:   43,
											},
											File:   "dayOfMonth_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 85,
												Line:   43,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 107,
												Line:   43,
											},
											File:   "dayOfMonth_test.flux",
											Source: "t_promqlDayOfMonth",
											Start: ast.Position{
												Column: 89,
												Line:   43,
											},
										},
									},
									Name: "t_promqlDayOfMonth",
								},
							}},
							Rbrace: nil,
							With:   nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 109,
						Line:   43,
					},
					File:   "dayOfMonth_test.flux",
					Source: "test _promqlDayOfMonth = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlDayOfMonth})",
					Start: ast.Position{
						Column: 1,
						Line:   42,
					},
				},
			},
		}},
		Eof: nil,
		Imports: []*ast.ImportDeclaration{&ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 17,
						Line:   4,
					},
					File:   "dayOfMonth_test.flux",
					Source: "import \"testing\"",
					Start: ast.Position{
						Column: 1,
						Line:   4,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 17,
							Line:   4,
						},
						File:   "dayOfMonth_test.flux",
						Source: "\"testing\"",
						Start: ast.Position{
							Column: 8,
							Line:   4,
						},
					},
				},
				Value: "testing",
			},
		}, &ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 25,
						Line:   5,
					},
					File:   "dayOfMonth_test.flux",
					Source: "import \"internal/promql\"",
					Start: ast.Position{
						Column: 1,
						Line:   5,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 25,
							Line:   5,
						},
						File:   "dayOfMonth_test.flux",
						Source: "\"internal/promql\"",
						Start: ast.Position{
							Column: 8,
							Line:   5,
						},
					},
				},
				Value: "internal/promql",
			},
		}},
		Metadata: "parser-type=rust",
		Name:     "dayOfMonth_test.flux",
		Package: &ast.PackageClause{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 20,
						Line:   1,
					},
					File:   "dayOfMonth_test.flux",
					Source: "package promql_test",
					Start: ast.Position{
						Column: 1,
						Line:   1,
					},
				},
			},
			Name: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 20,
							Line:   1,
						},
						File:   "dayOfMonth_test.flux",
						Source: "promql_test",
						Start: ast.Position{
							Column: 9,
							Line:   1,
						},
					},
				},
				Name: "promql_test",
			},
		},
	}, &ast.File{
		BaseNode: ast.BaseNode{
			Comments: nil,
			Errors:   nil,
			Loc: &ast.SourceLocation{
				End: ast.Position{
					Column: 108,
					Line:   45,
				},
				File:   "dayOfWeek_test.flux",
				Source: "package promql_test\n\n\nimport \"testing\"\nimport \"internal/promql\"\n\noption now = () => 2030-01-01T00:00:00Z\n\ninData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-03T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-04T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-05T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-06T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-07T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-08T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-09T20:00:00Z,metric_name,0,prometheus\n\"\noutData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,outData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-03T20:00:00Z,metric_name,1,prometheus\n,,0,2018-12-04T20:00:00Z,metric_name,2,prometheus\n,,0,2018-12-05T20:00:00Z,metric_name,3,prometheus\n,,0,2018-12-06T20:00:00Z,metric_name,4,prometheus\n,,0,2018-12-07T20:00:00Z,metric_name,5,prometheus\n,,0,2018-12-08T20:00:00Z,metric_name,6,prometheus\n,,0,2018-12-09T20:00:00Z,metric_name,0,prometheus\n\"\nt_promqlDayOfWeek = (table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()\n        |> map(fn: (r) => ({r with _value: promql.promqlDayOfWeek(timestamp: r._value)}))\n\ntest _promqlDayOfWeek = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlDayOfWeek})",
				Start: ast.Position{
					Column: 1,
					Line:   1,
				},
			},
		},
		Body: []ast.Statement{&ast.OptionStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 40,
							Line:   7,
						},
						File:   "dayOfWeek_test.flux",
						Source: "now = () => 2030-01-01T00:00:00Z",
						Start: ast.Position{
							Column: 8,
							Line:   7,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 11,
								Line:   7,
							},
							File:   "dayOfWeek_test.flux",
							Source: "now",
							Start: ast.Position{
								Column: 8,
								Line:   7,
							},
						},
					},
					Name: "now",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 40,
								Line:   7,
							},
							File:   "dayOfWeek_test.flux",
							Source: "() => 2030-01-01T00:00:00Z",
							Start: ast.Position{
								Column: 14,
								Line:   7,
							},
						},
					},
					Body: &ast.DateTimeLiteral{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 40,
									Line:   7,
								},
								File:   "dayOfWeek_test.flux",
								Source: "2030-01-01T00:00:00Z",
								Start: ast.Position{
									Column: 20,
									Line:   7,
								},
							},
						},
						Value: parser.MustParseTime("2030-01-01T00:00:00Z"),
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 40,
						Line:   7,
					},
					File:   "dayOfWeek_test.flux",
					Source: "option now = () => 2030-01-01T00:00:00Z",
					Start: ast.Position{
						Column: 1,
						Line:   7,
					},
				},
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   22,
					},
					File:   "dayOfWeek_test.flux",
					Source: "inData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-03T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-04T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-05T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-06T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-07T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-08T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-09T20:00:00Z,metric_name,0,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   9,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 7,
							Line:   9,
						},
						File:   "dayOfWeek_test.flux",
						Source: "inData",
						Start: ast.Position{
							Column: 1,
							Line:   9,
						},
					},
				},
				Name: "inData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   22,
						},
						File:   "dayOfWeek_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-03T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-04T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-05T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-06T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-07T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-08T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-09T20:00:00Z,metric_name,0,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   10,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-03T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-04T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-05T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-06T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-07T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-08T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-09T20:00:00Z,metric_name,0,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   36,
					},
					File:   "dayOfWeek_test.flux",
					Source: "outData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,outData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-03T20:00:00Z,metric_name,1,prometheus\n,,0,2018-12-04T20:00:00Z,metric_name,2,prometheus\n,,0,2018-12-05T20:00:00Z,metric_name,3,prometheus\n,,0,2018-12-06T20:00:00Z,metric_name,4,prometheus\n,,0,2018-12-07T20:00:00Z,metric_name,5,prometheus\n,,0,2018-12-08T20:00:00Z,metric_name,6,prometheus\n,,0,2018-12-09T20:00:00Z,metric_name,0,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   23,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 8,
							Line:   23,
						},
						File:   "dayOfWeek_test.flux",
						Source: "outData",
						Start: ast.Position{
							Column: 1,
							Line:   23,
						},
					},
				},
				Name: "outData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   36,
						},
						File:   "dayOfWeek_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,outData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-03T20:00:00Z,metric_name,1,prometheus\n,,0,2018-12-04T20:00:00Z,metric_name,2,prometheus\n,,0,2018-12-05T20:00:00Z,metric_name,3,prometheus\n,,0,2018-12-06T20:00:00Z,metric_name,4,prometheus\n,,0,2018-12-07T20:00:00Z,metric_name,5,prometheus\n,,0,2018-12-08T20:00:00Z,metric_name,6,prometheus\n,,0,2018-12-09T20:00:00Z,metric_name,0,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   24,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,outData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-03T20:00:00Z,metric_name,1,prometheus\n,,0,2018-12-04T20:00:00Z,metric_name,2,prometheus\n,,0,2018-12-05T20:00:00Z,metric_name,3,prometheus\n,,0,2018-12-06T20:00:00Z,metric_name,4,prometheus\n,,0,2018-12-07T20:00:00Z,metric_name,5,prometheus\n,,0,2018-12-08T20:00:00Z,metric_name,6,prometheus\n,,0,2018-12-09T20:00:00Z,metric_name,0,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 90,
						Line:   42,
					},
					File:   "dayOfWeek_test.flux",
					Source: "t_promqlDayOfWeek = (table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()\n        |> map(fn: (r) => ({r with _value: promql.promqlDayOfWeek(timestamp: r._value)}))",
					Start: ast.Position{
						Column: 1,
						Line:   37,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 18,
							Line:   37,
						},
						File:   "dayOfWeek_test.flux",
						Source: "t_promqlDayOfWeek",
						Start: ast.Position{
							Column: 1,
							Line:   37,
						},
					},
				},
				Name: "t_promqlDayOfWeek",
			},
			Init: &ast.FunctionExpression{
				Arrow: nil,
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 90,
							Line:   42,
						},
						File:   "dayOfWeek_test.flux",
						Source: "(table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()\n        |> map(fn: (r) => ({r with _value: promql.promqlDayOfWeek(timestamp: r._value)}))",
						Start: ast.Position{
							Column: 21,
							Line:   37,
						},
					},
				},
				Body: &ast.PipeExpression{
					Argument: &ast.PipeExpression{
						Argument: &ast.PipeExpression{
							Argument: &ast.PipeExpression{
								Argument: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 10,
												Line:   38,
											},
											File:   "dayOfWeek_test.flux",
											Source: "table",
											Start: ast.Position{
												Column: 5,
												Line:   38,
											},
										},
									},
									Name: "table",
								},
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   39,
										},
										File:   "dayOfWeek_test.flux",
										Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)",
										Start: ast.Position{
											Column: 5,
											Line:   38,
										},
									},
								},
								Call: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   39,
												},
												File:   "dayOfWeek_test.flux",
												Source: "start: 1980-01-01T00:00:00Z",
												Start: ast.Position{
													Column: 18,
													Line:   39,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   39,
													},
													File:   "dayOfWeek_test.flux",
													Source: "start: 1980-01-01T00:00:00Z",
													Start: ast.Position{
														Column: 18,
														Line:   39,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 23,
															Line:   39,
														},
														File:   "dayOfWeek_test.flux",
														Source: "start",
														Start: ast.Position{
															Column: 18,
															Line:   39,
														},
													},
												},
												Name: "start",
											},
											Separator: nil,
											Value: &ast.DateTimeLiteral{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 45,
															Line:   39,
														},
														File:   "dayOfWeek_test.flux",
														Source: "1980-01-01T00:00:00Z",
														Start: ast.Position{
															Column: 25,
															Line:   39,
														},
													},
												},
												Value: parser.MustParseTime("1980-01-01T00:00:00Z"),
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 46,
												Line:   39,
											},
											File:   "dayOfWeek_test.flux",
											Source: "range(start: 1980-01-01T00:00:00Z)",
											Start: ast.Position{
												Column: 12,
												Line:   39,
											},
										},
									},
									Callee: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 17,
													Line:   39,
												},
												File:   "dayOfWeek_test.flux",
												Source: "range",
												Start: ast.Position{
													Column: 12,
													Line:   39,
												},
											},
										},
										Name: "range",
									},
									Lparen: nil,
									Rparen: nil,
								},
							},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 46,
										Line:   40,
									},
									File:   "dayOfWeek_test.flux",
									Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])",
									Start: ast.Position{
										Column: 5,
										Line:   38,
									},
								},
							},
							Call: &ast.CallExpression{
								Arguments: []ast.Expression{&ast.ObjectExpression{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   40,
											},
											File:   "dayOfWeek_test.flux",
											Source: "columns: [\"_start\", \"_stop\"]",
											Start: ast.Position{
												Column: 17,
												Line:   40,
											},
										},
									},
									Lbrace: nil,
									Properties: []*ast.Property{&ast.Property{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   40,
												},
												File:   "dayOfWeek_test.flux",
												Source: "columns: [\"_start\", \"_stop\"]",
												Start: ast.Position{
													Column: 17,
													Line:   40,
												},
											},
										},
										Comma: nil,
										Key: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 24,
														Line:   40,
													},
													File:   "dayOfWeek_test.flux",
													Source: "columns",
													Start: ast.Position{
														Column: 17,
														Line:   40,
													},
												},
											},
											Name: "columns",
										},
										Separator: nil,
										Value: &ast.ArrayExpression{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   40,
													},
													File:   "dayOfWeek_test.flux",
													Source: "[\"_start\", \"_stop\"]",
													Start: ast.Position{
														Column: 26,
														Line:   40,
													},
												},
											},
											Elements: []ast.Expression{&ast.StringLiteral{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 35,
															Line:   40,
														},
														File:   "dayOfWeek_test.flux",
														Source: "\"_start\"",
														Start: ast.Position{
															Column: 27,
															Line:   40,
														},
													},
												},
												Value: "_start",
											}, &ast.StringLiteral{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 44,
															Line:   40,
														},
														File:   "dayOfWeek_test.flux",
														Source: "\"_stop\"",
														Start: ast.Position{
															Column: 37,
															Line:   40,
														},
													},
												},
												Value: "_stop",
											}},
											Lbrack: nil,
											Rbrack: nil,
										},
									}},
									Rbrace: nil,
									With:   nil,
								}},
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   40,
										},
										File:   "dayOfWeek_test.flux",
										Source: "drop(columns: [\"_start\", \"_stop\"])",
										Start: ast.Position{
											Column: 12,
											Line:   40,
										},
									},
								},
								Callee: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 16,
												Line:   40,
											},
											File:   "dayOfWeek_test.flux",
											Source: "drop",
											Start: ast.Position{
												Column: 12,
												Line:   40,
											},
										},
									},
									Name: "drop",
								},
								Lparen: nil,
								Rparen: nil,
							},
						},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 30,
									Line:   41,
								},
								File:   "dayOfWeek_test.flux",
								Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()",
								Start: ast.Position{
									Column: 5,
									Line:   38,
								},
							},
						},
						Call: &ast.CallExpression{
							Arguments: nil,
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 30,
										Line:   41,
									},
									File:   "dayOfWeek_test.flux",
									Source: "promql.timestamp()",
									Start: ast.Position{
										Column: 12,
										Line:   41,
									},
								},
							},
							Callee: &ast.MemberExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 28,
											Line:   41,
										},
										File:   "dayOfWeek_test.flux",
										Source: "promql.timestamp",
										Start: ast.Position{
											Column: 12,
											Line:   41,
										},
									},
								},
								Lbrack: nil,
								Object: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 18,
												Line:   41,
											},
											File:   "dayOfWeek_test.flux",
											Source: "promql",
											Start: ast.Position{
												Column: 12,
												Line:   41,
											},
										},
									},
									Name: "promql",
								},
								Property: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 28,
												Line:   41,
											},
											File:   "dayOfWeek_test.flux",
											Source: "timestamp",
											Start: ast.Position{
												Column: 19,
												Line:   41,
											},
										},
									},
									Name: "timestamp",
								},
								Rbrack: nil,
							},
							Lparen: nil,
							Rparen: nil,
						},
					},
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 90,
								Line:   42,
							},
							File:   "dayOfWeek_test.flux",
							Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()\n        |> map(fn: (r) => ({r with _value: promql.promqlDayOfWeek(timestamp: r._value)}))",
							Start: ast.Position{
								Column: 5,
								Line:   38,
							},
						},
					},
					Call: &ast.CallExpression{
						Arguments: []ast.Expression{&ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 89,
										Line:   42,
									},
									File:   "dayOfWeek_test.flux",
									Source: "fn: (r) => ({r with _value: promql.promqlDayOfWeek(timestamp: r._value)})",
									Start: ast.Position{
										Column: 16,
										Line:   42,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 89,
											Line:   42,
										},
										File:   "dayOfWeek_test.flux",
										Source: "fn: (r) => ({r with _value: promql.promqlDayOfWeek(timestamp: r._value)})",
										Start: ast.Position{
											Column: 16,
											Line:   42,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 18,
												Line:   42,
											},
											File:   "dayOfWeek_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 16,
												Line:   42,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.FunctionExpression{
									Arrow: nil,
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 89,
												Line:   42,
											},
											File:   "dayOfWeek_test.flux",
											Source: "(r) => ({r with _value: promql.promqlDayOfWeek(timestamp: r._value)})",
											Start: ast.Position{
												Column: 20,
												Line:   42,
											},
										},
									},
									Body: &ast.ParenExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 89,
													Line:   42,
												},
												File:   "dayOfWeek_test.flux",
												Source: "({r with _value: promql.promqlDayOfWeek(timestamp: r._value)})",
												Start: ast.Position{
													Column: 27,
													Line:   42,
												},
											},
										},
										Expression: &ast.ObjectExpression{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 88,
														Line:   42,
													},
													File:   "dayOfWeek_test.flux",
													Source: "{r with _value: promql.promqlDayOfWeek(timestamp: r._value)}",
													Start: ast.Position{
														Column: 28,
														Line:   42,
													},
												},
											},
											Lbrace: nil,
											Properties: []*ast.Property{&ast.Property{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 87,
															Line:   42,
														},
														File:   "dayOfWeek_test.flux",
														Source: "_value: promql.promqlDayOfWeek(timestamp: r._value)",
														Start: ast.Position{
															Column: 36,
															Line:   42,
														},
													},
												},
												Comma: nil,
												Key: &ast.Identifier{
													BaseNode: ast.BaseNode{
														Comments: nil,
														Errors:   nil,
														Loc: &ast.SourceLocation{
															End: ast.Position{
																Column: 42,
																Line:   42,
															},
															File:   "dayOfWeek_test.flux",
															Source: "_value",
															Start: ast.Position{
																Column: 36,
																Line:   42,
															},
														},
													},
													Name: "_value",
												},
												Separator: nil,
												Value: &ast.CallExpression{
													Arguments: []ast.Expression{&ast.ObjectExpression{
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 86,
																	Line:   42,
																},
																File:   "dayOfWeek_test.flux",
																Source: "timestamp: r._value",
																Start: ast.Position{
																	Column: 67,
																	Line:   42,
																},
															},
														},
														Lbrace: nil,
														Properties: []*ast.Property{&ast.Property{
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 86,
																		Line:   42,
																	},
																	File:   "dayOfWeek_test.flux",
																	Source: "timestamp: r._value",
																	Start: ast.Position{
																		Column: 67,
																		Line:   42,
																	},
																},
															},
															Comma: nil,
															Key: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 76,
																			Line:   42,
																		},
																		File:   "dayOfWeek_test.flux",
																		Source: "timestamp",
																		Start: ast.Position{
																			Column: 67,
																			Line:   42,
																		},
																	},
																},
																Name: "timestamp",
															},
															Separator: nil,
															Value: &ast.MemberExpression{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 86,
																			Line:   42,
																		},
																		File:   "dayOfWeek_test.flux",
																		Source: "r._value",
																		Start: ast.Position{
																			Column: 78,
																			Line:   42,
																		},
																	},
																},
																Lbrack: nil,
																Object: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 79,
																				Line:   42,
																			},
																			File:   "dayOfWeek_test.flux",
																			Source: "r",
																			Start: ast.Position{
																				Column: 78,
																				Line:   42,
																			},
																		},
																	},
																	Name: "r",
																},
																Property: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 86,
																				Line:   42,
																			},
																			File:   "dayOfWeek_test.flux",
																			Source: "_value",
																			Start: ast.Position{
																				Column: 80,
																				Line:   42,
																			},
																		},
																	},
																	Name: "_value",
																},
																Rbrack: nil,
															},
														}},
														Rbrace: nil,
														With:   nil,
													}},
													BaseNode: ast.BaseNode{
														Comments: nil,
														Errors:   nil,
														Loc: &ast.SourceLocation{
															End: ast.Position{
																Column: 87,
																Line:   42,
															},
															File:   "dayOfWeek_test.flux",
															Source: "promql.promqlDayOfWeek(timestamp: r._value)",
															Start: ast.Position{
																Column: 44,
																Line:   42,
															},
														},
													},
													Callee: &ast.MemberExpression{
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 66,
																	Line:   42,
																},
																File:   "dayOfWeek_test.flux",
																Source: "promql.promqlDayOfWeek",
																Start: ast.Position{
																	Column: 44,
																	Line:   42,
																},
															},
														},
														Lbrack: nil,
														Object: &ast.Identifier{
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 50,
																		Line:   42,
																	},
																	File:   "dayOfWeek_test.flux",
																	Source: "promql",
																	Start: ast.Position{
																		Column: 44,
																		Line:   42,
																	},
																},
															},
															Name: "promql",
														},
														Property: &ast.Identifier{
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 66,
																		Line:   42,
																	},
																	File:   "dayOfWeek_test.flux",
																	Source: "promqlDayOfWeek",
																	Start: ast.Position{
																		Column: 51,
																		Line:   42,
																	},
																},
															},
															Name: "promqlDayOfWeek",
														},
														Rbrack: nil,
													},
													Lparen: nil,
													Rparen: nil,
												},
											}},
											Rbrace: nil,
											With: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 30,
															Line:   42,
														},
														File:   "dayOfWeek_test.flux",
														Source: "r",
														Start: ast.Position{
															Column: 29,
															Line:   42,
														},
													},
												},
												Name: "r",
											},
										},
										Lparen: nil,
										Rparen: nil,
									},
									Lparen: nil,
									Params: []*ast.Property{&ast.Property{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 22,
													Line:   42,
												},
												File:   "dayOfWeek_test.flux",
												Source: "r",
												Start: ast.Position{
													Column: 21,
													Line:   42,
												},
											},
										},
										Comma: nil,
										Key: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 22,
														Line:   42,
													},
													File:   "dayOfWeek_test.flux",
													Source: "r",
													Start: ast.Position{
														Column: 21,
														Line:   42,
													},
												},
											},
											Name: "r",
										},
										Separator: nil,
										Value:     nil,
									}},
									Rparan: nil,
								},
							}},
							Rbrace: nil,
							With:   nil,
						}},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 90,
									Line:   42,
								},
								File:   "dayOfWeek_test.flux",
								Source: "map(fn: (r) => ({r with _value: promql.promqlDayOfWeek(timestamp: r._value)}))",
								Start: ast.Position{
									Column: 12,
									Line:   42,
								},
							},
						},
						Callee: &ast.Identifier{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 15,
										Line:   42,
									},
									File:   "dayOfWeek_test.flux",
									Source: "map",
									Start: ast.Position{
										Column: 12,
										Line:   42,
									},
								},
							},
							Name: "map",
						},
						Lparen: nil,
						Rparen: nil,
					},
				},
				Lparen: nil,
				Params: []*ast.Property{&ast.Property{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 30,
								Line:   37,
							},
							File:   "dayOfWeek_test.flux",
							Source: "table=<-",
							Start: ast.Position{
								Column: 22,
								Line:   37,
							},
						},
					},
					Comma: nil,
					Key: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 27,
									Line:   37,
								},
								File:   "dayOfWeek_test.flux",
								Source: "table",
								Start: ast.Position{
									Column: 22,
									Line:   37,
								},
							},
						},
						Name: "table",
					},
					Separator: nil,
					Value: &ast.PipeLiteral{BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 30,
								Line:   37,
							},
							File:   "dayOfWeek_test.flux",
							Source: "<-",
							Start: ast.Position{
								Column: 28,
								Line:   37,
							},
						},
					}},
				}},
				Rparan: nil,
			},
		}, &ast.TestStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 108,
							Line:   45,
						},
						File:   "dayOfWeek_test.flux",
						Source: "_promqlDayOfWeek = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlDayOfWeek})",
						Start: ast.Position{
							Column: 6,
							Line:   44,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 22,
								Line:   44,
							},
							File:   "dayOfWeek_test.flux",
							Source: "_promqlDayOfWeek",
							Start: ast.Position{
								Column: 6,
								Line:   44,
							},
						},
					},
					Name: "_promqlDayOfWeek",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 108,
								Line:   45,
							},
							File:   "dayOfWeek_test.flux",
							Source: "() =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlDayOfWeek})",
							Start: ast.Position{
								Column: 25,
								Line:   44,
							},
						},
					},
					Body: &ast.ParenExpression{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 108,
									Line:   45,
								},
								File:   "dayOfWeek_test.flux",
								Source: "({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlDayOfWeek})",
								Start: ast.Position{
									Column: 5,
									Line:   45,
								},
							},
						},
						Expression: &ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 107,
										Line:   45,
									},
									File:   "dayOfWeek_test.flux",
									Source: "{input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlDayOfWeek}",
									Start: ast.Position{
										Column: 6,
										Line:   45,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   45,
										},
										File:   "dayOfWeek_test.flux",
										Source: "input: testing.loadStorage(csv: inData)",
										Start: ast.Position{
											Column: 7,
											Line:   45,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 12,
												Line:   45,
											},
											File:   "dayOfWeek_test.flux",
											Source: "input",
											Start: ast.Position{
												Column: 7,
												Line:   45,
											},
										},
									},
									Name: "input",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   45,
												},
												File:   "dayOfWeek_test.flux",
												Source: "csv: inData",
												Start: ast.Position{
													Column: 34,
													Line:   45,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   45,
													},
													File:   "dayOfWeek_test.flux",
													Source: "csv: inData",
													Start: ast.Position{
														Column: 34,
														Line:   45,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 37,
															Line:   45,
														},
														File:   "dayOfWeek_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 34,
															Line:   45,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 45,
															Line:   45,
														},
														File:   "dayOfWeek_test.flux",
														Source: "inData",
														Start: ast.Position{
															Column: 39,
															Line:   45,
														},
													},
												},
												Name: "inData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 46,
												Line:   45,
											},
											File:   "dayOfWeek_test.flux",
											Source: "testing.loadStorage(csv: inData)",
											Start: ast.Position{
												Column: 14,
												Line:   45,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 33,
													Line:   45,
												},
												File:   "dayOfWeek_test.flux",
												Source: "testing.loadStorage",
												Start: ast.Position{
													Column: 14,
													Line:   45,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 21,
														Line:   45,
													},
													File:   "dayOfWeek_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 14,
														Line:   45,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 33,
														Line:   45,
													},
													File:   "dayOfWeek_test.flux",
													Source: "loadStorage",
													Start: ast.Position{
														Column: 22,
														Line:   45,
													},
												},
											},
											Name: "loadStorage",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 83,
											Line:   45,
										},
										File:   "dayOfWeek_test.flux",
										Source: "want: testing.loadMem(csv: outData)",
										Start: ast.Position{
											Column: 48,
											Line:   45,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 52,
												Line:   45,
											},
											File:   "dayOfWeek_test.flux",
											Source: "want",
											Start: ast.Position{
												Column: 48,
												Line:   45,
											},
										},
									},
									Name: "want",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 82,
													Line:   45,
												},
												File:   "dayOfWeek_test.flux",
												Source: "csv: outData",
												Start: ast.Position{
													Column: 70,
													Line:   45,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 82,
														Line:   45,
													},
													File:   "dayOfWeek_test.flux",
													Source: "csv: outData",
													Start: ast.Position{
														Column: 70,
														Line:   45,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 73,
															Line:   45,
														},
														File:   "dayOfWeek_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 70,
															Line:   45,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 82,
															Line:   45,
														},
														File:   "dayOfWeek_test.flux",
														Source: "outData",
														Start: ast.Position{
															Column: 75,
															Line:   45,
														},
													},
												},
												Name: "outData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 83,
												Line:   45,
											},
											File:   "dayOfWeek_test.flux",
											Source: "testing.loadMem(csv: outData)",
											Start: ast.Position{
												Column: 54,
												Line:   45,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 69,
													Line:   45,
												},
												File:   "dayOfWeek_test.flux",
												Source: "testing.loadMem",
												Start: ast.Position{
													Column: 54,
													Line:   45,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 61,
														Line:   45,
													},
													File:   "dayOfWeek_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 54,
														Line:   45,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 69,
														Line:   45,
													},
													File:   "dayOfWeek_test.flux",
													Source: "loadMem",
													Start: ast.Position{
														Column: 62,
														Line:   45,
													},
												},
											},
											Name: "loadMem",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 106,
											Line:   45,
										},
										File:   "dayOfWeek_test.flux",
										Source: "fn: t_promqlDayOfWeek",
										Start: ast.Position{
											Column: 85,
											Line:   45,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 87,
												Line:   45,
											},
											File:   "dayOfWeek_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 85,
												Line:   45,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 106,
												Line:   45,
											},
											File:   "dayOfWeek_test.flux",
											Source: "t_promqlDayOfWeek",
											Start: ast.Position{
												Column: 89,
												Line:   45,
											},
										},
									},
									Name: "t_promqlDayOfWeek",
								},
							}},
							Rbrace: nil,
							With:   nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 108,
						Line:   45,
					},
					File:   "dayOfWeek_test.flux",
					Source: "test _promqlDayOfWeek = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlDayOfWeek})",
					Start: ast.Position{
						Column: 1,
						Line:   44,
					},
				},
			},
		}},
		Eof: nil,
		Imports: []*ast.ImportDeclaration{&ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 17,
						Line:   4,
					},
					File:   "dayOfWeek_test.flux",
					Source: "import \"testing\"",
					Start: ast.Position{
						Column: 1,
						Line:   4,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 17,
							Line:   4,
						},
						File:   "dayOfWeek_test.flux",
						Source: "\"testing\"",
						Start: ast.Position{
							Column: 8,
							Line:   4,
						},
					},
				},
				Value: "testing",
			},
		}, &ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 25,
						Line:   5,
					},
					File:   "dayOfWeek_test.flux",
					Source: "import \"internal/promql\"",
					Start: ast.Position{
						Column: 1,
						Line:   5,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 25,
							Line:   5,
						},
						File:   "dayOfWeek_test.flux",
						Source: "\"internal/promql\"",
						Start: ast.Position{
							Column: 8,
							Line:   5,
						},
					},
				},
				Value: "internal/promql",
			},
		}},
		Metadata: "parser-type=rust",
		Name:     "dayOfWeek_test.flux",
		Package: &ast.PackageClause{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 20,
						Line:   1,
					},
					File:   "dayOfWeek_test.flux",
					Source: "package promql_test",
					Start: ast.Position{
						Column: 1,
						Line:   1,
					},
				},
			},
			Name: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 20,
							Line:   1,
						},
						File:   "dayOfWeek_test.flux",
						Source: "promql_test",
						Start: ast.Position{
							Column: 9,
							Line:   1,
						},
					},
				},
				Name: "promql_test",
			},
		},
	}, &ast.File{
		BaseNode: ast.BaseNode{
			Comments: nil,
			Errors:   nil,
			Loc: &ast.SourceLocation{
				End: ast.Position{
					Column: 110,
					Line:   43,
				},
				File:   "daysInMonth_test.flux",
				Source: "package promql_test\n\n\nimport \"testing\"\nimport \"internal/promql\"\n\noption now = () => 2030-01-01T00:00:00Z\n\ninData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T20:00:00Z,metric_name,0,prometheus\n,,0,2018-02-04T20:00:00Z,metric_name,0,prometheus\n,,0,2018-03-05T20:00:00Z,metric_name,0,prometheus\n,,0,2018-10-06T20:00:00Z,metric_name,0,prometheus\n,,0,2018-11-07T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-08T20:00:00Z,metric_name,0,prometheus\n\"\noutData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,outData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T20:00:00Z,metric_name,31,prometheus\n,,0,2018-02-04T20:00:00Z,metric_name,28,prometheus\n,,0,2018-03-05T20:00:00Z,metric_name,31,prometheus\n,,0,2018-10-06T20:00:00Z,metric_name,31,prometheus\n,,0,2018-11-07T20:00:00Z,metric_name,30,prometheus\n,,0,2018-12-08T20:00:00Z,metric_name,31,prometheus\n\"\nt_promqlDaysInMonth = (table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()\n        |> map(fn: (r) => ({r with _value: promql.promqlDaysInMonth(timestamp: r._value)}))\n\ntest _promqlDaysInMonth = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlDaysInMonth})",
				Start: ast.Position{
					Column: 1,
					Line:   1,
				},
			},
		},
		Body: []ast.Statement{&ast.OptionStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 40,
							Line:   7,
						},
						File:   "daysInMonth_test.flux",
						Source: "now = () => 2030-01-01T00:00:00Z",
						Start: ast.Position{
							Column: 8,
							Line:   7,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 11,
								Line:   7,
							},
							File:   "daysInMonth_test.flux",
							Source: "now",
							Start: ast.Position{
								Column: 8,
								Line:   7,
							},
						},
					},
					Name: "now",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 40,
								Line:   7,
							},
							File:   "daysInMonth_test.flux",
							Source: "() => 2030-01-01T00:00:00Z",
							Start: ast.Position{
								Column: 14,
								Line:   7,
							},
						},
					},
					Body: &ast.DateTimeLiteral{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 40,
									Line:   7,
								},
								File:   "daysInMonth_test.flux",
								Source: "2030-01-01T00:00:00Z",
								Start: ast.Position{
									Column: 20,
									Line:   7,
								},
							},
						},
						Value: parser.MustParseTime("2030-01-01T00:00:00Z"),
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 40,
						Line:   7,
					},
					File:   "daysInMonth_test.flux",
					Source: "option now = () => 2030-01-01T00:00:00Z",
					Start: ast.Position{
						Column: 1,
						Line:   7,
					},
				},
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   21,
					},
					File:   "daysInMonth_test.flux",
					Source: "inData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T20:00:00Z,metric_name,0,prometheus\n,,0,2018-02-04T20:00:00Z,metric_name,0,prometheus\n,,0,2018-03-05T20:00:00Z,metric_name,0,prometheus\n,,0,2018-10-06T20:00:00Z,metric_name,0,prometheus\n,,0,2018-11-07T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-08T20:00:00Z,metric_name,0,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   9,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 7,
							Line:   9,
						},
						File:   "daysInMonth_test.flux",
						Source: "inData",
						Start: ast.Position{
							Column: 1,
							Line:   9,
						},
					},
				},
				Name: "inData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   21,
						},
						File:   "daysInMonth_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T20:00:00Z,metric_name,0,prometheus\n,,0,2018-02-04T20:00:00Z,metric_name,0,prometheus\n,,0,2018-03-05T20:00:00Z,metric_name,0,prometheus\n,,0,2018-10-06T20:00:00Z,metric_name,0,prometheus\n,,0,2018-11-07T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-08T20:00:00Z,metric_name,0,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   10,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T20:00:00Z,metric_name,0,prometheus\n,,0,2018-02-04T20:00:00Z,metric_name,0,prometheus\n,,0,2018-03-05T20:00:00Z,metric_name,0,prometheus\n,,0,2018-10-06T20:00:00Z,metric_name,0,prometheus\n,,0,2018-11-07T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-08T20:00:00Z,metric_name,0,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   34,
					},
					File:   "daysInMonth_test.flux",
					Source: "outData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,outData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T20:00:00Z,metric_name,31,prometheus\n,,0,2018-02-04T20:00:00Z,metric_name,28,prometheus\n,,0,2018-03-05T20:00:00Z,metric_name,31,prometheus\n,,0,2018-10-06T20:00:00Z,metric_name,31,prometheus\n,,0,2018-11-07T20:00:00Z,metric_name,30,prometheus\n,,0,2018-12-08T20:00:00Z,metric_name,31,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   22,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 8,
							Line:   22,
						},
						File:   "daysInMonth_test.flux",
						Source: "outData",
						Start: ast.Position{
							Column: 1,
							Line:   22,
						},
					},
				},
				Name: "outData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   34,
						},
						File:   "daysInMonth_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,outData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T20:00:00Z,metric_name,31,prometheus\n,,0,2018-02-04T20:00:00Z,metric_name,28,prometheus\n,,0,2018-03-05T20:00:00Z,metric_name,31,prometheus\n,,0,2018-10-06T20:00:00Z,metric_name,31,prometheus\n,,0,2018-11-07T20:00:00Z,metric_name,30,prometheus\n,,0,2018-12-08T20:00:00Z,metric_name,31,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   23,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,outData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T20:00:00Z,metric_name,31,prometheus\n,,0,2018-02-04T20:00:00Z,metric_name,28,prometheus\n,,0,2018-03-05T20:00:00Z,metric_name,31,prometheus\n,,0,2018-10-06T20:00:00Z,metric_name,31,prometheus\n,,0,2018-11-07T20:00:00Z,metric_name,30,prometheus\n,,0,2018-12-08T20:00:00Z,metric_name,31,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 92,
						Line:   40,
					},
					File:   "daysInMonth_test.flux",
					Source: "t_promqlDaysInMonth = (table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()\n        |> map(fn: (r) => ({r with _value: promql.promqlDaysInMonth(timestamp: r._value)}))",
					Start: ast.Position{
						Column: 1,
						Line:   35,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 20,
							Line:   35,
						},
						File:   "daysInMonth_test.flux",
						Source: "t_promqlDaysInMonth",
						Start: ast.Position{
							Column: 1,
							Line:   35,
						},
					},
				},
				Name: "t_promqlDaysInMonth",
			},
			Init: &ast.FunctionExpression{
				Arrow: nil,
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 92,
							Line:   40,
						},
						File:   "daysInMonth_test.flux",
						Source: "(table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()\n        |> map(fn: (r) => ({r with _value: promql.promqlDaysInMonth(timestamp: r._value)}))",
						Start: ast.Position{
							Column: 23,
							Line:   35,
						},
					},
				},
				Body: &ast.PipeExpression{
					Argument: &ast.PipeExpression{
						Argument: &ast.PipeExpression{
							Argument: &ast.PipeExpression{
								Argument: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 10,
												Line:   36,
											},
											File:   "daysInMonth_test.flux",
											Source: "table",
											Start: ast.Position{
												Column: 5,
												Line:   36,
											},
										},
									},
									Name: "table",
								},
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   37,
										},
										File:   "daysInMonth_test.flux",
										Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)",
										Start: ast.Position{
											Column: 5,
											Line:   36,
										},
									},
								},
								Call: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   37,
												},
												File:   "daysInMonth_test.flux",
												Source: "start: 1980-01-01T00:00:00Z",
												Start: ast.Position{
													Column: 18,
													Line:   37,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   37,
													},
													File:   "daysInMonth_test.flux",
													Source: "start: 1980-01-01T00:00:00Z",
													Start: ast.Position{
														Column: 18,
														Line:   37,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 23,
															Line:   37,
														},
														File:   "daysInMonth_test.flux",
														Source: "start",
														Start: ast.Position{
															Column: 18,
															Line:   37,
														},
													},
												},
												Name: "start",
											},
											Separator: nil,
											Value: &ast.DateTimeLiteral{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 45,
															Line:   37,
														},
														File:   "daysInMonth_test.flux",
														Source: "1980-01-01T00:00:00Z",
														Start: ast.Position{
															Column: 25,
															Line:   37,
														},
													},
												},
												Value: parser.MustParseTime("1980-01-01T00:00:00Z"),
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 46,
												Line:   37,
											},
											File:   "daysInMonth_test.flux",
											Source: "range(start: 1980-01-01T00:00:00Z)",
											Start: ast.Position{
												Column: 12,
												Line:   37,
											},
										},
									},
									Callee: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 17,
													Line:   37,
												},
												File:   "daysInMonth_test.flux",
												Source: "range",
												Start: ast.Position{
													Column: 12,
													Line:   37,
												},
											},
										},
										Name: "range",
									},
									Lparen: nil,
									Rparen: nil,
								},
							},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 46,
										Line:   38,
									},
									File:   "daysInMonth_test.flux",
									Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])",
									Start: ast.Position{
										Column: 5,
										Line:   36,
									},
								},
							},
							Call: &ast.CallExpression{
								Arguments: []ast.Expression{&ast.ObjectExpression{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   38,
											},
											File:   "daysInMonth_test.flux",
											Source: "columns: [\"_start\", \"_stop\"]",
											Start: ast.Position{
												Column: 17,
												Line:   38,
											},
										},
									},
									Lbrace: nil,
									Properties: []*ast.Property{&ast.Property{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   38,
												},
												File:   "daysInMonth_test.flux",
												Source: "columns: [\"_start\", \"_stop\"]",
												Start: ast.Position{
													Column: 17,
													Line:   38,
												},
											},
										},
										Comma: nil,
										Key: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 24,
														Line:   38,
													},
													File:   "daysInMonth_test.flux",
													Source: "columns",
													Start: ast.Position{
														Column: 17,
														Line:   38,
													},
												},
											},
											Name: "columns",
										},
										Separator: nil,
										Value: &ast.ArrayExpression{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   38,
													},
													File:   "daysInMonth_test.flux",
													Source: "[\"_start\", \"_stop\"]",
													Start: ast.Position{
														Column: 26,
														Line:   38,
													},
												},
											},
											Elements: []ast.Expression{&ast.StringLiteral{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 35,
															Line:   38,
														},
														File:   "daysInMonth_test.flux",
														Source: "\"_start\"",
														Start: ast.Position{
															Column: 27,
															Line:   38,
														},
													},
												},
												Value: "_start",
											}, &ast.StringLiteral{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 44,
															Line:   38,
														},
														File:   "daysInMonth_test.flux",
														Source: "\"_stop\"",
														Start: ast.Position{
															Column: 37,
															Line:   38,
														},
													},
												},
												Value: "_stop",
											}},
											Lbrack: nil,
											Rbrack: nil,
										},
									}},
									Rbrace: nil,
									With:   nil,
								}},
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   38,
										},
										File:   "daysInMonth_test.flux",
										Source: "drop(columns: [\"_start\", \"_stop\"])",
										Start: ast.Position{
											Column: 12,
											Line:   38,
										},
									},
								},
								Callee: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 16,
												Line:   38,
											},
											File:   "daysInMonth_test.flux",
											Source: "drop",
											Start: ast.Position{
												Column: 12,
												Line:   38,
											},
										},
									},
									Name: "drop",
								},
								Lparen: nil,
								Rparen: nil,
							},
						},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 30,
									Line:   39,
								},
								File:   "daysInMonth_test.flux",
								Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()",
								Start: ast.Position{
									Column: 5,
									Line:   36,
								},
							},
						},
						Call: &ast.CallExpression{
							Arguments: nil,
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 30,
										Line:   39,
									},
									File:   "daysInMonth_test.flux",
									Source: "promql.timestamp()",
									Start: ast.Position{
										Column: 12,
										Line:   39,
									},
								},
							},
							Callee: &ast.MemberExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 28,
											Line:   39,
										},
										File:   "daysInMonth_test.flux",
										Source: "promql.timestamp",
										Start: ast.Position{
											Column: 12,
											Line:   39,
										},
									},
								},
								Lbrack: nil,
								Object: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 18,
												Line:   39,
											},
											File:   "daysInMonth_test.flux",
											Source: "promql",
											Start: ast.Position{
												Column: 12,
												Line:   39,
											},
										},
									},
									Name: "promql",
								},
								Property: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 28,
												Line:   39,
											},
											File:   "daysInMonth_test.flux",
											Source: "timestamp",
											Start: ast.Position{
												Column: 19,
												Line:   39,
											},
										},
									},
									Name: "timestamp",
								},
								Rbrack: nil,
							},
							Lparen: nil,
							Rparen: nil,
						},
					},
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 92,
								Line:   40,
							},
							File:   "daysInMonth_test.flux",
							Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()\n        |> map(fn: (r) => ({r with _value: promql.promqlDaysInMonth(timestamp: r._value)}))",
							Start: ast.Position{
								Column: 5,
								Line:   36,
							},
						},
					},
					Call: &ast.CallExpression{
						Arguments: []ast.Expression{&ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 91,
										Line:   40,
									},
									File:   "daysInMonth_test.flux",
									Source: "fn: (r) => ({r with _value: promql.promqlDaysInMonth(timestamp: r._value)})",
									Start: ast.Position{
										Column: 16,
										Line:   40,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 91,
											Line:   40,
										},
										File:   "daysInMonth_test.flux",
										Source: "fn: (r) => ({r with _value: promql.promqlDaysInMonth(timestamp: r._value)})",
										Start: ast.Position{
											Column: 16,
											Line:   40,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 18,
												Line:   40,
											},
											File:   "daysInMonth_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 16,
												Line:   40,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.FunctionExpression{
									Arrow: nil,
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 91,
												Line:   40,
											},
											File:   "daysInMonth_test.flux",
											Source: "(r) => ({r with _value: promql.promqlDaysInMonth(timestamp: r._value)})",
											Start: ast.Position{
												Column: 20,
												Line:   40,
											},
										},
									},
									Body: &ast.ParenExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 91,
													Line:   40,
												},
												File:   "daysInMonth_test.flux",
												Source: "({r with _value: promql.promqlDaysInMonth(timestamp: r._value)})",
												Start: ast.Position{
													Column: 27,
													Line:   40,
												},
											},
										},
										Expression: &ast.ObjectExpression{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 90,
														Line:   40,
													},
													File:   "daysInMonth_test.flux",
													Source: "{r with _value: promql.promqlDaysInMonth(timestamp: r._value)}",
													Start: ast.Position{
														Column: 28,
														Line:   40,
													},
												},
											},
											Lbrace: nil,
											Properties: []*ast.Property{&ast.Property{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 89,
															Line:   40,
														},
														File:   "daysInMonth_test.flux",
														Source: "_value: promql.promqlDaysInMonth(timestamp: r._value)",
														Start: ast.Position{
															Column: 36,
															Line:   40,
														},
													},
												},
												Comma: nil,
												Key: &ast.Identifier{
													BaseNode: ast.BaseNode{
														Comments: nil,
														Errors:   nil,
														Loc: &ast.SourceLocation{
															End: ast.Position{
																Column: 42,
																Line:   40,
															},
															File:   "daysInMonth_test.flux",
															Source: "_value",
															Start: ast.Position{
																Column: 36,
																Line:   40,
															},
														},
													},
													Name: "_value",
												},
												Separator: nil,
												Value: &ast.CallExpression{
													Arguments: []ast.Expression{&ast.ObjectExpression{
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 88,
																	Line:   40,
																},
																File:   "daysInMonth_test.flux",
																Source: "timestamp: r._value",
																Start: ast.Position{
																	Column: 69,
																	Line:   40,
																},
															},
														},
														Lbrace: nil,
														Properties: []*ast.Property{&ast.Property{
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 88,
																		Line:   40,
																	},
																	File:   "daysInMonth_test.flux",
																	Source: "timestamp: r._value",
																	Start: ast.Position{
																		Column: 69,
																		Line:   40,
																	},
																},
															},
															Comma: nil,
															Key: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 78,
																			Line:   40,
																		},
																		File:   "daysInMonth_test.flux",
																		Source: "timestamp",
																		Start: ast.Position{
																			Column: 69,
																			Line:   40,
																		},
																	},
																},
																Name: "timestamp",
															},
															Separator: nil,
															Value: &ast.MemberExpression{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 88,
																			Line:   40,
																		},
																		File:   "daysInMonth_test.flux",
																		Source: "r._value",
																		Start: ast.Position{
																			Column: 80,
																			Line:   40,
																		},
																	},
																},
																Lbrack: nil,
																Object: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 81,
																				Line:   40,
																			},
																			File:   "daysInMonth_test.flux",
																			Source: "r",
																			Start: ast.Position{
																				Column: 80,
																				Line:   40,
																			},
																		},
																	},
																	Name: "r",
																},
																Property: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 88,
																				Line:   40,
																			},
																			File:   "daysInMonth_test.flux",
																			Source: "_value",
																			Start: ast.Position{
																				Column: 82,
																				Line:   40,
																			},
																		},
																	},
																	Name: "_value",
																},
																Rbrack: nil,
															},
														}},
														Rbrace: nil,
														With:   nil,
													}},
													BaseNode: ast.BaseNode{
														Comments: nil,
														Errors:   nil,
														Loc: &ast.SourceLocation{
															End: ast.Position{
																Column: 89,
																Line:   40,
															},
															File:   "daysInMonth_test.flux",
															Source: "promql.promqlDaysInMonth(timestamp: r._value)",
															Start: ast.Position{
																Column: 44,
																Line:   40,
															},
														},
													},
													Callee: &ast.MemberExpression{
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 68,
																	Line:   40,
																},
																File:   "daysInMonth_test.flux",
																Source: "promql.promqlDaysInMonth",
																Start: ast.Position{
																	Column: 44,
																	Line:   40,
																},
															},
														},
														Lbrack: nil,
														Object: &ast.Identifier{
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 50,
																		Line:   40,
																	},
																	File:   "daysInMonth_test.flux",
																	Source: "promql",
																	Start: ast.Position{
																		Column: 44,
																		Line:   40,
																	},
																},
															},
															Name: "promql",
														},
														Property: &ast.Identifier{
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 68,
																		Line:   40,
																	},
																	File:   "daysInMonth_test.flux",
																	Source: "promqlDaysInMonth",
																	Start: ast.Position{
																		Column: 51,
																		Line:   40,
																	},
																},
															},
															Name: "promqlDaysInMonth",
														},
														Rbrack: nil,
													},
													Lparen: nil,
													Rparen: nil,
												},
											}},
											Rbrace: nil,
											With: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 30,
															Line:   40,
														},
														File:   "daysInMonth_test.flux",
														Source: "r",
														Start: ast.Position{
															Column: 29,
															Line:   40,
														},
													},
												},
												Name: "r",
											},
										},
										Lparen: nil,
										Rparen: nil,
									},
									Lparen: nil,
									Params: []*ast.Property{&ast.Property{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 22,
													Line:   40,
												},
												File:   "daysInMonth_test.flux",
												Source: "r",
												Start: ast.Position{
													Column: 21,
													Line:   40,
												},
											},
										},
										Comma: nil,
										Key: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 22,
														Line:   40,
													},
													File:   "daysInMonth_test.flux",
													Source: "r",
													Start: ast.Position{
														Column: 21,
														Line:   40,
													},
												},
											},
											Name: "r",
										},
										Separator: nil,
										Value:     nil,
									}},
									Rparan: nil,
								},
							}},
							Rbrace: nil,
							With:   nil,
						}},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 92,
									Line:   40,
								},
								File:   "daysInMonth_test.flux",
								Source: "map(fn: (r) => ({r with _value: promql.promqlDaysInMonth(timestamp: r._value)}))",
								Start: ast.Position{
									Column: 12,
									Line:   40,
								},
							},
						},
						Callee: &ast.Identifier{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 15,
										Line:   40,
									},
									File:   "daysInMonth_test.flux",
									Source: "map",
									Start: ast.Position{
										Column: 12,
										Line:   40,
									},
								},
							},
							Name: "map",
						},
						Lparen: nil,
						Rparen: nil,
					},
				},
				Lparen: nil,
				Params: []*ast.Property{&ast.Property{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 32,
								Line:   35,
							},
							File:   "daysInMonth_test.flux",
							Source: "table=<-",
							Start: ast.Position{
								Column: 24,
								Line:   35,
							},
						},
					},
					Comma: nil,
					Key: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 29,
									Line:   35,
								},
								File:   "daysInMonth_test.flux",
								Source: "table",
								Start: ast.Position{
									Column: 24,
									Line:   35,
								},
							},
						},
						Name: "table",
					},
					Separator: nil,
					Value: &ast.PipeLiteral{BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 32,
								Line:   35,
							},
							File:   "daysInMonth_test.flux",
							Source: "<-",
							Start: ast.Position{
								Column: 30,
								Line:   35,
							},
						},
					}},
				}},
				Rparan: nil,
			},
		}, &ast.TestStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 110,
							Line:   43,
						},
						File:   "daysInMonth_test.flux",
						Source: "_promqlDaysInMonth = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlDaysInMonth})",
						Start: ast.Position{
							Column: 6,
							Line:   42,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 24,
								Line:   42,
							},
							File:   "daysInMonth_test.flux",
							Source: "_promqlDaysInMonth",
							Start: ast.Position{
								Column: 6,
								Line:   42,
							},
						},
					},
					Name: "_promqlDaysInMonth",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 110,
								Line:   43,
							},
							File:   "daysInMonth_test.flux",
							Source: "() =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlDaysInMonth})",
							Start: ast.Position{
								Column: 27,
								Line:   42,
							},
						},
					},
					Body: &ast.ParenExpression{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 110,
									Line:   43,
								},
								File:   "daysInMonth_test.flux",
								Source: "({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlDaysInMonth})",
								Start: ast.Position{
									Column: 5,
									Line:   43,
								},
							},
						},
						Expression: &ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 109,
										Line:   43,
									},
									File:   "daysInMonth_test.flux",
									Source: "{input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlDaysInMonth}",
									Start: ast.Position{
										Column: 6,
										Line:   43,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   43,
										},
										File:   "daysInMonth_test.flux",
										Source: "input: testing.loadStorage(csv: inData)",
										Start: ast.Position{
											Column: 7,
											Line:   43,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 12,
												Line:   43,
											},
											File:   "daysInMonth_test.flux",
											Source: "input",
											Start: ast.Position{
												Column: 7,
												Line:   43,
											},
										},
									},
									Name: "input",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   43,
												},
												File:   "daysInMonth_test.flux",
												Source: "csv: inData",
												Start: ast.Position{
													Column: 34,
													Line:   43,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   43,
													},
													File:   "daysInMonth_test.flux",
													Source: "csv: inData",
													Start: ast.Position{
														Column: 34,
														Line:   43,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 37,
															Line:   43,
														},
														File:   "daysInMonth_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 34,
															Line:   43,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 45,
															Line:   43,
														},
														File:   "daysInMonth_test.flux",
														Source: "inData",
														Start: ast.Position{
															Column: 39,
															Line:   43,
														},
													},
												},
												Name: "inData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 46,
												Line:   43,
											},
											File:   "daysInMonth_test.flux",
											Source: "testing.loadStorage(csv: inData)",
											Start: ast.Position{
												Column: 14,
												Line:   43,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 33,
													Line:   43,
												},
												File:   "daysInMonth_test.flux",
												Source: "testing.loadStorage",
												Start: ast.Position{
													Column: 14,
													Line:   43,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 21,
														Line:   43,
													},
													File:   "daysInMonth_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 14,
														Line:   43,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 33,
														Line:   43,
													},
													File:   "daysInMonth_test.flux",
													Source: "loadStorage",
													Start: ast.Position{
														Column: 22,
														Line:   43,
													},
												},
											},
											Name: "loadStorage",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 83,
											Line:   43,
										},
										File:   "daysInMonth_test.flux",
										Source: "want: testing.loadMem(csv: outData)",
										Start: ast.Position{
											Column: 48,
											Line:   43,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 52,
												Line:   43,
											},
											File:   "daysInMonth_test.flux",
											Source: "want",
											Start: ast.Position{
												Column: 48,
												Line:   43,
											},
										},
									},
									Name: "want",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 82,
													Line:   43,
												},
												File:   "daysInMonth_test.flux",
												Source: "csv: outData",
												Start: ast.Position{
													Column: 70,
													Line:   43,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 82,
														Line:   43,
													},
													File:   "daysInMonth_test.flux",
													Source: "csv: outData",
													Start: ast.Position{
														Column: 70,
														Line:   43,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 73,
															Line:   43,
														},
														File:   "daysInMonth_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 70,
															Line:   43,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 82,
															Line:   43,
														},
														File:   "daysInMonth_test.flux",
														Source: "outData",
														Start: ast.Position{
															Column: 75,
															Line:   43,
														},
													},
												},
												Name: "outData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 83,
												Line:   43,
											},
											File:   "daysInMonth_test.flux",
											Source: "testing.loadMem(csv: outData)",
											Start: ast.Position{
												Column: 54,
												Line:   43,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 69,
													Line:   43,
												},
												File:   "daysInMonth_test.flux",
												Source: "testing.loadMem",
												Start: ast.Position{
													Column: 54,
													Line:   43,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 61,
														Line:   43,
													},
													File:   "daysInMonth_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 54,
														Line:   43,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 69,
														Line:   43,
													},
													File:   "daysInMonth_test.flux",
													Source: "loadMem",
													Start: ast.Position{
														Column: 62,
														Line:   43,
													},
												},
											},
											Name: "loadMem",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 108,
											Line:   43,
										},
										File:   "daysInMonth_test.flux",
										Source: "fn: t_promqlDaysInMonth",
										Start: ast.Position{
											Column: 85,
											Line:   43,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 87,
												Line:   43,
											},
											File:   "daysInMonth_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 85,
												Line:   43,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 108,
												Line:   43,
											},
											File:   "daysInMonth_test.flux",
											Source: "t_promqlDaysInMonth",
											Start: ast.Position{
												Column: 89,
												Line:   43,
											},
										},
									},
									Name: "t_promqlDaysInMonth",
								},
							}},
							Rbrace: nil,
							With:   nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 110,
						Line:   43,
					},
					File:   "daysInMonth_test.flux",
					Source: "test _promqlDaysInMonth = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlDaysInMonth})",
					Start: ast.Position{
						Column: 1,
						Line:   42,
					},
				},
			},
		}},
		Eof: nil,
		Imports: []*ast.ImportDeclaration{&ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 17,
						Line:   4,
					},
					File:   "daysInMonth_test.flux",
					Source: "import \"testing\"",
					Start: ast.Position{
						Column: 1,
						Line:   4,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 17,
							Line:   4,
						},
						File:   "daysInMonth_test.flux",
						Source: "\"testing\"",
						Start: ast.Position{
							Column: 8,
							Line:   4,
						},
					},
				},
				Value: "testing",
			},
		}, &ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 25,
						Line:   5,
					},
					File:   "daysInMonth_test.flux",
					Source: "import \"internal/promql\"",
					Start: ast.Position{
						Column: 1,
						Line:   5,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 25,
							Line:   5,
						},
						File:   "daysInMonth_test.flux",
						Source: "\"internal/promql\"",
						Start: ast.Position{
							Column: 8,
							Line:   5,
						},
					},
				},
				Value: "internal/promql",
			},
		}},
		Metadata: "parser-type=rust",
		Name:     "daysInMonth_test.flux",
		Package: &ast.PackageClause{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 20,
						Line:   1,
					},
					File:   "daysInMonth_test.flux",
					Source: "package promql_test",
					Start: ast.Position{
						Column: 1,
						Line:   1,
					},
				},
			},
			Name: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 20,
							Line:   1,
						},
						File:   "daysInMonth_test.flux",
						Source: "promql_test",
						Start: ast.Position{
							Column: 9,
							Line:   1,
						},
					},
				},
				Name: "promql_test",
			},
		},
	}, &ast.File{
		BaseNode: ast.BaseNode{
			Comments: nil,
			Errors:   nil,
			Loc: &ast.SourceLocation{
				End: ast.Position{
					Column: 111,
					Line:   18,
				},
				File:   "emptyTable_test.flux",
				Source: "package promql_test\n\n\nimport \"testing\"\nimport \"internal/promql\"\n\noption now = () => 2030-01-01T00:00:00Z\n\noutData =\n    \"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,dateTime:RFC3339,double\n#group,false,true,true,true,false,false\n#default,_result,0,1970-01-01T00:00:00Z,1970-01-01T00:00:00Z,,\n,result,table,_start,_stop,_time,_value\n\"\nt_emptyTable = (table=<-) => table\n\ntest _emptyTable = () => ({input: promql.emptyTable(), want: testing.loadMem(csv: outData), fn: t_emptyTable})",
				Start: ast.Position{
					Column: 1,
					Line:   1,
				},
			},
		},
		Body: []ast.Statement{&ast.OptionStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 40,
							Line:   7,
						},
						File:   "emptyTable_test.flux",
						Source: "now = () => 2030-01-01T00:00:00Z",
						Start: ast.Position{
							Column: 8,
							Line:   7,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 11,
								Line:   7,
							},
							File:   "emptyTable_test.flux",
							Source: "now",
							Start: ast.Position{
								Column: 8,
								Line:   7,
							},
						},
					},
					Name: "now",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 40,
								Line:   7,
							},
							File:   "emptyTable_test.flux",
							Source: "() => 2030-01-01T00:00:00Z",
							Start: ast.Position{
								Column: 14,
								Line:   7,
							},
						},
					},
					Body: &ast.DateTimeLiteral{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 40,
									Line:   7,
								},
								File:   "emptyTable_test.flux",
								Source: "2030-01-01T00:00:00Z",
								Start: ast.Position{
									Column: 20,
									Line:   7,
								},
							},
						},
						Value: parser.MustParseTime("2030-01-01T00:00:00Z"),
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 40,
						Line:   7,
					},
					File:   "emptyTable_test.flux",
					Source: "option now = () => 2030-01-01T00:00:00Z",
					Start: ast.Position{
						Column: 1,
						Line:   7,
					},
				},
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   15,
					},
					File:   "emptyTable_test.flux",
					Source: "outData =\n    \"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,dateTime:RFC3339,double\n#group,false,true,true,true,false,false\n#default,_result,0,1970-01-01T00:00:00Z,1970-01-01T00:00:00Z,,\n,result,table,_start,_stop,_time,_value\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   9,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 8,
							Line:   9,
						},
						File:   "emptyTable_test.flux",
						Source: "outData",
						Start: ast.Position{
							Column: 1,
							Line:   9,
						},
					},
				},
				Name: "outData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   15,
						},
						File:   "emptyTable_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,dateTime:RFC3339,double\n#group,false,true,true,true,false,false\n#default,_result,0,1970-01-01T00:00:00Z,1970-01-01T00:00:00Z,,\n,result,table,_start,_stop,_time,_value\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   10,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,dateTime:RFC3339,double\n#group,false,true,true,true,false,false\n#default,_result,0,1970-01-01T00:00:00Z,1970-01-01T00:00:00Z,,\n,result,table,_start,_stop,_time,_value\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 35,
						Line:   16,
					},
					File:   "emptyTable_test.flux",
					Source: "t_emptyTable = (table=<-) => table",
					Start: ast.Position{
						Column: 1,
						Line:   16,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 13,
							Line:   16,
						},
						File:   "emptyTable_test.flux",
						Source: "t_emptyTable",
						Start: ast.Position{
							Column: 1,
							Line:   16,
						},
					},
				},
				Name: "t_emptyTable",
			},
			Init: &ast.FunctionExpression{
				Arrow: nil,
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 35,
							Line:   16,
						},
						File:   "emptyTable_test.flux",
						Source: "(table=<-) => table",
						Start: ast.Position{
							Column: 16,
							Line:   16,
						},
					},
				},
				Body: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 35,
								Line:   16,
							},
							File:   "emptyTable_test.flux",
							Source: "table",
							Start: ast.Position{
								Column: 30,
								Line:   16,
							},
						},
					},
					Name: "table",
				},
				Lparen: nil,
				Params: []*ast.Property{&ast.Property{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 25,
								Line:   16,
							},
							File:   "emptyTable_test.flux",
							Source: "table=<-",
							Start: ast.Position{
								Column: 17,
								Line:   16,
							},
						},
					},
					Comma: nil,
					Key: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 22,
									Line:   16,
								},
								File:   "emptyTable_test.flux",
								Source: "table",
								Start: ast.Position{
									Column: 17,
									Line:   16,
								},
							},
						},
						Name: "table",
					},
					Separator: nil,
					Value: &ast.PipeLiteral{BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 25,
								Line:   16,
							},
							File:   "emptyTable_test.flux",
							Source: "<-",
							Start: ast.Position{
								Column: 23,
								Line:   16,
							},
						},
					}},
				}},
				Rparan: nil,
			},
		}, &ast.TestStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 111,
							Line:   18,
						},
						File:   "emptyTable_test.flux",
						Source: "_emptyTable = () => ({input: promql.emptyTable(), want: testing.loadMem(csv: outData), fn: t_emptyTable})",
						Start: ast.Position{
							Column: 6,
							Line:   18,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 17,
								Line:   18,
							},
							File:   "emptyTable_test.flux",
							Source: "_emptyTable",
							Start: ast.Position{
								Column: 6,
								Line:   18,
							},
						},
					},
					Name: "_emptyTable",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 111,
								Line:   18,
							},
							File:   "emptyTable_test.flux",
							Source: "() => ({input: promql.emptyTable(), want: testing.loadMem(csv: outData), fn: t_emptyTable})",
							Start: ast.Position{
								Column: 20,
								Line:   18,
							},
						},
					},
					Body: &ast.ParenExpression{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 111,
									Line:   18,
								},
								File:   "emptyTable_test.flux",
								Source: "({input: promql.emptyTable(), want: testing.loadMem(csv: outData), fn: t_emptyTable})",
								Start: ast.Position{
									Column: 26,
									Line:   18,
								},
							},
						},
						Expression: &ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 110,
										Line:   18,
									},
									File:   "emptyTable_test.flux",
									Source: "{input: promql.emptyTable(), want: testing.loadMem(csv: outData), fn: t_emptyTable}",
									Start: ast.Position{
										Column: 27,
										Line:   18,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 54,
											Line:   18,
										},
										File:   "emptyTable_test.flux",
										Source: "input: promql.emptyTable()",
										Start: ast.Position{
											Column: 28,
											Line:   18,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 33,
												Line:   18,
											},
											File:   "emptyTable_test.flux",
											Source: "input",
											Start: ast.Position{
												Column: 28,
												Line:   18,
											},
										},
									},
									Name: "input",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: nil,
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 54,
												Line:   18,
											},
											File:   "emptyTable_test.flux",
											Source: "promql.emptyTable()",
											Start: ast.Position{
												Column: 35,
												Line:   18,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 52,
													Line:   18,
												},
												File:   "emptyTable_test.flux",
												Source: "promql.emptyTable",
												Start: ast.Position{
													Column: 35,
													Line:   18,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 41,
														Line:   18,
													},
													File:   "emptyTable_test.flux",
													Source: "promql",
													Start: ast.Position{
														Column: 35,
														Line:   18,
													},
												},
											},
											Name: "promql",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 52,
														Line:   18,
													},
													File:   "emptyTable_test.flux",
													Source: "emptyTable",
													Start: ast.Position{
														Column: 42,
														Line:   18,
													},
												},
											},
											Name: "emptyTable",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 91,
											Line:   18,
										},
										File:   "emptyTable_test.flux",
										Source: "want: testing.loadMem(csv: outData)",
										Start: ast.Position{
											Column: 56,
											Line:   18,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 60,
												Line:   18,
											},
											File:   "emptyTable_test.flux",
											Source: "want",
											Start: ast.Position{
												Column: 56,
												Line:   18,
											},
										},
									},
									Name: "want",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 90,
													Line:   18,
												},
												File:   "emptyTable_test.flux",
												Source: "csv: outData",
												Start: ast.Position{
													Column: 78,
													Line:   18,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 90,
														Line:   18,
													},
													File:   "emptyTable_test.flux",
													Source: "csv: outData",
													Start: ast.Position{
														Column: 78,
														Line:   18,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 81,
															Line:   18,
														},
														File:   "emptyTable_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 78,
															Line:   18,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 90,
															Line:   18,
														},
														File:   "emptyTable_test.flux",
														Source: "outData",
														Start: ast.Position{
															Column: 83,
															Line:   18,
														},
													},
												},
												Name: "outData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 91,
												Line:   18,
											},
											File:   "emptyTable_test.flux",
											Source: "testing.loadMem(csv: outData)",
											Start: ast.Position{
												Column: 62,
												Line:   18,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 77,
													Line:   18,
												},
												File:   "emptyTable_test.flux",
												Source: "testing.loadMem",
												Start: ast.Position{
													Column: 62,
													Line:   18,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 69,
														Line:   18,
													},
													File:   "emptyTable_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 62,
														Line:   18,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 77,
														Line:   18,
													},
													File:   "emptyTable_test.flux",
													Source: "loadMem",
													Start: ast.Position{
														Column: 70,
														Line:   18,
													},
												},
											},
											Name: "loadMem",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 109,
											Line:   18,
										},
										File:   "emptyTable_test.flux",
										Source: "fn: t_emptyTable",
										Start: ast.Position{
											Column: 93,
											Line:   18,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 95,
												Line:   18,
											},
											File:   "emptyTable_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 93,
												Line:   18,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 109,
												Line:   18,
											},
											File:   "emptyTable_test.flux",
											Source: "t_emptyTable",
											Start: ast.Position{
												Column: 97,
												Line:   18,
											},
										},
									},
									Name: "t_emptyTable",
								},
							}},
							Rbrace: nil,
							With:   nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 111,
						Line:   18,
					},
					File:   "emptyTable_test.flux",
					Source: "test _emptyTable = () => ({input: promql.emptyTable(), want: testing.loadMem(csv: outData), fn: t_emptyTable})",
					Start: ast.Position{
						Column: 1,
						Line:   18,
					},
				},
			},
		}},
		Eof: nil,
		Imports: []*ast.ImportDeclaration{&ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 17,
						Line:   4,
					},
					File:   "emptyTable_test.flux",
					Source: "import \"testing\"",
					Start: ast.Position{
						Column: 1,
						Line:   4,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 17,
							Line:   4,
						},
						File:   "emptyTable_test.flux",
						Source: "\"testing\"",
						Start: ast.Position{
							Column: 8,
							Line:   4,
						},
					},
				},
				Value: "testing",
			},
		}, &ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 25,
						Line:   5,
					},
					File:   "emptyTable_test.flux",
					Source: "import \"internal/promql\"",
					Start: ast.Position{
						Column: 1,
						Line:   5,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 25,
							Line:   5,
						},
						File:   "emptyTable_test.flux",
						Source: "\"internal/promql\"",
						Start: ast.Position{
							Column: 8,
							Line:   5,
						},
					},
				},
				Value: "internal/promql",
			},
		}},
		Metadata: "parser-type=rust",
		Name:     "emptyTable_test.flux",
		Package: &ast.PackageClause{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 20,
						Line:   1,
					},
					File:   "emptyTable_test.flux",
					Source: "package promql_test",
					Start: ast.Position{
						Column: 1,
						Line:   1,
					},
				},
			},
			Name: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 20,
							Line:   1,
						},
						File:   "emptyTable_test.flux",
						Source: "promql_test",
						Start: ast.Position{
							Column: 9,
							Line:   1,
						},
					},
				},
				Name: "promql_test",
			},
		},
	}, &ast.File{
		BaseNode: ast.BaseNode{
			Comments: nil,
			Errors:   nil,
			Loc: &ast.SourceLocation{
				End: ast.Position{
					Column: 109,
					Line:   55,
				},
				File:   "extrapolatedRate_counter_rate_test.flux",
				Source: "package promql_test\n\n\nimport \"testing\"\nimport \"internal/promql\"\nimport c \"csv\"\n\noption now = () => 2030-01-01T00:00:00Z\n\n// todo(faith): remove overload https://github.com/influxdata/flux/issues/3155\noption testing.loadStorage = (csv) => c.from(csv: csv)\n\ninData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,100,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,100,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,400,prometheus\n,,3,2018-12-18T20:52:33Z,metric_name4,100,prometheus\n\"\noutData =\n    \"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name1,0,prometheus\n,,1,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name2,0.3663333333333333,prometheus\n,,2,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name3,2.533333333333333,prometheus\n\"\nt_extrapolatedRate = (table=<-) =>\n    table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)\n        |> promql.extrapolatedRate(isCounter: true, isRate: true)\n\ntest _extrapolatedRate = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_extrapolatedRate})",
				Start: ast.Position{
					Column: 1,
					Line:   1,
				},
			},
		},
		Body: []ast.Statement{&ast.OptionStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 40,
							Line:   8,
						},
						File:   "extrapolatedRate_counter_rate_test.flux",
						Source: "now = () => 2030-01-01T00:00:00Z",
						Start: ast.Position{
							Column: 8,
							Line:   8,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 11,
								Line:   8,
							},
							File:   "extrapolatedRate_counter_rate_test.flux",
							Source: "now",
							Start: ast.Position{
								Column: 8,
								Line:   8,
							},
						},
					},
					Name: "now",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 40,
								Line:   8,
							},
							File:   "extrapolatedRate_counter_rate_test.flux",
							Source: "() => 2030-01-01T00:00:00Z",
							Start: ast.Position{
								Column: 14,
								Line:   8,
							},
						},
					},
					Body: &ast.DateTimeLiteral{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 40,
									Line:   8,
								},
								File:   "extrapolatedRate_counter_rate_test.flux",
								Source: "2030-01-01T00:00:00Z",
								Start: ast.Position{
									Column: 20,
									Line:   8,
								},
							},
						},
						Value: parser.MustParseTime("2030-01-01T00:00:00Z"),
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 40,
						Line:   8,
					},
					File:   "extrapolatedRate_counter_rate_test.flux",
					Source: "option now = () => 2030-01-01T00:00:00Z",
					Start: ast.Position{
						Column: 1,
						Line:   8,
					},
				},
			},
		}, &ast.OptionStatement{
			Assignment: &ast.MemberAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 55,
							Line:   11,
						},
						File:   "extrapolatedRate_counter_rate_test.flux",
						Source: "testing.loadStorage = (csv) => c.from(csv: csv)",
						Start: ast.Position{
							Column: 8,
							Line:   11,
						},
					},
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 55,
								Line:   11,
							},
							File:   "extrapolatedRate_counter_rate_test.flux",
							Source: "(csv) => c.from(csv: csv)",
							Start: ast.Position{
								Column: 30,
								Line:   11,
							},
						},
					},
					Body: &ast.CallExpression{
						Arguments: []ast.Expression{&ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 54,
										Line:   11,
									},
									File:   "extrapolatedRate_counter_rate_test.flux",
									Source: "csv: csv",
									Start: ast.Position{
										Column: 46,
										Line:   11,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 54,
											Line:   11,
										},
										File:   "extrapolatedRate_counter_rate_test.flux",
										Source: "csv: csv",
										Start: ast.Position{
											Column: 46,
											Line:   11,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 49,
												Line:   11,
											},
											File:   "extrapolatedRate_counter_rate_test.flux",
											Source: "csv",
											Start: ast.Position{
												Column: 46,
												Line:   11,
											},
										},
									},
									Name: "csv",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 54,
												Line:   11,
											},
											File:   "extrapolatedRate_counter_rate_test.flux",
											Source: "csv",
											Start: ast.Position{
												Column: 51,
												Line:   11,
											},
										},
									},
									Name: "csv",
								},
							}},
							Rbrace: nil,
							With:   nil,
						}},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 55,
									Line:   11,
								},
								File:   "extrapolatedRate_counter_rate_test.flux",
								Source: "c.from(csv: csv)",
								Start: ast.Position{
									Column: 39,
									Line:   11,
								},
							},
						},
						Callee: &ast.MemberExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 45,
										Line:   11,
									},
									File:   "extrapolatedRate_counter_rate_test.flux",
									Source: "c.from",
									Start: ast.Position{
										Column: 39,
										Line:   11,
									},
								},
							},
							Lbrack: nil,
							Object: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 40,
											Line:   11,
										},
										File:   "extrapolatedRate_counter_rate_test.flux",
										Source: "c",
										Start: ast.Position{
											Column: 39,
											Line:   11,
										},
									},
								},
								Name: "c",
							},
							Property: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 45,
											Line:   11,
										},
										File:   "extrapolatedRate_counter_rate_test.flux",
										Source: "from",
										Start: ast.Position{
											Column: 41,
											Line:   11,
										},
									},
								},
								Name: "from",
							},
							Rbrack: nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
					Lparen: nil,
					Params: []*ast.Property{&ast.Property{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 34,
									Line:   11,
								},
								File:   "extrapolatedRate_counter_rate_test.flux",
								Source: "csv",
								Start: ast.Position{
									Column: 31,
									Line:   11,
								},
							},
						},
						Comma: nil,
						Key: &ast.Identifier{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 34,
										Line:   11,
									},
									File:   "extrapolatedRate_counter_rate_test.flux",
									Source: "csv",
									Start: ast.Position{
										Column: 31,
										Line:   11,
									},
								},
							},
							Name: "csv",
						},
						Separator: nil,
						Value:     nil,
					}},
					Rparan: nil,
				},
				Member: &ast.MemberExpression{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 27,
								Line:   11,
							},
							File:   "extrapolatedRate_counter_rate_test.flux",
							Source: "testing.loadStorage",
							Start: ast.Position{
								Column: 8,
								Line:   11,
							},
						},
					},
					Lbrack: nil,
					Object: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 15,
									Line:   11,
								},
								File:   "extrapolatedRate_counter_rate_test.flux",
								Source: "testing",
								Start: ast.Position{
									Column: 8,
									Line:   11,
								},
							},
						},
						Name: "testing",
					},
					Property: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 27,
									Line:   11,
								},
								File:   "extrapolatedRate_counter_rate_test.flux",
								Source: "loadStorage",
								Start: ast.Position{
									Column: 16,
									Line:   11,
								},
							},
						},
						Name: "loadStorage",
					},
					Rbrack: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: []ast.Comment{ast.Comment{Text: "// todo(faith): remove overload https://github.com/influxdata/flux/issues/3155\n"}},
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 55,
						Line:   11,
					},
					File:   "extrapolatedRate_counter_rate_test.flux",
					Source: "option testing.loadStorage = (csv) => c.from(csv: csv)",
					Start: ast.Position{
						Column: 1,
						Line:   11,
					},
				},
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   38,
					},
					File:   "extrapolatedRate_counter_rate_test.flux",
					Source: "inData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,100,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,100,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,400,prometheus\n,,3,2018-12-18T20:52:33Z,metric_name4,100,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   13,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 7,
							Line:   13,
						},
						File:   "extrapolatedRate_counter_rate_test.flux",
						Source: "inData",
						Start: ast.Position{
							Column: 1,
							Line:   13,
						},
					},
				},
				Name: "inData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   38,
						},
						File:   "extrapolatedRate_counter_rate_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,100,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,100,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,400,prometheus\n,,3,2018-12-18T20:52:33Z,metric_name4,100,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   14,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,100,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,100,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,400,prometheus\n,,3,2018-12-18T20:52:33Z,metric_name4,100,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   48,
					},
					File:   "extrapolatedRate_counter_rate_test.flux",
					Source: "outData =\n    \"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name1,0,prometheus\n,,1,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name2,0.3663333333333333,prometheus\n,,2,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name3,2.533333333333333,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   39,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 8,
							Line:   39,
						},
						File:   "extrapolatedRate_counter_rate_test.flux",
						Source: "outData",
						Start: ast.Position{
							Column: 1,
							Line:   39,
						},
					},
				},
				Name: "outData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   48,
						},
						File:   "extrapolatedRate_counter_rate_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name1,0,prometheus\n,,1,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name2,0.3663333333333333,prometheus\n,,2,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name3,2.533333333333333,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   40,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name1,0,prometheus\n,,1,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name2,0.3663333333333333,prometheus\n,,2,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name3,2.533333333333333,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 66,
						Line:   52,
					},
					File:   "extrapolatedRate_counter_rate_test.flux",
					Source: "t_extrapolatedRate = (table=<-) =>\n    table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)\n        |> promql.extrapolatedRate(isCounter: true, isRate: true)",
					Start: ast.Position{
						Column: 1,
						Line:   49,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 19,
							Line:   49,
						},
						File:   "extrapolatedRate_counter_rate_test.flux",
						Source: "t_extrapolatedRate",
						Start: ast.Position{
							Column: 1,
							Line:   49,
						},
					},
				},
				Name: "t_extrapolatedRate",
			},
			Init: &ast.FunctionExpression{
				Arrow: nil,
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 66,
							Line:   52,
						},
						File:   "extrapolatedRate_counter_rate_test.flux",
						Source: "(table=<-) =>\n    table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)\n        |> promql.extrapolatedRate(isCounter: true, isRate: true)",
						Start: ast.Position{
							Column: 22,
							Line:   49,
						},
					},
				},
				Body: &ast.PipeExpression{
					Argument: &ast.PipeExpression{
						Argument: &ast.Identifier{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 10,
										Line:   50,
									},
									File:   "extrapolatedRate_counter_rate_test.flux",
									Source: "table",
									Start: ast.Position{
										Column: 5,
										Line:   50,
									},
								},
							},
							Name: "table",
						},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 74,
									Line:   51,
								},
								File:   "extrapolatedRate_counter_rate_test.flux",
								Source: "table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)",
								Start: ast.Position{
									Column: 5,
									Line:   50,
								},
							},
						},
						Call: &ast.CallExpression{
							Arguments: []ast.Expression{&ast.ObjectExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 73,
											Line:   51,
										},
										File:   "extrapolatedRate_counter_rate_test.flux",
										Source: "start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z",
										Start: ast.Position{
											Column: 18,
											Line:   51,
										},
									},
								},
								Lbrace: nil,
								Properties: []*ast.Property{&ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   51,
											},
											File:   "extrapolatedRate_counter_rate_test.flux",
											Source: "start: 2018-12-18T20:50:00Z",
											Start: ast.Position{
												Column: 18,
												Line:   51,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 23,
													Line:   51,
												},
												File:   "extrapolatedRate_counter_rate_test.flux",
												Source: "start",
												Start: ast.Position{
													Column: 18,
													Line:   51,
												},
											},
										},
										Name: "start",
									},
									Separator: nil,
									Value: &ast.DateTimeLiteral{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   51,
												},
												File:   "extrapolatedRate_counter_rate_test.flux",
												Source: "2018-12-18T20:50:00Z",
												Start: ast.Position{
													Column: 25,
													Line:   51,
												},
											},
										},
										Value: parser.MustParseTime("2018-12-18T20:50:00Z"),
									},
								}, &ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 73,
												Line:   51,
											},
											File:   "extrapolatedRate_counter_rate_test.flux",
											Source: "stop: 2018-12-18T20:55:00Z",
											Start: ast.Position{
												Column: 47,
												Line:   51,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 51,
													Line:   51,
												},
												File:   "extrapolatedRate_counter_rate_test.flux",
												Source: "stop",
												Start: ast.Position{
													Column: 47,
													Line:   51,
												},
											},
										},
										Name: "stop",
									},
									Separator: nil,
									Value: &ast.DateTimeLiteral{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 73,
													Line:   51,
												},
												File:   "extrapolatedRate_counter_rate_test.flux",
												Source: "2018-12-18T20:55:00Z",
												Start: ast.Position{
													Column: 53,
													Line:   51,
												},
											},
										},
										Value: parser.MustParseTime("2018-12-18T20:55:00Z"),
									},
								}},
								Rbrace: nil,
								With:   nil,
							}},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 74,
										Line:   51,
									},
									File:   "extrapolatedRate_counter_rate_test.flux",
									Source: "range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)",
									Start: ast.Position{
										Column: 12,
										Line:   51,
									},
								},
							},
							Callee: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 17,
											Line:   51,
										},
										File:   "extrapolatedRate_counter_rate_test.flux",
										Source: "range",
										Start: ast.Position{
											Column: 12,
											Line:   51,
										},
									},
								},
								Name: "range",
							},
							Lparen: nil,
							Rparen: nil,
						},
					},
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 66,
								Line:   52,
							},
							File:   "extrapolatedRate_counter_rate_test.flux",
							Source: "table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)\n        |> promql.extrapolatedRate(isCounter: true, isRate: true)",
							Start: ast.Position{
								Column: 5,
								Line:   50,
							},
						},
					},
					Call: &ast.CallExpression{
						Arguments: []ast.Expression{&ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 65,
										Line:   52,
									},
									File:   "extrapolatedRate_counter_rate_test.flux",
									Source: "isCounter: true, isRate: true",
									Start: ast.Position{
										Column: 36,
										Line:   52,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 51,
											Line:   52,
										},
										File:   "extrapolatedRate_counter_rate_test.flux",
										Source: "isCounter: true",
										Start: ast.Position{
											Column: 36,
											Line:   52,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   52,
											},
											File:   "extrapolatedRate_counter_rate_test.flux",
											Source: "isCounter",
											Start: ast.Position{
												Column: 36,
												Line:   52,
											},
										},
									},
									Name: "isCounter",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 51,
												Line:   52,
											},
											File:   "extrapolatedRate_counter_rate_test.flux",
											Source: "true",
											Start: ast.Position{
												Column: 47,
												Line:   52,
											},
										},
									},
									Name: "true",
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 65,
											Line:   52,
										},
										File:   "extrapolatedRate_counter_rate_test.flux",
										Source: "isRate: true",
										Start: ast.Position{
											Column: 53,
											Line:   52,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 59,
												Line:   52,
											},
											File:   "extrapolatedRate_counter_rate_test.flux",
											Source: "isRate",
											Start: ast.Position{
												Column: 53,
												Line:   52,
											},
										},
									},
									Name: "isRate",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 65,
												Line:   52,
											},
											File:   "extrapolatedRate_counter_rate_test.flux",
											Source: "true",
											Start: ast.Position{
												Column: 61,
												Line:   52,
											},
										},
									},
									Name: "true",
								},
							}},
							Rbrace: nil,
							With:   nil,
						}},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 66,
									Line:   52,
								},
								File:   "extrapolatedRate_counter_rate_test.flux",
								Source: "promql.extrapolatedRate(isCounter: true, isRate: true)",
								Start: ast.Position{
									Column: 12,
									Line:   52,
								},
							},
						},
						Callee: &ast.MemberExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 35,
										Line:   52,
									},
									File:   "extrapolatedRate_counter_rate_test.flux",
									Source: "promql.extrapolatedRate",
									Start: ast.Position{
										Column: 12,
										Line:   52,
									},
								},
							},
							Lbrack: nil,
							Object: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 18,
											Line:   52,
										},
										File:   "extrapolatedRate_counter_rate_test.flux",
										Source: "promql",
										Start: ast.Position{
											Column: 12,
											Line:   52,
										},
									},
								},
								Name: "promql",
							},
							Property: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 35,
											Line:   52,
										},
										File:   "extrapolatedRate_counter_rate_test.flux",
										Source: "extrapolatedRate",
										Start: ast.Position{
											Column: 19,
											Line:   52,
										},
									},
								},
								Name: "extrapolatedRate",
							},
							Rbrack: nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
				},
				Lparen: nil,
				Params: []*ast.Property{&ast.Property{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 31,
								Line:   49,
							},
							File:   "extrapolatedRate_counter_rate_test.flux",
							Source: "table=<-",
							Start: ast.Position{
								Column: 23,
								Line:   49,
							},
						},
					},
					Comma: nil,
					Key: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 28,
									Line:   49,
								},
								File:   "extrapolatedRate_counter_rate_test.flux",
								Source: "table",
								Start: ast.Position{
									Column: 23,
									Line:   49,
								},
							},
						},
						Name: "table",
					},
					Separator: nil,
					Value: &ast.PipeLiteral{BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 31,
								Line:   49,
							},
							File:   "extrapolatedRate_counter_rate_test.flux",
							Source: "<-",
							Start: ast.Position{
								Column: 29,
								Line:   49,
							},
						},
					}},
				}},
				Rparan: nil,
			},
		}, &ast.TestStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 109,
							Line:   55,
						},
						File:   "extrapolatedRate_counter_rate_test.flux",
						Source: "_extrapolatedRate = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_extrapolatedRate})",
						Start: ast.Position{
							Column: 6,
							Line:   54,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 23,
								Line:   54,
							},
							File:   "extrapolatedRate_counter_rate_test.flux",
							Source: "_extrapolatedRate",
							Start: ast.Position{
								Column: 6,
								Line:   54,
							},
						},
					},
					Name: "_extrapolatedRate",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 109,
								Line:   55,
							},
							File:   "extrapolatedRate_counter_rate_test.flux",
							Source: "() =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_extrapolatedRate})",
							Start: ast.Position{
								Column: 26,
								Line:   54,
							},
						},
					},
					Body: &ast.ParenExpression{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 109,
									Line:   55,
								},
								File:   "extrapolatedRate_counter_rate_test.flux",
								Source: "({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_extrapolatedRate})",
								Start: ast.Position{
									Column: 5,
									Line:   55,
								},
							},
						},
						Expression: &ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 108,
										Line:   55,
									},
									File:   "extrapolatedRate_counter_rate_test.flux",
									Source: "{input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_extrapolatedRate}",
									Start: ast.Position{
										Column: 6,
										Line:   55,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   55,
										},
										File:   "extrapolatedRate_counter_rate_test.flux",
										Source: "input: testing.loadStorage(csv: inData)",
										Start: ast.Position{
											Column: 7,
											Line:   55,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 12,
												Line:   55,
											},
											File:   "extrapolatedRate_counter_rate_test.flux",
											Source: "input",
											Start: ast.Position{
												Column: 7,
												Line:   55,
											},
										},
									},
									Name: "input",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   55,
												},
												File:   "extrapolatedRate_counter_rate_test.flux",
												Source: "csv: inData",
												Start: ast.Position{
													Column: 34,
													Line:   55,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   55,
													},
													File:   "extrapolatedRate_counter_rate_test.flux",
													Source: "csv: inData",
													Start: ast.Position{
														Column: 34,
														Line:   55,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 37,
															Line:   55,
														},
														File:   "extrapolatedRate_counter_rate_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 34,
															Line:   55,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 45,
															Line:   55,
														},
														File:   "extrapolatedRate_counter_rate_test.flux",
														Source: "inData",
														Start: ast.Position{
															Column: 39,
															Line:   55,
														},
													},
												},
												Name: "inData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 46,
												Line:   55,
											},
											File:   "extrapolatedRate_counter_rate_test.flux",
											Source: "testing.loadStorage(csv: inData)",
											Start: ast.Position{
												Column: 14,
												Line:   55,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 33,
													Line:   55,
												},
												File:   "extrapolatedRate_counter_rate_test.flux",
												Source: "testing.loadStorage",
												Start: ast.Position{
													Column: 14,
													Line:   55,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 21,
														Line:   55,
													},
													File:   "extrapolatedRate_counter_rate_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 14,
														Line:   55,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 33,
														Line:   55,
													},
													File:   "extrapolatedRate_counter_rate_test.flux",
													Source: "loadStorage",
													Start: ast.Position{
														Column: 22,
														Line:   55,
													},
												},
											},
											Name: "loadStorage",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 83,
											Line:   55,
										},
										File:   "extrapolatedRate_counter_rate_test.flux",
										Source: "want: testing.loadMem(csv: outData)",
										Start: ast.Position{
											Column: 48,
											Line:   55,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 52,
												Line:   55,
											},
											File:   "extrapolatedRate_counter_rate_test.flux",
											Source: "want",
											Start: ast.Position{
												Column: 48,
												Line:   55,
											},
										},
									},
									Name: "want",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 82,
													Line:   55,
												},
												File:   "extrapolatedRate_counter_rate_test.flux",
												Source: "csv: outData",
												Start: ast.Position{
													Column: 70,
													Line:   55,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 82,
														Line:   55,
													},
													File:   "extrapolatedRate_counter_rate_test.flux",
													Source: "csv: outData",
													Start: ast.Position{
														Column: 70,
														Line:   55,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 73,
															Line:   55,
														},
														File:   "extrapolatedRate_counter_rate_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 70,
															Line:   55,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 82,
															Line:   55,
														},
														File:   "extrapolatedRate_counter_rate_test.flux",
														Source: "outData",
														Start: ast.Position{
															Column: 75,
															Line:   55,
														},
													},
												},
												Name: "outData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 83,
												Line:   55,
											},
											File:   "extrapolatedRate_counter_rate_test.flux",
											Source: "testing.loadMem(csv: outData)",
											Start: ast.Position{
												Column: 54,
												Line:   55,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 69,
													Line:   55,
												},
												File:   "extrapolatedRate_counter_rate_test.flux",
												Source: "testing.loadMem",
												Start: ast.Position{
													Column: 54,
													Line:   55,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 61,
														Line:   55,
													},
													File:   "extrapolatedRate_counter_rate_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 54,
														Line:   55,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 69,
														Line:   55,
													},
													File:   "extrapolatedRate_counter_rate_test.flux",
													Source: "loadMem",
													Start: ast.Position{
														Column: 62,
														Line:   55,
													},
												},
											},
											Name: "loadMem",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 107,
											Line:   55,
										},
										File:   "extrapolatedRate_counter_rate_test.flux",
										Source: "fn: t_extrapolatedRate",
										Start: ast.Position{
											Column: 85,
											Line:   55,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 87,
												Line:   55,
											},
											File:   "extrapolatedRate_counter_rate_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 85,
												Line:   55,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 107,
												Line:   55,
											},
											File:   "extrapolatedRate_counter_rate_test.flux",
											Source: "t_extrapolatedRate",
											Start: ast.Position{
												Column: 89,
												Line:   55,
											},
										},
									},
									Name: "t_extrapolatedRate",
								},
							}},
							Rbrace: nil,
							With:   nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 109,
						Line:   55,
					},
					File:   "extrapolatedRate_counter_rate_test.flux",
					Source: "test _extrapolatedRate = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_extrapolatedRate})",
					Start: ast.Position{
						Column: 1,
						Line:   54,
					},
				},
			},
		}},
		Eof: nil,
		Imports: []*ast.ImportDeclaration{&ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 17,
						Line:   4,
					},
					File:   "extrapolatedRate_counter_rate_test.flux",
					Source: "import \"testing\"",
					Start: ast.Position{
						Column: 1,
						Line:   4,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 17,
							Line:   4,
						},
						File:   "extrapolatedRate_counter_rate_test.flux",
						Source: "\"testing\"",
						Start: ast.Position{
							Column: 8,
							Line:   4,
						},
					},
				},
				Value: "testing",
			},
		}, &ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 25,
						Line:   5,
					},
					File:   "extrapolatedRate_counter_rate_test.flux",
					Source: "import \"internal/promql\"",
					Start: ast.Position{
						Column: 1,
						Line:   5,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 25,
							Line:   5,
						},
						File:   "extrapolatedRate_counter_rate_test.flux",
						Source: "\"internal/promql\"",
						Start: ast.Position{
							Column: 8,
							Line:   5,
						},
					},
				},
				Value: "internal/promql",
			},
		}, &ast.ImportDeclaration{
			As: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 9,
							Line:   6,
						},
						File:   "extrapolatedRate_counter_rate_test.flux",
						Source: "c",
						Start: ast.Position{
							Column: 8,
							Line:   6,
						},
					},
				},
				Name: "c",
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 15,
						Line:   6,
					},
					File:   "extrapolatedRate_counter_rate_test.flux",
					Source: "import c \"csv\"",
					Start: ast.Position{
						Column: 1,
						Line:   6,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 15,
							Line:   6,
						},
						File:   "extrapolatedRate_counter_rate_test.flux",
						Source: "\"csv\"",
						Start: ast.Position{
							Column: 10,
							Line:   6,
						},
					},
				},
				Value: "csv",
			},
		}},
		Metadata: "parser-type=rust",
		Name:     "extrapolatedRate_counter_rate_test.flux",
		Package: &ast.PackageClause{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 20,
						Line:   1,
					},
					File:   "extrapolatedRate_counter_rate_test.flux",
					Source: "package promql_test",
					Start: ast.Position{
						Column: 1,
						Line:   1,
					},
				},
			},
			Name: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 20,
							Line:   1,
						},
						File:   "extrapolatedRate_counter_rate_test.flux",
						Source: "promql_test",
						Start: ast.Position{
							Column: 9,
							Line:   1,
						},
					},
				},
				Name: "promql_test",
			},
		},
	}, &ast.File{
		BaseNode: ast.BaseNode{
			Comments: nil,
			Errors:   nil,
			Loc: &ast.SourceLocation{
				End: ast.Position{
					Column: 109,
					Line:   67,
				},
				File:   "extrapolatedRate_nocounter_test.flux",
				Source: "package promql_test\n\n\nimport \"testing\"\nimport \"internal/promql\"\nimport c \"csv\"\n\noption now = () => 2030-01-01T00:00:00Z\n\n// todo(faith): remove overload https://github.com/influxdata/flux/issues/3155\noption testing.loadStorage = (csv) =>\n    c.from(csv: csv)\n        |> map(\n            fn: (r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                }),\n        )\n\ninData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,100,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,100,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,400,prometheus\n\"\noutData =\n    \"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name1,0,prometheus\n,,1,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name2,0.39599999999999996,prometheus\n,,2,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name3,1.2,prometheus\n\"\nt_extrapolatedRate = (table=<-) =>\n    table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)\n        |> promql.extrapolatedRate(isCounter: false, isRate: true)\n\ntest _extrapolatedRate = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_extrapolatedRate})",
				Start: ast.Position{
					Column: 1,
					Line:   1,
				},
			},
		},
		Body: []ast.Statement{&ast.OptionStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 40,
							Line:   8,
						},
						File:   "extrapolatedRate_nocounter_test.flux",
						Source: "now = () => 2030-01-01T00:00:00Z",
						Start: ast.Position{
							Column: 8,
							Line:   8,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 11,
								Line:   8,
							},
							File:   "extrapolatedRate_nocounter_test.flux",
							Source: "now",
							Start: ast.Position{
								Column: 8,
								Line:   8,
							},
						},
					},
					Name: "now",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 40,
								Line:   8,
							},
							File:   "extrapolatedRate_nocounter_test.flux",
							Source: "() => 2030-01-01T00:00:00Z",
							Start: ast.Position{
								Column: 14,
								Line:   8,
							},
						},
					},
					Body: &ast.DateTimeLiteral{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 40,
									Line:   8,
								},
								File:   "extrapolatedRate_nocounter_test.flux",
								Source: "2030-01-01T00:00:00Z",
								Start: ast.Position{
									Column: 20,
									Line:   8,
								},
							},
						},
						Value: parser.MustParseTime("2030-01-01T00:00:00Z"),
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 40,
						Line:   8,
					},
					File:   "extrapolatedRate_nocounter_test.flux",
					Source: "option now = () => 2030-01-01T00:00:00Z",
					Start: ast.Position{
						Column: 1,
						Line:   8,
					},
				},
			},
		}, &ast.OptionStatement{
			Assignment: &ast.MemberAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 10,
							Line:   24,
						},
						File:   "extrapolatedRate_nocounter_test.flux",
						Source: "testing.loadStorage = (csv) =>\n    c.from(csv: csv)\n        |> map(\n            fn: (r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                }),\n        )",
						Start: ast.Position{
							Column: 8,
							Line:   11,
						},
					},
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 10,
								Line:   24,
							},
							File:   "extrapolatedRate_nocounter_test.flux",
							Source: "(csv) =>\n    c.from(csv: csv)\n        |> map(\n            fn: (r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                }),\n        )",
							Start: ast.Position{
								Column: 30,
								Line:   11,
							},
						},
					},
					Body: &ast.PipeExpression{
						Argument: &ast.CallExpression{
							Arguments: []ast.Expression{&ast.ObjectExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 20,
											Line:   12,
										},
										File:   "extrapolatedRate_nocounter_test.flux",
										Source: "csv: csv",
										Start: ast.Position{
											Column: 12,
											Line:   12,
										},
									},
								},
								Lbrace: nil,
								Properties: []*ast.Property{&ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 20,
												Line:   12,
											},
											File:   "extrapolatedRate_nocounter_test.flux",
											Source: "csv: csv",
											Start: ast.Position{
												Column: 12,
												Line:   12,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 15,
													Line:   12,
												},
												File:   "extrapolatedRate_nocounter_test.flux",
												Source: "csv",
												Start: ast.Position{
													Column: 12,
													Line:   12,
												},
											},
										},
										Name: "csv",
									},
									Separator: nil,
									Value: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 20,
													Line:   12,
												},
												File:   "extrapolatedRate_nocounter_test.flux",
												Source: "csv",
												Start: ast.Position{
													Column: 17,
													Line:   12,
												},
											},
										},
										Name: "csv",
									},
								}},
								Rbrace: nil,
								With:   nil,
							}},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 21,
										Line:   12,
									},
									File:   "extrapolatedRate_nocounter_test.flux",
									Source: "c.from(csv: csv)",
									Start: ast.Position{
										Column: 5,
										Line:   12,
									},
								},
							},
							Callee: &ast.MemberExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 11,
											Line:   12,
										},
										File:   "extrapolatedRate_nocounter_test.flux",
										Source: "c.from",
										Start: ast.Position{
											Column: 5,
											Line:   12,
										},
									},
								},
								Lbrack: nil,
								Object: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 6,
												Line:   12,
											},
											File:   "extrapolatedRate_nocounter_test.flux",
											Source: "c",
											Start: ast.Position{
												Column: 5,
												Line:   12,
											},
										},
									},
									Name: "c",
								},
								Property: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 11,
												Line:   12,
											},
											File:   "extrapolatedRate_nocounter_test.flux",
											Source: "from",
											Start: ast.Position{
												Column: 7,
												Line:   12,
											},
										},
									},
									Name: "from",
								},
								Rbrack: nil,
							},
							Lparen: nil,
							Rparen: nil,
						},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 10,
									Line:   24,
								},
								File:   "extrapolatedRate_nocounter_test.flux",
								Source: "c.from(csv: csv)\n        |> map(\n            fn: (r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                }),\n        )",
								Start: ast.Position{
									Column: 5,
									Line:   12,
								},
							},
						},
						Call: &ast.CallExpression{
							Arguments: []ast.Expression{&ast.ObjectExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 19,
											Line:   23,
										},
										File:   "extrapolatedRate_nocounter_test.flux",
										Source: "fn: (r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                })",
										Start: ast.Position{
											Column: 13,
											Line:   14,
										},
									},
								},
								Lbrace: nil,
								Properties: []*ast.Property{&ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 19,
												Line:   23,
											},
											File:   "extrapolatedRate_nocounter_test.flux",
											Source: "fn: (r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                })",
											Start: ast.Position{
												Column: 13,
												Line:   14,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 15,
													Line:   14,
												},
												File:   "extrapolatedRate_nocounter_test.flux",
												Source: "fn",
												Start: ast.Position{
													Column: 13,
													Line:   14,
												},
											},
										},
										Name: "fn",
									},
									Separator: nil,
									Value: &ast.FunctionExpression{
										Arrow: nil,
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 19,
													Line:   23,
												},
												File:   "extrapolatedRate_nocounter_test.flux",
												Source: "(r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                })",
												Start: ast.Position{
													Column: 17,
													Line:   14,
												},
											},
										},
										Body: &ast.ParenExpression{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 19,
														Line:   23,
													},
													File:   "extrapolatedRate_nocounter_test.flux",
													Source: "({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                })",
													Start: ast.Position{
														Column: 17,
														Line:   15,
													},
												},
											},
											Expression: &ast.ObjectExpression{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 18,
															Line:   23,
														},
														File:   "extrapolatedRate_nocounter_test.flux",
														Source: "{r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                }",
														Start: ast.Position{
															Column: 18,
															Line:   15,
														},
													},
												},
												Lbrace: nil,
												Properties: []*ast.Property{&ast.Property{
													BaseNode: ast.BaseNode{
														Comments: nil,
														Errors:   nil,
														Loc: &ast.SourceLocation{
															End: ast.Position{
																Column: 119,
																Line:   16,
															},
															File:   "extrapolatedRate_nocounter_test.flux",
															Source: "_field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\")",
															Start: ast.Position{
																Column: 26,
																Line:   15,
															},
														},
													},
													Comma: nil,
													Key: &ast.Identifier{
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 32,
																	Line:   15,
																},
																File:   "extrapolatedRate_nocounter_test.flux",
																Source: "_field",
																Start: ast.Position{
																	Column: 26,
																	Line:   15,
																},
															},
														},
														Name: "_field",
													},
													Separator: nil,
													Value: &ast.ConditionalExpression{
														Alternate: &ast.CallExpression{
															Arguments: []ast.Expression{&ast.ObjectExpression{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 118,
																			Line:   16,
																		},
																		File:   "extrapolatedRate_nocounter_test.flux",
																		Source: "msg: \"test input table does not have _field column\"",
																		Start: ast.Position{
																			Column: 67,
																			Line:   16,
																		},
																	},
																},
																Lbrace: nil,
																Properties: []*ast.Property{&ast.Property{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 118,
																				Line:   16,
																			},
																			File:   "extrapolatedRate_nocounter_test.flux",
																			Source: "msg: \"test input table does not have _field column\"",
																			Start: ast.Position{
																				Column: 67,
																				Line:   16,
																			},
																		},
																	},
																	Comma: nil,
																	Key: &ast.Identifier{
																		BaseNode: ast.BaseNode{
																			Comments: nil,
																			Errors:   nil,
																			Loc: &ast.SourceLocation{
																				End: ast.Position{
																					Column: 70,
																					Line:   16,
																				},
																				File:   "extrapolatedRate_nocounter_test.flux",
																				Source: "msg",
																				Start: ast.Position{
																					Column: 67,
																					Line:   16,
																				},
																			},
																		},
																		Name: "msg",
																	},
																	Separator: nil,
																	Value: &ast.StringLiteral{
																		BaseNode: ast.BaseNode{
																			Comments: nil,
																			Errors:   nil,
																			Loc: &ast.SourceLocation{
																				End: ast.Position{
																					Column: 118,
																					Line:   16,
																				},
																				File:   "extrapolatedRate_nocounter_test.flux",
																				Source: "\"test input table does not have _field column\"",
																				Start: ast.Position{
																					Column: 72,
																					Line:   16,
																				},
																			},
																		},
																		Value: "test input table does not have _field column",
																	},
																}},
																Rbrace: nil,
																With:   nil,
															}},
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 119,
																		Line:   16,
																	},
																	File:   "extrapolatedRate_nocounter_test.flux",
																	Source: "die(msg: \"test input table does not have _field column\")",
																	Start: ast.Position{
																		Column: 63,
																		Line:   16,
																	},
																},
															},
															Callee: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 66,
																			Line:   16,
																		},
																		File:   "extrapolatedRate_nocounter_test.flux",
																		Source: "die",
																		Start: ast.Position{
																			Column: 63,
																			Line:   16,
																		},
																	},
																},
																Name: "die",
															},
															Lparen: nil,
															Rparen: nil,
														},
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 119,
																	Line:   16,
																},
																File:   "extrapolatedRate_nocounter_test.flux",
																Source: "if exists r._field then r._field else die(msg: \"test input table does not have _field column\")",
																Start: ast.Position{
																	Column: 25,
																	Line:   16,
																},
															},
														},
														Consequent: &ast.MemberExpression{
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 57,
																		Line:   16,
																	},
																	File:   "extrapolatedRate_nocounter_test.flux",
																	Source: "r._field",
																	Start: ast.Position{
																		Column: 49,
																		Line:   16,
																	},
																},
															},
															Lbrack: nil,
															Object: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 50,
																			Line:   16,
																		},
																		File:   "extrapolatedRate_nocounter_test.flux",
																		Source: "r",
																		Start: ast.Position{
																			Column: 49,
																			Line:   16,
																		},
																	},
																},
																Name: "r",
															},
															Property: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 57,
																			Line:   16,
																		},
																		File:   "extrapolatedRate_nocounter_test.flux",
																		Source: "_field",
																		Start: ast.Position{
																			Column: 51,
																			Line:   16,
																		},
																	},
																},
																Name: "_field",
															},
															Rbrack: nil,
														},
														Test: &ast.UnaryExpression{
															Argument: &ast.MemberExpression{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 43,
																			Line:   16,
																		},
																		File:   "extrapolatedRate_nocounter_test.flux",
																		Source: "r._field",
																		Start: ast.Position{
																			Column: 35,
																			Line:   16,
																		},
																	},
																},
																Lbrack: nil,
																Object: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 36,
																				Line:   16,
																			},
																			File:   "extrapolatedRate_nocounter_test.flux",
																			Source: "r",
																			Start: ast.Position{
																				Column: 35,
																				Line:   16,
																			},
																		},
																	},
																	Name: "r",
																},
																Property: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 43,
																				Line:   16,
																			},
																			File:   "extrapolatedRate_nocounter_test.flux",
																			Source: "_field",
																			Start: ast.Position{
																				Column: 37,
																				Line:   16,
																			},
																		},
																	},
																	Name: "_field",
																},
																Rbrack: nil,
															},
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 43,
																		Line:   16,
																	},
																	File:   "extrapolatedRate_nocounter_test.flux",
																	Source: "exists r._field",
																	Start: ast.Position{
																		Column: 28,
																		Line:   16,
																	},
																},
															},
															Operator: 14,
														},
														Tk_else: nil,
														Tk_if:   nil,
														Tk_then: nil,
													},
												}, &ast.Property{
													BaseNode: ast.BaseNode{
														Comments: nil,
														Errors:   nil,
														Loc: &ast.SourceLocation{
															End: ast.Position{
																Column: 91,
																Line:   21,
															},
															File:   "extrapolatedRate_nocounter_test.flux",
															Source: "_measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\")",
															Start: ast.Position{
																Column: 21,
																Line:   17,
															},
														},
													},
													Comma: nil,
													Key: &ast.Identifier{
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 33,
																	Line:   17,
																},
																File:   "extrapolatedRate_nocounter_test.flux",
																Source: "_measurement",
																Start: ast.Position{
																	Column: 21,
																	Line:   17,
																},
															},
														},
														Name: "_measurement",
													},
													Separator: nil,
													Value: &ast.ConditionalExpression{
														Alternate: &ast.CallExpression{
															Arguments: []ast.Expression{&ast.ObjectExpression{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 90,
																			Line:   21,
																		},
																		File:   "extrapolatedRate_nocounter_test.flux",
																		Source: "msg: \"test input table does not have _measurement column\"",
																		Start: ast.Position{
																			Column: 33,
																			Line:   21,
																		},
																	},
																},
																Lbrace: nil,
																Properties: []*ast.Property{&ast.Property{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 90,
																				Line:   21,
																			},
																			File:   "extrapolatedRate_nocounter_test.flux",
																			Source: "msg: \"test input table does not have _measurement column\"",
																			Start: ast.Position{
																				Column: 33,
																				Line:   21,
																			},
																		},
																	},
																	Comma: nil,
																	Key: &ast.Identifier{
																		BaseNode: ast.BaseNode{
																			Comments: nil,
																			Errors:   nil,
																			Loc: &ast.SourceLocation{
																				End: ast.Position{
																					Column: 36,
																					Line:   21,
																				},
																				File:   "extrapolatedRate_nocounter_test.flux",
																				Source: "msg",
																				Start: ast.Position{
																					Column: 33,
																					Line:   21,
																				},
																			},
																		},
																		Name: "msg",
																	},
																	Separator: nil,
																	Value: &ast.StringLiteral{
																		BaseNode: ast.BaseNode{
																			Comments: nil,
																			Errors:   nil,
																			Loc: &ast.SourceLocation{
																				End: ast.Position{
																					Column: 90,
																					Line:   21,
																				},
																				File:   "extrapolatedRate_nocounter_test.flux",
																				Source: "\"test input table does not have _measurement column\"",
																				Start: ast.Position{
																					Column: 38,
																					Line:   21,
																				},
																			},
																		},
																		Value: "test input table does not have _measurement column",
																	},
																}},
																Rbrace: nil,
																With:   nil,
															}},
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 91,
																		Line:   21,
																	},
																	File:   "extrapolatedRate_nocounter_test.flux",
																	Source: "die(msg: \"test input table does not have _measurement column\")",
																	Start: ast.Position{
																		Column: 29,
																		Line:   21,
																	},
																},
															},
															Callee: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 32,
																			Line:   21,
																		},
																		File:   "extrapolatedRate_nocounter_test.flux",
																		Source: "die",
																		Start: ast.Position{
																			Column: 29,
																			Line:   21,
																		},
																	},
																},
																Name: "die",
															},
															Lparen: nil,
															Rparen: nil,
														},
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 91,
																	Line:   21,
																},
																File:   "extrapolatedRate_nocounter_test.flux",
																Source: "if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\")",
																Start: ast.Position{
																	Column: 25,
																	Line:   18,
																},
															},
														},
														Consequent: &ast.MemberExpression{
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 43,
																		Line:   19,
																	},
																	File:   "extrapolatedRate_nocounter_test.flux",
																	Source: "r._measurement",
																	Start: ast.Position{
																		Column: 29,
																		Line:   19,
																	},
																},
															},
															Lbrack: nil,
															Object: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 30,
																			Line:   19,
																		},
																		File:   "extrapolatedRate_nocounter_test.flux",
																		Source: "r",
																		Start: ast.Position{
																			Column: 29,
																			Line:   19,
																		},
																	},
																},
																Name: "r",
															},
															Property: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 43,
																			Line:   19,
																		},
																		File:   "extrapolatedRate_nocounter_test.flux",
																		Source: "_measurement",
																		Start: ast.Position{
																			Column: 31,
																			Line:   19,
																		},
																	},
																},
																Name: "_measurement",
															},
															Rbrack: nil,
														},
														Test: &ast.UnaryExpression{
															Argument: &ast.MemberExpression{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 49,
																			Line:   18,
																		},
																		File:   "extrapolatedRate_nocounter_test.flux",
																		Source: "r._measurement",
																		Start: ast.Position{
																			Column: 35,
																			Line:   18,
																		},
																	},
																},
																Lbrack: nil,
																Object: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 36,
																				Line:   18,
																			},
																			File:   "extrapolatedRate_nocounter_test.flux",
																			Source: "r",
																			Start: ast.Position{
																				Column: 35,
																				Line:   18,
																			},
																		},
																	},
																	Name: "r",
																},
																Property: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 49,
																				Line:   18,
																			},
																			File:   "extrapolatedRate_nocounter_test.flux",
																			Source: "_measurement",
																			Start: ast.Position{
																				Column: 37,
																				Line:   18,
																			},
																		},
																	},
																	Name: "_measurement",
																},
																Rbrack: nil,
															},
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 49,
																		Line:   18,
																	},
																	File:   "extrapolatedRate_nocounter_test.flux",
																	Source: "exists r._measurement",
																	Start: ast.Position{
																		Column: 28,
																		Line:   18,
																	},
																},
															},
															Operator: 14,
														},
														Tk_else: nil,
														Tk_if:   nil,
														Tk_then: nil,
													},
												}, &ast.Property{
													BaseNode: ast.BaseNode{
														Comments: nil,
														Errors:   nil,
														Loc: &ast.SourceLocation{
															End: ast.Position{
																Column: 119,
																Line:   22,
															},
															File:   "extrapolatedRate_nocounter_test.flux",
															Source: "_time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\")",
															Start: ast.Position{
																Column: 21,
																Line:   22,
															},
														},
													},
													Comma: nil,
													Key: &ast.Identifier{
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 26,
																	Line:   22,
																},
																File:   "extrapolatedRate_nocounter_test.flux",
																Source: "_time",
																Start: ast.Position{
																	Column: 21,
																	Line:   22,
																},
															},
														},
														Name: "_time",
													},
													Separator: nil,
													Value: &ast.ConditionalExpression{
														Alternate: &ast.CallExpression{
															Arguments: []ast.Expression{&ast.ObjectExpression{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 118,
																			Line:   22,
																		},
																		File:   "extrapolatedRate_nocounter_test.flux",
																		Source: "msg: \"test input table does not have _time column\"",
																		Start: ast.Position{
																			Column: 68,
																			Line:   22,
																		},
																	},
																},
																Lbrace: nil,
																Properties: []*ast.Property{&ast.Property{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 118,
																				Line:   22,
																			},
																			File:   "extrapolatedRate_nocounter_test.flux",
																			Source: "msg: \"test input table does not have _time column\"",
																			Start: ast.Position{
																				Column: 68,
																				Line:   22,
																			},
																		},
																	},
																	Comma: nil,
																	Key: &ast.Identifier{
																		BaseNode: ast.BaseNode{
																			Comments: nil,
																			Errors:   nil,
																			Loc: &ast.SourceLocation{
																				End: ast.Position{
																					Column: 71,
																					Line:   22,
																				},
																				File:   "extrapolatedRate_nocounter_test.flux",
																				Source: "msg",
																				Start: ast.Position{
																					Column: 68,
																					Line:   22,
																				},
																			},
																		},
																		Name: "msg",
																	},
																	Separator: nil,
																	Value: &ast.StringLiteral{
																		BaseNode: ast.BaseNode{
																			Comments: nil,
																			Errors:   nil,
																			Loc: &ast.SourceLocation{
																				End: ast.Position{
																					Column: 118,
																					Line:   22,
																				},
																				File:   "extrapolatedRate_nocounter_test.flux",
																				Source: "\"test input table does not have _time column\"",
																				Start: ast.Position{
																					Column: 73,
																					Line:   22,
																				},
																			},
																		},
																		Value: "test input table does not have _time column",
																	},
																}},
																Rbrace: nil,
																With:   nil,
															}},
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 119,
																		Line:   22,
																	},
																	File:   "extrapolatedRate_nocounter_test.flux",
																	Source: "die(msg: \"test input table does not have _time column\")",
																	Start: ast.Position{
																		Column: 64,
																		Line:   22,
																	},
																},
															},
															Callee: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 67,
																			Line:   22,
																		},
																		File:   "extrapolatedRate_nocounter_test.flux",
																		Source: "die",
																		Start: ast.Position{
																			Column: 64,
																			Line:   22,
																		},
																	},
																},
																Name: "die",
															},
															Lparen: nil,
															Rparen: nil,
														},
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 119,
																	Line:   22,
																},
																File:   "extrapolatedRate_nocounter_test.flux",
																Source: "if exists r._time then r._time else die(msg: \"test input table does not have _time column\")",
																Start: ast.Position{
																	Column: 28,
																	Line:   22,
																},
															},
														},
														Consequent: &ast.MemberExpression{
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 58,
																		Line:   22,
																	},
																	File:   "extrapolatedRate_nocounter_test.flux",
																	Source: "r._time",
																	Start: ast.Position{
																		Column: 51,
																		Line:   22,
																	},
																},
															},
															Lbrack: nil,
															Object: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 52,
																			Line:   22,
																		},
																		File:   "extrapolatedRate_nocounter_test.flux",
																		Source: "r",
																		Start: ast.Position{
																			Column: 51,
																			Line:   22,
																		},
																	},
																},
																Name: "r",
															},
															Property: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 58,
																			Line:   22,
																		},
																		File:   "extrapolatedRate_nocounter_test.flux",
																		Source: "_time",
																		Start: ast.Position{
																			Column: 53,
																			Line:   22,
																		},
																	},
																},
																Name: "_time",
															},
															Rbrack: nil,
														},
														Test: &ast.UnaryExpression{
															Argument: &ast.MemberExpression{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 45,
																			Line:   22,
																		},
																		File:   "extrapolatedRate_nocounter_test.flux",
																		Source: "r._time",
																		Start: ast.Position{
																			Column: 38,
																			Line:   22,
																		},
																	},
																},
																Lbrack: nil,
																Object: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 39,
																				Line:   22,
																			},
																			File:   "extrapolatedRate_nocounter_test.flux",
																			Source: "r",
																			Start: ast.Position{
																				Column: 38,
																				Line:   22,
																			},
																		},
																	},
																	Name: "r",
																},
																Property: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 45,
																				Line:   22,
																			},
																			File:   "extrapolatedRate_nocounter_test.flux",
																			Source: "_time",
																			Start: ast.Position{
																				Column: 40,
																				Line:   22,
																			},
																		},
																	},
																	Name: "_time",
																},
																Rbrack: nil,
															},
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 45,
																		Line:   22,
																	},
																	File:   "extrapolatedRate_nocounter_test.flux",
																	Source: "exists r._time",
																	Start: ast.Position{
																		Column: 31,
																		Line:   22,
																	},
																},
															},
															Operator: 14,
														},
														Tk_else: nil,
														Tk_if:   nil,
														Tk_then: nil,
													},
												}},
												Rbrace: nil,
												With: &ast.Identifier{
													BaseNode: ast.BaseNode{
														Comments: nil,
														Errors:   nil,
														Loc: &ast.SourceLocation{
															End: ast.Position{
																Column: 20,
																Line:   15,
															},
															File:   "extrapolatedRate_nocounter_test.flux",
															Source: "r",
															Start: ast.Position{
																Column: 19,
																Line:   15,
															},
														},
													},
													Name: "r",
												},
											},
											Lparen: nil,
											Rparen: nil,
										},
										Lparen: nil,
										Params: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 19,
														Line:   14,
													},
													File:   "extrapolatedRate_nocounter_test.flux",
													Source: "r",
													Start: ast.Position{
														Column: 18,
														Line:   14,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 19,
															Line:   14,
														},
														File:   "extrapolatedRate_nocounter_test.flux",
														Source: "r",
														Start: ast.Position{
															Column: 18,
															Line:   14,
														},
													},
												},
												Name: "r",
											},
											Separator: nil,
											Value:     nil,
										}},
										Rparan: nil,
									},
								}},
								Rbrace: nil,
								With:   nil,
							}},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 10,
										Line:   24,
									},
									File:   "extrapolatedRate_nocounter_test.flux",
									Source: "map(\n            fn: (r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                }),\n        )",
									Start: ast.Position{
										Column: 12,
										Line:   13,
									},
								},
							},
							Callee: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 15,
											Line:   13,
										},
										File:   "extrapolatedRate_nocounter_test.flux",
										Source: "map",
										Start: ast.Position{
											Column: 12,
											Line:   13,
										},
									},
								},
								Name: "map",
							},
							Lparen: nil,
							Rparen: nil,
						},
					},
					Lparen: nil,
					Params: []*ast.Property{&ast.Property{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 34,
									Line:   11,
								},
								File:   "extrapolatedRate_nocounter_test.flux",
								Source: "csv",
								Start: ast.Position{
									Column: 31,
									Line:   11,
								},
							},
						},
						Comma: nil,
						Key: &ast.Identifier{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 34,
										Line:   11,
									},
									File:   "extrapolatedRate_nocounter_test.flux",
									Source: "csv",
									Start: ast.Position{
										Column: 31,
										Line:   11,
									},
								},
							},
							Name: "csv",
						},
						Separator: nil,
						Value:     nil,
					}},
					Rparan: nil,
				},
				Member: &ast.MemberExpression{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 27,
								Line:   11,
							},
							File:   "extrapolatedRate_nocounter_test.flux",
							Source: "testing.loadStorage",
							Start: ast.Position{
								Column: 8,
								Line:   11,
							},
						},
					},
					Lbrack: nil,
					Object: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 15,
									Line:   11,
								},
								File:   "extrapolatedRate_nocounter_test.flux",
								Source: "testing",
								Start: ast.Position{
									Column: 8,
									Line:   11,
								},
							},
						},
						Name: "testing",
					},
					Property: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 27,
									Line:   11,
								},
								File:   "extrapolatedRate_nocounter_test.flux",
								Source: "loadStorage",
								Start: ast.Position{
									Column: 16,
									Line:   11,
								},
							},
						},
						Name: "loadStorage",
					},
					Rbrack: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: []ast.Comment{ast.Comment{Text: "// todo(faith): remove overload https://github.com/influxdata/flux/issues/3155\n"}},
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 10,
						Line:   24,
					},
					File:   "extrapolatedRate_nocounter_test.flux",
					Source: "option testing.loadStorage = (csv) =>\n    c.from(csv: csv)\n        |> map(\n            fn: (r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                }),\n        )",
					Start: ast.Position{
						Column: 1,
						Line:   11,
					},
				},
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   50,
					},
					File:   "extrapolatedRate_nocounter_test.flux",
					Source: "inData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,100,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,100,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,400,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   26,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 7,
							Line:   26,
						},
						File:   "extrapolatedRate_nocounter_test.flux",
						Source: "inData",
						Start: ast.Position{
							Column: 1,
							Line:   26,
						},
					},
				},
				Name: "inData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   50,
						},
						File:   "extrapolatedRate_nocounter_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,100,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,100,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,400,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   27,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,100,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,100,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,400,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   60,
					},
					File:   "extrapolatedRate_nocounter_test.flux",
					Source: "outData =\n    \"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name1,0,prometheus\n,,1,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name2,0.39599999999999996,prometheus\n,,2,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name3,1.2,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   51,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 8,
							Line:   51,
						},
						File:   "extrapolatedRate_nocounter_test.flux",
						Source: "outData",
						Start: ast.Position{
							Column: 1,
							Line:   51,
						},
					},
				},
				Name: "outData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   60,
						},
						File:   "extrapolatedRate_nocounter_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name1,0,prometheus\n,,1,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name2,0.39599999999999996,prometheus\n,,2,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name3,1.2,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   52,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name1,0,prometheus\n,,1,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name2,0.39599999999999996,prometheus\n,,2,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name3,1.2,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 67,
						Line:   64,
					},
					File:   "extrapolatedRate_nocounter_test.flux",
					Source: "t_extrapolatedRate = (table=<-) =>\n    table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)\n        |> promql.extrapolatedRate(isCounter: false, isRate: true)",
					Start: ast.Position{
						Column: 1,
						Line:   61,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 19,
							Line:   61,
						},
						File:   "extrapolatedRate_nocounter_test.flux",
						Source: "t_extrapolatedRate",
						Start: ast.Position{
							Column: 1,
							Line:   61,
						},
					},
				},
				Name: "t_extrapolatedRate",
			},
			Init: &ast.FunctionExpression{
				Arrow: nil,
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 67,
							Line:   64,
						},
						File:   "extrapolatedRate_nocounter_test.flux",
						Source: "(table=<-) =>\n    table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)\n        |> promql.extrapolatedRate(isCounter: false, isRate: true)",
						Start: ast.Position{
							Column: 22,
							Line:   61,
						},
					},
				},
				Body: &ast.PipeExpression{
					Argument: &ast.PipeExpression{
						Argument: &ast.Identifier{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 10,
										Line:   62,
									},
									File:   "extrapolatedRate_nocounter_test.flux",
									Source: "table",
									Start: ast.Position{
										Column: 5,
										Line:   62,
									},
								},
							},
							Name: "table",
						},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 74,
									Line:   63,
								},
								File:   "extrapolatedRate_nocounter_test.flux",
								Source: "table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)",
								Start: ast.Position{
									Column: 5,
									Line:   62,
								},
							},
						},
						Call: &ast.CallExpression{
							Arguments: []ast.Expression{&ast.ObjectExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 73,
											Line:   63,
										},
										File:   "extrapolatedRate_nocounter_test.flux",
										Source: "start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z",
										Start: ast.Position{
											Column: 18,
											Line:   63,
										},
									},
								},
								Lbrace: nil,
								Properties: []*ast.Property{&ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   63,
											},
											File:   "extrapolatedRate_nocounter_test.flux",
											Source: "start: 2018-12-18T20:50:00Z",
											Start: ast.Position{
												Column: 18,
												Line:   63,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 23,
													Line:   63,
												},
												File:   "extrapolatedRate_nocounter_test.flux",
												Source: "start",
												Start: ast.Position{
													Column: 18,
													Line:   63,
												},
											},
										},
										Name: "start",
									},
									Separator: nil,
									Value: &ast.DateTimeLiteral{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   63,
												},
												File:   "extrapolatedRate_nocounter_test.flux",
												Source: "2018-12-18T20:50:00Z",
												Start: ast.Position{
													Column: 25,
													Line:   63,
												},
											},
										},
										Value: parser.MustParseTime("2018-12-18T20:50:00Z"),
									},
								}, &ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 73,
												Line:   63,
											},
											File:   "extrapolatedRate_nocounter_test.flux",
											Source: "stop: 2018-12-18T20:55:00Z",
											Start: ast.Position{
												Column: 47,
												Line:   63,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 51,
													Line:   63,
												},
												File:   "extrapolatedRate_nocounter_test.flux",
												Source: "stop",
												Start: ast.Position{
													Column: 47,
													Line:   63,
												},
											},
										},
										Name: "stop",
									},
									Separator: nil,
									Value: &ast.DateTimeLiteral{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 73,
													Line:   63,
												},
												File:   "extrapolatedRate_nocounter_test.flux",
												Source: "2018-12-18T20:55:00Z",
												Start: ast.Position{
													Column: 53,
													Line:   63,
												},
											},
										},
										Value: parser.MustParseTime("2018-12-18T20:55:00Z"),
									},
								}},
								Rbrace: nil,
								With:   nil,
							}},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 74,
										Line:   63,
									},
									File:   "extrapolatedRate_nocounter_test.flux",
									Source: "range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)",
									Start: ast.Position{
										Column: 12,
										Line:   63,
									},
								},
							},
							Callee: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 17,
											Line:   63,
										},
										File:   "extrapolatedRate_nocounter_test.flux",
										Source: "range",
										Start: ast.Position{
											Column: 12,
											Line:   63,
										},
									},
								},
								Name: "range",
							},
							Lparen: nil,
							Rparen: nil,
						},
					},
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 67,
								Line:   64,
							},
							File:   "extrapolatedRate_nocounter_test.flux",
							Source: "table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)\n        |> promql.extrapolatedRate(isCounter: false, isRate: true)",
							Start: ast.Position{
								Column: 5,
								Line:   62,
							},
						},
					},
					Call: &ast.CallExpression{
						Arguments: []ast.Expression{&ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 66,
										Line:   64,
									},
									File:   "extrapolatedRate_nocounter_test.flux",
									Source: "isCounter: false, isRate: true",
									Start: ast.Position{
										Column: 36,
										Line:   64,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 52,
											Line:   64,
										},
										File:   "extrapolatedRate_nocounter_test.flux",
										Source: "isCounter: false",
										Start: ast.Position{
											Column: 36,
											Line:   64,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   64,
											},
											File:   "extrapolatedRate_nocounter_test.flux",
											Source: "isCounter",
											Start: ast.Position{
												Column: 36,
												Line:   64,
											},
										},
									},
									Name: "isCounter",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 52,
												Line:   64,
											},
											File:   "extrapolatedRate_nocounter_test.flux",
											Source: "false",
											Start: ast.Position{
												Column: 47,
												Line:   64,
											},
										},
									},
									Name: "false",
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 66,
											Line:   64,
										},
										File:   "extrapolatedRate_nocounter_test.flux",
										Source: "isRate: true",
										Start: ast.Position{
											Column: 54,
											Line:   64,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 60,
												Line:   64,
											},
											File:   "extrapolatedRate_nocounter_test.flux",
											Source: "isRate",
											Start: ast.Position{
												Column: 54,
												Line:   64,
											},
										},
									},
									Name: "isRate",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 66,
												Line:   64,
											},
											File:   "extrapolatedRate_nocounter_test.flux",
											Source: "true",
											Start: ast.Position{
												Column: 62,
												Line:   64,
											},
										},
									},
									Name: "true",
								},
							}},
							Rbrace: nil,
							With:   nil,
						}},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 67,
									Line:   64,
								},
								File:   "extrapolatedRate_nocounter_test.flux",
								Source: "promql.extrapolatedRate(isCounter: false, isRate: true)",
								Start: ast.Position{
									Column: 12,
									Line:   64,
								},
							},
						},
						Callee: &ast.MemberExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 35,
										Line:   64,
									},
									File:   "extrapolatedRate_nocounter_test.flux",
									Source: "promql.extrapolatedRate",
									Start: ast.Position{
										Column: 12,
										Line:   64,
									},
								},
							},
							Lbrack: nil,
							Object: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 18,
											Line:   64,
										},
										File:   "extrapolatedRate_nocounter_test.flux",
										Source: "promql",
										Start: ast.Position{
											Column: 12,
											Line:   64,
										},
									},
								},
								Name: "promql",
							},
							Property: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 35,
											Line:   64,
										},
										File:   "extrapolatedRate_nocounter_test.flux",
										Source: "extrapolatedRate",
										Start: ast.Position{
											Column: 19,
											Line:   64,
										},
									},
								},
								Name: "extrapolatedRate",
							},
							Rbrack: nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
				},
				Lparen: nil,
				Params: []*ast.Property{&ast.Property{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 31,
								Line:   61,
							},
							File:   "extrapolatedRate_nocounter_test.flux",
							Source: "table=<-",
							Start: ast.Position{
								Column: 23,
								Line:   61,
							},
						},
					},
					Comma: nil,
					Key: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 28,
									Line:   61,
								},
								File:   "extrapolatedRate_nocounter_test.flux",
								Source: "table",
								Start: ast.Position{
									Column: 23,
									Line:   61,
								},
							},
						},
						Name: "table",
					},
					Separator: nil,
					Value: &ast.PipeLiteral{BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 31,
								Line:   61,
							},
							File:   "extrapolatedRate_nocounter_test.flux",
							Source: "<-",
							Start: ast.Position{
								Column: 29,
								Line:   61,
							},
						},
					}},
				}},
				Rparan: nil,
			},
		}, &ast.TestStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 109,
							Line:   67,
						},
						File:   "extrapolatedRate_nocounter_test.flux",
						Source: "_extrapolatedRate = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_extrapolatedRate})",
						Start: ast.Position{
							Column: 6,
							Line:   66,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 23,
								Line:   66,
							},
							File:   "extrapolatedRate_nocounter_test.flux",
							Source: "_extrapolatedRate",
							Start: ast.Position{
								Column: 6,
								Line:   66,
							},
						},
					},
					Name: "_extrapolatedRate",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 109,
								Line:   67,
							},
							File:   "extrapolatedRate_nocounter_test.flux",
							Source: "() =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_extrapolatedRate})",
							Start: ast.Position{
								Column: 26,
								Line:   66,
							},
						},
					},
					Body: &ast.ParenExpression{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 109,
									Line:   67,
								},
								File:   "extrapolatedRate_nocounter_test.flux",
								Source: "({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_extrapolatedRate})",
								Start: ast.Position{
									Column: 5,
									Line:   67,
								},
							},
						},
						Expression: &ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 108,
										Line:   67,
									},
									File:   "extrapolatedRate_nocounter_test.flux",
									Source: "{input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_extrapolatedRate}",
									Start: ast.Position{
										Column: 6,
										Line:   67,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   67,
										},
										File:   "extrapolatedRate_nocounter_test.flux",
										Source: "input: testing.loadStorage(csv: inData)",
										Start: ast.Position{
											Column: 7,
											Line:   67,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 12,
												Line:   67,
											},
											File:   "extrapolatedRate_nocounter_test.flux",
											Source: "input",
											Start: ast.Position{
												Column: 7,
												Line:   67,
											},
										},
									},
									Name: "input",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   67,
												},
												File:   "extrapolatedRate_nocounter_test.flux",
												Source: "csv: inData",
												Start: ast.Position{
													Column: 34,
													Line:   67,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   67,
													},
													File:   "extrapolatedRate_nocounter_test.flux",
													Source: "csv: inData",
													Start: ast.Position{
														Column: 34,
														Line:   67,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 37,
															Line:   67,
														},
														File:   "extrapolatedRate_nocounter_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 34,
															Line:   67,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 45,
															Line:   67,
														},
														File:   "extrapolatedRate_nocounter_test.flux",
														Source: "inData",
														Start: ast.Position{
															Column: 39,
															Line:   67,
														},
													},
												},
												Name: "inData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 46,
												Line:   67,
											},
											File:   "extrapolatedRate_nocounter_test.flux",
											Source: "testing.loadStorage(csv: inData)",
											Start: ast.Position{
												Column: 14,
												Line:   67,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 33,
													Line:   67,
												},
												File:   "extrapolatedRate_nocounter_test.flux",
												Source: "testing.loadStorage",
												Start: ast.Position{
													Column: 14,
													Line:   67,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 21,
														Line:   67,
													},
													File:   "extrapolatedRate_nocounter_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 14,
														Line:   67,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 33,
														Line:   67,
													},
													File:   "extrapolatedRate_nocounter_test.flux",
													Source: "loadStorage",
													Start: ast.Position{
														Column: 22,
														Line:   67,
													},
												},
											},
											Name: "loadStorage",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 83,
											Line:   67,
										},
										File:   "extrapolatedRate_nocounter_test.flux",
										Source: "want: testing.loadMem(csv: outData)",
										Start: ast.Position{
											Column: 48,
											Line:   67,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 52,
												Line:   67,
											},
											File:   "extrapolatedRate_nocounter_test.flux",
											Source: "want",
											Start: ast.Position{
												Column: 48,
												Line:   67,
											},
										},
									},
									Name: "want",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 82,
													Line:   67,
												},
												File:   "extrapolatedRate_nocounter_test.flux",
												Source: "csv: outData",
												Start: ast.Position{
													Column: 70,
													Line:   67,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 82,
														Line:   67,
													},
													File:   "extrapolatedRate_nocounter_test.flux",
													Source: "csv: outData",
													Start: ast.Position{
														Column: 70,
														Line:   67,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 73,
															Line:   67,
														},
														File:   "extrapolatedRate_nocounter_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 70,
															Line:   67,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 82,
															Line:   67,
														},
														File:   "extrapolatedRate_nocounter_test.flux",
														Source: "outData",
														Start: ast.Position{
															Column: 75,
															Line:   67,
														},
													},
												},
												Name: "outData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 83,
												Line:   67,
											},
											File:   "extrapolatedRate_nocounter_test.flux",
											Source: "testing.loadMem(csv: outData)",
											Start: ast.Position{
												Column: 54,
												Line:   67,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 69,
													Line:   67,
												},
												File:   "extrapolatedRate_nocounter_test.flux",
												Source: "testing.loadMem",
												Start: ast.Position{
													Column: 54,
													Line:   67,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 61,
														Line:   67,
													},
													File:   "extrapolatedRate_nocounter_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 54,
														Line:   67,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 69,
														Line:   67,
													},
													File:   "extrapolatedRate_nocounter_test.flux",
													Source: "loadMem",
													Start: ast.Position{
														Column: 62,
														Line:   67,
													},
												},
											},
											Name: "loadMem",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 107,
											Line:   67,
										},
										File:   "extrapolatedRate_nocounter_test.flux",
										Source: "fn: t_extrapolatedRate",
										Start: ast.Position{
											Column: 85,
											Line:   67,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 87,
												Line:   67,
											},
											File:   "extrapolatedRate_nocounter_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 85,
												Line:   67,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 107,
												Line:   67,
											},
											File:   "extrapolatedRate_nocounter_test.flux",
											Source: "t_extrapolatedRate",
											Start: ast.Position{
												Column: 89,
												Line:   67,
											},
										},
									},
									Name: "t_extrapolatedRate",
								},
							}},
							Rbrace: nil,
							With:   nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 109,
						Line:   67,
					},
					File:   "extrapolatedRate_nocounter_test.flux",
					Source: "test _extrapolatedRate = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_extrapolatedRate})",
					Start: ast.Position{
						Column: 1,
						Line:   66,
					},
				},
			},
		}},
		Eof: nil,
		Imports: []*ast.ImportDeclaration{&ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 17,
						Line:   4,
					},
					File:   "extrapolatedRate_nocounter_test.flux",
					Source: "import \"testing\"",
					Start: ast.Position{
						Column: 1,
						Line:   4,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 17,
							Line:   4,
						},
						File:   "extrapolatedRate_nocounter_test.flux",
						Source: "\"testing\"",
						Start: ast.Position{
							Column: 8,
							Line:   4,
						},
					},
				},
				Value: "testing",
			},
		}, &ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 25,
						Line:   5,
					},
					File:   "extrapolatedRate_nocounter_test.flux",
					Source: "import \"internal/promql\"",
					Start: ast.Position{
						Column: 1,
						Line:   5,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 25,
							Line:   5,
						},
						File:   "extrapolatedRate_nocounter_test.flux",
						Source: "\"internal/promql\"",
						Start: ast.Position{
							Column: 8,
							Line:   5,
						},
					},
				},
				Value: "internal/promql",
			},
		}, &ast.ImportDeclaration{
			As: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 9,
							Line:   6,
						},
						File:   "extrapolatedRate_nocounter_test.flux",
						Source: "c",
						Start: ast.Position{
							Column: 8,
							Line:   6,
						},
					},
				},
				Name: "c",
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 15,
						Line:   6,
					},
					File:   "extrapolatedRate_nocounter_test.flux",
					Source: "import c \"csv\"",
					Start: ast.Position{
						Column: 1,
						Line:   6,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 15,
							Line:   6,
						},
						File:   "extrapolatedRate_nocounter_test.flux",
						Source: "\"csv\"",
						Start: ast.Position{
							Column: 10,
							Line:   6,
						},
					},
				},
				Value: "csv",
			},
		}},
		Metadata: "parser-type=rust",
		Name:     "extrapolatedRate_nocounter_test.flux",
		Package: &ast.PackageClause{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 20,
						Line:   1,
					},
					File:   "extrapolatedRate_nocounter_test.flux",
					Source: "package promql_test",
					Start: ast.Position{
						Column: 1,
						Line:   1,
					},
				},
			},
			Name: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 20,
							Line:   1,
						},
						File:   "extrapolatedRate_nocounter_test.flux",
						Source: "promql_test",
						Start: ast.Position{
							Column: 9,
							Line:   1,
						},
					},
				},
				Name: "promql_test",
			},
		},
	}, &ast.File{
		BaseNode: ast.BaseNode{
			Comments: nil,
			Errors:   nil,
			Loc: &ast.SourceLocation{
				End: ast.Position{
					Column: 109,
					Line:   67,
				},
				File:   "extrapolatedRate_norate_test.flux",
				Source: "package promql_test\n\n\nimport \"testing\"\nimport \"internal/promql\"\nimport c \"csv\"\n\noption now = () => 2030-01-01T00:00:00Z\n\n// todo(faith): remove overload https://github.com/influxdata/flux/issues/3155\noption testing.loadStorage = (csv) =>\n    c.from(csv: csv)\n        |> map(\n            fn: (r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                }),\n        )\n\ninData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,100,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,100,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,400,prometheus\n\"\noutData =\n    \"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name1,0,prometheus\n,,1,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name2,109.89999999999999,prometheus\n,,2,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name3,760,prometheus\n\"\nt_extrapolatedRate = (table=<-) =>\n    table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)\n        |> promql.extrapolatedRate(isCounter: true, isRate: false)\n\ntest _extrapolatedRate = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_extrapolatedRate})",
				Start: ast.Position{
					Column: 1,
					Line:   1,
				},
			},
		},
		Body: []ast.Statement{&ast.OptionStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 40,
							Line:   8,
						},
						File:   "extrapolatedRate_norate_test.flux",
						Source: "now = () => 2030-01-01T00:00:00Z",
						Start: ast.Position{
							Column: 8,
							Line:   8,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 11,
								Line:   8,
							},
							File:   "extrapolatedRate_norate_test.flux",
							Source: "now",
							Start: ast.Position{
								Column: 8,
								Line:   8,
							},
						},
					},
					Name: "now",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 40,
								Line:   8,
							},
							File:   "extrapolatedRate_norate_test.flux",
							Source: "() => 2030-01-01T00:00:00Z",
							Start: ast.Position{
								Column: 14,
								Line:   8,
							},
						},
					},
					Body: &ast.DateTimeLiteral{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 40,
									Line:   8,
								},
								File:   "extrapolatedRate_norate_test.flux",
								Source: "2030-01-01T00:00:00Z",
								Start: ast.Position{
									Column: 20,
									Line:   8,
								},
							},
						},
						Value: parser.MustParseTime("2030-01-01T00:00:00Z"),
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 40,
						Line:   8,
					},
					File:   "extrapolatedRate_norate_test.flux",
					Source: "option now = () => 2030-01-01T00:00:00Z",
					Start: ast.Position{
						Column: 1,
						Line:   8,
					},
				},
			},
		}, &ast.OptionStatement{
			Assignment: &ast.MemberAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 10,
							Line:   24,
						},
						File:   "extrapolatedRate_norate_test.flux",
						Source: "testing.loadStorage = (csv) =>\n    c.from(csv: csv)\n        |> map(\n            fn: (r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                }),\n        )",
						Start: ast.Position{
							Column: 8,
							Line:   11,
						},
					},
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 10,
								Line:   24,
							},
							File:   "extrapolatedRate_norate_test.flux",
							Source: "(csv) =>\n    c.from(csv: csv)\n        |> map(\n            fn: (r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                }),\n        )",
							Start: ast.Position{
								Column: 30,
								Line:   11,
							},
						},
					},
					Body: &ast.PipeExpression{
						Argument: &ast.CallExpression{
							Arguments: []ast.Expression{&ast.ObjectExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 20,
											Line:   12,
										},
										File:   "extrapolatedRate_norate_test.flux",
										Source: "csv: csv",
										Start: ast.Position{
											Column: 12,
											Line:   12,
										},
									},
								},
								Lbrace: nil,
								Properties: []*ast.Property{&ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 20,
												Line:   12,
											},
											File:   "extrapolatedRate_norate_test.flux",
											Source: "csv: csv",
											Start: ast.Position{
												Column: 12,
												Line:   12,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 15,
													Line:   12,
												},
												File:   "extrapolatedRate_norate_test.flux",
												Source: "csv",
												Start: ast.Position{
													Column: 12,
													Line:   12,
												},
											},
										},
										Name: "csv",
									},
									Separator: nil,
									Value: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 20,
													Line:   12,
												},
												File:   "extrapolatedRate_norate_test.flux",
												Source: "csv",
												Start: ast.Position{
													Column: 17,
													Line:   12,
												},
											},
										},
										Name: "csv",
									},
								}},
								Rbrace: nil,
								With:   nil,
							}},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 21,
										Line:   12,
									},
									File:   "extrapolatedRate_norate_test.flux",
									Source: "c.from(csv: csv)",
									Start: ast.Position{
										Column: 5,
										Line:   12,
									},
								},
							},
							Callee: &ast.MemberExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 11,
											Line:   12,
										},
										File:   "extrapolatedRate_norate_test.flux",
										Source: "c.from",
										Start: ast.Position{
											Column: 5,
											Line:   12,
										},
									},
								},
								Lbrack: nil,
								Object: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 6,
												Line:   12,
											},
											File:   "extrapolatedRate_norate_test.flux",
											Source: "c",
											Start: ast.Position{
												Column: 5,
												Line:   12,
											},
										},
									},
									Name: "c",
								},
								Property: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 11,
												Line:   12,
											},
											File:   "extrapolatedRate_norate_test.flux",
											Source: "from",
											Start: ast.Position{
												Column: 7,
												Line:   12,
											},
										},
									},
									Name: "from",
								},
								Rbrack: nil,
							},
							Lparen: nil,
							Rparen: nil,
						},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 10,
									Line:   24,
								},
								File:   "extrapolatedRate_norate_test.flux",
								Source: "c.from(csv: csv)\n        |> map(\n            fn: (r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                }),\n        )",
								Start: ast.Position{
									Column: 5,
									Line:   12,
								},
							},
						},
						Call: &ast.CallExpression{
							Arguments: []ast.Expression{&ast.ObjectExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 19,
											Line:   23,
										},
										File:   "extrapolatedRate_norate_test.flux",
										Source: "fn: (r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                })",
										Start: ast.Position{
											Column: 13,
											Line:   14,
										},
									},
								},
								Lbrace: nil,
								Properties: []*ast.Property{&ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 19,
												Line:   23,
											},
											File:   "extrapolatedRate_norate_test.flux",
											Source: "fn: (r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                })",
											Start: ast.Position{
												Column: 13,
												Line:   14,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 15,
													Line:   14,
												},
												File:   "extrapolatedRate_norate_test.flux",
												Source: "fn",
												Start: ast.Position{
													Column: 13,
													Line:   14,
												},
											},
										},
										Name: "fn",
									},
									Separator: nil,
									Value: &ast.FunctionExpression{
										Arrow: nil,
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 19,
													Line:   23,
												},
												File:   "extrapolatedRate_norate_test.flux",
												Source: "(r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                })",
												Start: ast.Position{
													Column: 17,
													Line:   14,
												},
											},
										},
										Body: &ast.ParenExpression{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 19,
														Line:   23,
													},
													File:   "extrapolatedRate_norate_test.flux",
													Source: "({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                })",
													Start: ast.Position{
														Column: 17,
														Line:   15,
													},
												},
											},
											Expression: &ast.ObjectExpression{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 18,
															Line:   23,
														},
														File:   "extrapolatedRate_norate_test.flux",
														Source: "{r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                }",
														Start: ast.Position{
															Column: 18,
															Line:   15,
														},
													},
												},
												Lbrace: nil,
												Properties: []*ast.Property{&ast.Property{
													BaseNode: ast.BaseNode{
														Comments: nil,
														Errors:   nil,
														Loc: &ast.SourceLocation{
															End: ast.Position{
																Column: 119,
																Line:   16,
															},
															File:   "extrapolatedRate_norate_test.flux",
															Source: "_field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\")",
															Start: ast.Position{
																Column: 26,
																Line:   15,
															},
														},
													},
													Comma: nil,
													Key: &ast.Identifier{
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 32,
																	Line:   15,
																},
																File:   "extrapolatedRate_norate_test.flux",
																Source: "_field",
																Start: ast.Position{
																	Column: 26,
																	Line:   15,
																},
															},
														},
														Name: "_field",
													},
													Separator: nil,
													Value: &ast.ConditionalExpression{
														Alternate: &ast.CallExpression{
															Arguments: []ast.Expression{&ast.ObjectExpression{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 118,
																			Line:   16,
																		},
																		File:   "extrapolatedRate_norate_test.flux",
																		Source: "msg: \"test input table does not have _field column\"",
																		Start: ast.Position{
																			Column: 67,
																			Line:   16,
																		},
																	},
																},
																Lbrace: nil,
																Properties: []*ast.Property{&ast.Property{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 118,
																				Line:   16,
																			},
																			File:   "extrapolatedRate_norate_test.flux",
																			Source: "msg: \"test input table does not have _field column\"",
																			Start: ast.Position{
																				Column: 67,
																				Line:   16,
																			},
																		},
																	},
																	Comma: nil,
																	Key: &ast.Identifier{
																		BaseNode: ast.BaseNode{
																			Comments: nil,
																			Errors:   nil,
																			Loc: &ast.SourceLocation{
																				End: ast.Position{
																					Column: 70,
																					Line:   16,
																				},
																				File:   "extrapolatedRate_norate_test.flux",
																				Source: "msg",
																				Start: ast.Position{
																					Column: 67,
																					Line:   16,
																				},
																			},
																		},
																		Name: "msg",
																	},
																	Separator: nil,
																	Value: &ast.StringLiteral{
																		BaseNode: ast.BaseNode{
																			Comments: nil,
																			Errors:   nil,
																			Loc: &ast.SourceLocation{
																				End: ast.Position{
																					Column: 118,
																					Line:   16,
																				},
																				File:   "extrapolatedRate_norate_test.flux",
																				Source: "\"test input table does not have _field column\"",
																				Start: ast.Position{
																					Column: 72,
																					Line:   16,
																				},
																			},
																		},
																		Value: "test input table does not have _field column",
																	},
																}},
																Rbrace: nil,
																With:   nil,
															}},
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 119,
																		Line:   16,
																	},
																	File:   "extrapolatedRate_norate_test.flux",
																	Source: "die(msg: \"test input table does not have _field column\")",
																	Start: ast.Position{
																		Column: 63,
																		Line:   16,
																	},
																},
															},
															Callee: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 66,
																			Line:   16,
																		},
																		File:   "extrapolatedRate_norate_test.flux",
																		Source: "die",
																		Start: ast.Position{
																			Column: 63,
																			Line:   16,
																		},
																	},
																},
																Name: "die",
															},
															Lparen: nil,
															Rparen: nil,
														},
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 119,
																	Line:   16,
																},
																File:   "extrapolatedRate_norate_test.flux",
																Source: "if exists r._field then r._field else die(msg: \"test input table does not have _field column\")",
																Start: ast.Position{
																	Column: 25,
																	Line:   16,
																},
															},
														},
														Consequent: &ast.MemberExpression{
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 57,
																		Line:   16,
																	},
																	File:   "extrapolatedRate_norate_test.flux",
																	Source: "r._field",
																	Start: ast.Position{
																		Column: 49,
																		Line:   16,
																	},
																},
															},
															Lbrack: nil,
															Object: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 50,
																			Line:   16,
																		},
																		File:   "extrapolatedRate_norate_test.flux",
																		Source: "r",
																		Start: ast.Position{
																			Column: 49,
																			Line:   16,
																		},
																	},
																},
																Name: "r",
															},
															Property: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 57,
																			Line:   16,
																		},
																		File:   "extrapolatedRate_norate_test.flux",
																		Source: "_field",
																		Start: ast.Position{
																			Column: 51,
																			Line:   16,
																		},
																	},
																},
																Name: "_field",
															},
															Rbrack: nil,
														},
														Test: &ast.UnaryExpression{
															Argument: &ast.MemberExpression{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 43,
																			Line:   16,
																		},
																		File:   "extrapolatedRate_norate_test.flux",
																		Source: "r._field",
																		Start: ast.Position{
																			Column: 35,
																			Line:   16,
																		},
																	},
																},
																Lbrack: nil,
																Object: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 36,
																				Line:   16,
																			},
																			File:   "extrapolatedRate_norate_test.flux",
																			Source: "r",
																			Start: ast.Position{
																				Column: 35,
																				Line:   16,
																			},
																		},
																	},
																	Name: "r",
																},
																Property: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 43,
																				Line:   16,
																			},
																			File:   "extrapolatedRate_norate_test.flux",
																			Source: "_field",
																			Start: ast.Position{
																				Column: 37,
																				Line:   16,
																			},
																		},
																	},
																	Name: "_field",
																},
																Rbrack: nil,
															},
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 43,
																		Line:   16,
																	},
																	File:   "extrapolatedRate_norate_test.flux",
																	Source: "exists r._field",
																	Start: ast.Position{
																		Column: 28,
																		Line:   16,
																	},
																},
															},
															Operator: 14,
														},
														Tk_else: nil,
														Tk_if:   nil,
														Tk_then: nil,
													},
												}, &ast.Property{
													BaseNode: ast.BaseNode{
														Comments: nil,
														Errors:   nil,
														Loc: &ast.SourceLocation{
															End: ast.Position{
																Column: 91,
																Line:   21,
															},
															File:   "extrapolatedRate_norate_test.flux",
															Source: "_measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\")",
															Start: ast.Position{
																Column: 21,
																Line:   17,
															},
														},
													},
													Comma: nil,
													Key: &ast.Identifier{
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 33,
																	Line:   17,
																},
																File:   "extrapolatedRate_norate_test.flux",
																Source: "_measurement",
																Start: ast.Position{
																	Column: 21,
																	Line:   17,
																},
															},
														},
														Name: "_measurement",
													},
													Separator: nil,
													Value: &ast.ConditionalExpression{
														Alternate: &ast.CallExpression{
															Arguments: []ast.Expression{&ast.ObjectExpression{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 90,
																			Line:   21,
																		},
																		File:   "extrapolatedRate_norate_test.flux",
																		Source: "msg: \"test input table does not have _measurement column\"",
																		Start: ast.Position{
																			Column: 33,
																			Line:   21,
																		},
																	},
																},
																Lbrace: nil,
																Properties: []*ast.Property{&ast.Property{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 90,
																				Line:   21,
																			},
																			File:   "extrapolatedRate_norate_test.flux",
																			Source: "msg: \"test input table does not have _measurement column\"",
																			Start: ast.Position{
																				Column: 33,
																				Line:   21,
																			},
																		},
																	},
																	Comma: nil,
																	Key: &ast.Identifier{
																		BaseNode: ast.BaseNode{
																			Comments: nil,
																			Errors:   nil,
																			Loc: &ast.SourceLocation{
																				End: ast.Position{
																					Column: 36,
																					Line:   21,
																				},
																				File:   "extrapolatedRate_norate_test.flux",
																				Source: "msg",
																				Start: ast.Position{
																					Column: 33,
																					Line:   21,
																				},
																			},
																		},
																		Name: "msg",
																	},
																	Separator: nil,
																	Value: &ast.StringLiteral{
																		BaseNode: ast.BaseNode{
																			Comments: nil,
																			Errors:   nil,
																			Loc: &ast.SourceLocation{
																				End: ast.Position{
																					Column: 90,
																					Line:   21,
																				},
																				File:   "extrapolatedRate_norate_test.flux",
																				Source: "\"test input table does not have _measurement column\"",
																				Start: ast.Position{
																					Column: 38,
																					Line:   21,
																				},
																			},
																		},
																		Value: "test input table does not have _measurement column",
																	},
																}},
																Rbrace: nil,
																With:   nil,
															}},
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 91,
																		Line:   21,
																	},
																	File:   "extrapolatedRate_norate_test.flux",
																	Source: "die(msg: \"test input table does not have _measurement column\")",
																	Start: ast.Position{
																		Column: 29,
																		Line:   21,
																	},
																},
															},
															Callee: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 32,
																			Line:   21,
																		},
																		File:   "extrapolatedRate_norate_test.flux",
																		Source: "die",
																		Start: ast.Position{
																			Column: 29,
																			Line:   21,
																		},
																	},
																},
																Name: "die",
															},
															Lparen: nil,
															Rparen: nil,
														},
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 91,
																	Line:   21,
																},
																File:   "extrapolatedRate_norate_test.flux",
																Source: "if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\")",
																Start: ast.Position{
																	Column: 25,
																	Line:   18,
																},
															},
														},
														Consequent: &ast.MemberExpression{
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 43,
																		Line:   19,
																	},
																	File:   "extrapolatedRate_norate_test.flux",
																	Source: "r._measurement",
																	Start: ast.Position{
																		Column: 29,
																		Line:   19,
																	},
																},
															},
															Lbrack: nil,
															Object: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 30,
																			Line:   19,
																		},
																		File:   "extrapolatedRate_norate_test.flux",
																		Source: "r",
																		Start: ast.Position{
																			Column: 29,
																			Line:   19,
																		},
																	},
																},
																Name: "r",
															},
															Property: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 43,
																			Line:   19,
																		},
																		File:   "extrapolatedRate_norate_test.flux",
																		Source: "_measurement",
																		Start: ast.Position{
																			Column: 31,
																			Line:   19,
																		},
																	},
																},
																Name: "_measurement",
															},
															Rbrack: nil,
														},
														Test: &ast.UnaryExpression{
															Argument: &ast.MemberExpression{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 49,
																			Line:   18,
																		},
																		File:   "extrapolatedRate_norate_test.flux",
																		Source: "r._measurement",
																		Start: ast.Position{
																			Column: 35,
																			Line:   18,
																		},
																	},
																},
																Lbrack: nil,
																Object: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 36,
																				Line:   18,
																			},
																			File:   "extrapolatedRate_norate_test.flux",
																			Source: "r",
																			Start: ast.Position{
																				Column: 35,
																				Line:   18,
																			},
																		},
																	},
																	Name: "r",
																},
																Property: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 49,
																				Line:   18,
																			},
																			File:   "extrapolatedRate_norate_test.flux",
																			Source: "_measurement",
																			Start: ast.Position{
																				Column: 37,
																				Line:   18,
																			},
																		},
																	},
																	Name: "_measurement",
																},
																Rbrack: nil,
															},
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 49,
																		Line:   18,
																	},
																	File:   "extrapolatedRate_norate_test.flux",
																	Source: "exists r._measurement",
																	Start: ast.Position{
																		Column: 28,
																		Line:   18,
																	},
																},
															},
															Operator: 14,
														},
														Tk_else: nil,
														Tk_if:   nil,
														Tk_then: nil,
													},
												}, &ast.Property{
													BaseNode: ast.BaseNode{
														Comments: nil,
														Errors:   nil,
														Loc: &ast.SourceLocation{
															End: ast.Position{
																Column: 119,
																Line:   22,
															},
															File:   "extrapolatedRate_norate_test.flux",
															Source: "_time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\")",
															Start: ast.Position{
																Column: 21,
																Line:   22,
															},
														},
													},
													Comma: nil,
													Key: &ast.Identifier{
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 26,
																	Line:   22,
																},
																File:   "extrapolatedRate_norate_test.flux",
																Source: "_time",
																Start: ast.Position{
																	Column: 21,
																	Line:   22,
																},
															},
														},
														Name: "_time",
													},
													Separator: nil,
													Value: &ast.ConditionalExpression{
														Alternate: &ast.CallExpression{
															Arguments: []ast.Expression{&ast.ObjectExpression{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 118,
																			Line:   22,
																		},
																		File:   "extrapolatedRate_norate_test.flux",
																		Source: "msg: \"test input table does not have _time column\"",
																		Start: ast.Position{
																			Column: 68,
																			Line:   22,
																		},
																	},
																},
																Lbrace: nil,
																Properties: []*ast.Property{&ast.Property{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 118,
																				Line:   22,
																			},
																			File:   "extrapolatedRate_norate_test.flux",
																			Source: "msg: \"test input table does not have _time column\"",
																			Start: ast.Position{
																				Column: 68,
																				Line:   22,
																			},
																		},
																	},
																	Comma: nil,
																	Key: &ast.Identifier{
																		BaseNode: ast.BaseNode{
																			Comments: nil,
																			Errors:   nil,
																			Loc: &ast.SourceLocation{
																				End: ast.Position{
																					Column: 71,
																					Line:   22,
																				},
																				File:   "extrapolatedRate_norate_test.flux",
																				Source: "msg",
																				Start: ast.Position{
																					Column: 68,
																					Line:   22,
																				},
																			},
																		},
																		Name: "msg",
																	},
																	Separator: nil,
																	Value: &ast.StringLiteral{
																		BaseNode: ast.BaseNode{
																			Comments: nil,
																			Errors:   nil,
																			Loc: &ast.SourceLocation{
																				End: ast.Position{
																					Column: 118,
																					Line:   22,
																				},
																				File:   "extrapolatedRate_norate_test.flux",
																				Source: "\"test input table does not have _time column\"",
																				Start: ast.Position{
																					Column: 73,
																					Line:   22,
																				},
																			},
																		},
																		Value: "test input table does not have _time column",
																	},
																}},
																Rbrace: nil,
																With:   nil,
															}},
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 119,
																		Line:   22,
																	},
																	File:   "extrapolatedRate_norate_test.flux",
																	Source: "die(msg: \"test input table does not have _time column\")",
																	Start: ast.Position{
																		Column: 64,
																		Line:   22,
																	},
																},
															},
															Callee: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 67,
																			Line:   22,
																		},
																		File:   "extrapolatedRate_norate_test.flux",
																		Source: "die",
																		Start: ast.Position{
																			Column: 64,
																			Line:   22,
																		},
																	},
																},
																Name: "die",
															},
															Lparen: nil,
															Rparen: nil,
														},
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 119,
																	Line:   22,
																},
																File:   "extrapolatedRate_norate_test.flux",
																Source: "if exists r._time then r._time else die(msg: \"test input table does not have _time column\")",
																Start: ast.Position{
																	Column: 28,
																	Line:   22,
																},
															},
														},
														Consequent: &ast.MemberExpression{
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 58,
																		Line:   22,
																	},
																	File:   "extrapolatedRate_norate_test.flux",
																	Source: "r._time",
																	Start: ast.Position{
																		Column: 51,
																		Line:   22,
																	},
																},
															},
															Lbrack: nil,
															Object: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 52,
																			Line:   22,
																		},
																		File:   "extrapolatedRate_norate_test.flux",
																		Source: "r",
																		Start: ast.Position{
																			Column: 51,
																			Line:   22,
																		},
																	},
																},
																Name: "r",
															},
															Property: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 58,
																			Line:   22,
																		},
																		File:   "extrapolatedRate_norate_test.flux",
																		Source: "_time",
																		Start: ast.Position{
																			Column: 53,
																			Line:   22,
																		},
																	},
																},
																Name: "_time",
															},
															Rbrack: nil,
														},
														Test: &ast.UnaryExpression{
															Argument: &ast.MemberExpression{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 45,
																			Line:   22,
																		},
																		File:   "extrapolatedRate_norate_test.flux",
																		Source: "r._time",
																		Start: ast.Position{
																			Column: 38,
																			Line:   22,
																		},
																	},
																},
																Lbrack: nil,
																Object: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 39,
																				Line:   22,
																			},
																			File:   "extrapolatedRate_norate_test.flux",
																			Source: "r",
																			Start: ast.Position{
																				Column: 38,
																				Line:   22,
																			},
																		},
																	},
																	Name: "r",
																},
																Property: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 45,
																				Line:   22,
																			},
																			File:   "extrapolatedRate_norate_test.flux",
																			Source: "_time",
																			Start: ast.Position{
																				Column: 40,
																				Line:   22,
																			},
																		},
																	},
																	Name: "_time",
																},
																Rbrack: nil,
															},
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 45,
																		Line:   22,
																	},
																	File:   "extrapolatedRate_norate_test.flux",
																	Source: "exists r._time",
																	Start: ast.Position{
																		Column: 31,
																		Line:   22,
																	},
																},
															},
															Operator: 14,
														},
														Tk_else: nil,
														Tk_if:   nil,
														Tk_then: nil,
													},
												}},
												Rbrace: nil,
												With: &ast.Identifier{
													BaseNode: ast.BaseNode{
														Comments: nil,
														Errors:   nil,
														Loc: &ast.SourceLocation{
															End: ast.Position{
																Column: 20,
																Line:   15,
															},
															File:   "extrapolatedRate_norate_test.flux",
															Source: "r",
															Start: ast.Position{
																Column: 19,
																Line:   15,
															},
														},
													},
													Name: "r",
												},
											},
											Lparen: nil,
											Rparen: nil,
										},
										Lparen: nil,
										Params: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 19,
														Line:   14,
													},
													File:   "extrapolatedRate_norate_test.flux",
													Source: "r",
													Start: ast.Position{
														Column: 18,
														Line:   14,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 19,
															Line:   14,
														},
														File:   "extrapolatedRate_norate_test.flux",
														Source: "r",
														Start: ast.Position{
															Column: 18,
															Line:   14,
														},
													},
												},
												Name: "r",
											},
											Separator: nil,
											Value:     nil,
										}},
										Rparan: nil,
									},
								}},
								Rbrace: nil,
								With:   nil,
							}},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 10,
										Line:   24,
									},
									File:   "extrapolatedRate_norate_test.flux",
									Source: "map(\n            fn: (r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                }),\n        )",
									Start: ast.Position{
										Column: 12,
										Line:   13,
									},
								},
							},
							Callee: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 15,
											Line:   13,
										},
										File:   "extrapolatedRate_norate_test.flux",
										Source: "map",
										Start: ast.Position{
											Column: 12,
											Line:   13,
										},
									},
								},
								Name: "map",
							},
							Lparen: nil,
							Rparen: nil,
						},
					},
					Lparen: nil,
					Params: []*ast.Property{&ast.Property{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 34,
									Line:   11,
								},
								File:   "extrapolatedRate_norate_test.flux",
								Source: "csv",
								Start: ast.Position{
									Column: 31,
									Line:   11,
								},
							},
						},
						Comma: nil,
						Key: &ast.Identifier{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 34,
										Line:   11,
									},
									File:   "extrapolatedRate_norate_test.flux",
									Source: "csv",
									Start: ast.Position{
										Column: 31,
										Line:   11,
									},
								},
							},
							Name: "csv",
						},
						Separator: nil,
						Value:     nil,
					}},
					Rparan: nil,
				},
				Member: &ast.MemberExpression{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 27,
								Line:   11,
							},
							File:   "extrapolatedRate_norate_test.flux",
							Source: "testing.loadStorage",
							Start: ast.Position{
								Column: 8,
								Line:   11,
							},
						},
					},
					Lbrack: nil,
					Object: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 15,
									Line:   11,
								},
								File:   "extrapolatedRate_norate_test.flux",
								Source: "testing",
								Start: ast.Position{
									Column: 8,
									Line:   11,
								},
							},
						},
						Name: "testing",
					},
					Property: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 27,
									Line:   11,
								},
								File:   "extrapolatedRate_norate_test.flux",
								Source: "loadStorage",
								Start: ast.Position{
									Column: 16,
									Line:   11,
								},
							},
						},
						Name: "loadStorage",
					},
					Rbrack: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: []ast.Comment{ast.Comment{Text: "// todo(faith): remove overload https://github.com/influxdata/flux/issues/3155\n"}},
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 10,
						Line:   24,
					},
					File:   "extrapolatedRate_norate_test.flux",
					Source: "option testing.loadStorage = (csv) =>\n    c.from(csv: csv)\n        |> map(\n            fn: (r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                }),\n        )",
					Start: ast.Position{
						Column: 1,
						Line:   11,
					},
				},
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   50,
					},
					File:   "extrapolatedRate_norate_test.flux",
					Source: "inData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,100,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,100,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,400,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   26,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 7,
							Line:   26,
						},
						File:   "extrapolatedRate_norate_test.flux",
						Source: "inData",
						Start: ast.Position{
							Column: 1,
							Line:   26,
						},
					},
				},
				Name: "inData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   50,
						},
						File:   "extrapolatedRate_norate_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,100,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,100,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,400,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   27,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,100,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,100,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,400,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   60,
					},
					File:   "extrapolatedRate_norate_test.flux",
					Source: "outData =\n    \"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name1,0,prometheus\n,,1,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name2,109.89999999999999,prometheus\n,,2,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name3,760,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   51,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 8,
							Line:   51,
						},
						File:   "extrapolatedRate_norate_test.flux",
						Source: "outData",
						Start: ast.Position{
							Column: 1,
							Line:   51,
						},
					},
				},
				Name: "outData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   60,
						},
						File:   "extrapolatedRate_norate_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name1,0,prometheus\n,,1,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name2,109.89999999999999,prometheus\n,,2,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name3,760,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   52,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name1,0,prometheus\n,,1,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name2,109.89999999999999,prometheus\n,,2,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name3,760,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 67,
						Line:   64,
					},
					File:   "extrapolatedRate_norate_test.flux",
					Source: "t_extrapolatedRate = (table=<-) =>\n    table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)\n        |> promql.extrapolatedRate(isCounter: true, isRate: false)",
					Start: ast.Position{
						Column: 1,
						Line:   61,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 19,
							Line:   61,
						},
						File:   "extrapolatedRate_norate_test.flux",
						Source: "t_extrapolatedRate",
						Start: ast.Position{
							Column: 1,
							Line:   61,
						},
					},
				},
				Name: "t_extrapolatedRate",
			},
			Init: &ast.FunctionExpression{
				Arrow: nil,
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 67,
							Line:   64,
						},
						File:   "extrapolatedRate_norate_test.flux",
						Source: "(table=<-) =>\n    table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)\n        |> promql.extrapolatedRate(isCounter: true, isRate: false)",
						Start: ast.Position{
							Column: 22,
							Line:   61,
						},
					},
				},
				Body: &ast.PipeExpression{
					Argument: &ast.PipeExpression{
						Argument: &ast.Identifier{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 10,
										Line:   62,
									},
									File:   "extrapolatedRate_norate_test.flux",
									Source: "table",
									Start: ast.Position{
										Column: 5,
										Line:   62,
									},
								},
							},
							Name: "table",
						},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 74,
									Line:   63,
								},
								File:   "extrapolatedRate_norate_test.flux",
								Source: "table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)",
								Start: ast.Position{
									Column: 5,
									Line:   62,
								},
							},
						},
						Call: &ast.CallExpression{
							Arguments: []ast.Expression{&ast.ObjectExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 73,
											Line:   63,
										},
										File:   "extrapolatedRate_norate_test.flux",
										Source: "start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z",
										Start: ast.Position{
											Column: 18,
											Line:   63,
										},
									},
								},
								Lbrace: nil,
								Properties: []*ast.Property{&ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   63,
											},
											File:   "extrapolatedRate_norate_test.flux",
											Source: "start: 2018-12-18T20:50:00Z",
											Start: ast.Position{
												Column: 18,
												Line:   63,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 23,
													Line:   63,
												},
												File:   "extrapolatedRate_norate_test.flux",
												Source: "start",
												Start: ast.Position{
													Column: 18,
													Line:   63,
												},
											},
										},
										Name: "start",
									},
									Separator: nil,
									Value: &ast.DateTimeLiteral{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   63,
												},
												File:   "extrapolatedRate_norate_test.flux",
												Source: "2018-12-18T20:50:00Z",
												Start: ast.Position{
													Column: 25,
													Line:   63,
												},
											},
										},
										Value: parser.MustParseTime("2018-12-18T20:50:00Z"),
									},
								}, &ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 73,
												Line:   63,
											},
											File:   "extrapolatedRate_norate_test.flux",
											Source: "stop: 2018-12-18T20:55:00Z",
											Start: ast.Position{
												Column: 47,
												Line:   63,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 51,
													Line:   63,
												},
												File:   "extrapolatedRate_norate_test.flux",
												Source: "stop",
												Start: ast.Position{
													Column: 47,
													Line:   63,
												},
											},
										},
										Name: "stop",
									},
									Separator: nil,
									Value: &ast.DateTimeLiteral{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 73,
													Line:   63,
												},
												File:   "extrapolatedRate_norate_test.flux",
												Source: "2018-12-18T20:55:00Z",
												Start: ast.Position{
													Column: 53,
													Line:   63,
												},
											},
										},
										Value: parser.MustParseTime("2018-12-18T20:55:00Z"),
									},
								}},
								Rbrace: nil,
								With:   nil,
							}},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 74,
										Line:   63,
									},
									File:   "extrapolatedRate_norate_test.flux",
									Source: "range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)",
									Start: ast.Position{
										Column: 12,
										Line:   63,
									},
								},
							},
							Callee: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 17,
											Line:   63,
										},
										File:   "extrapolatedRate_norate_test.flux",
										Source: "range",
										Start: ast.Position{
											Column: 12,
											Line:   63,
										},
									},
								},
								Name: "range",
							},
							Lparen: nil,
							Rparen: nil,
						},
					},
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 67,
								Line:   64,
							},
							File:   "extrapolatedRate_norate_test.flux",
							Source: "table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)\n        |> promql.extrapolatedRate(isCounter: true, isRate: false)",
							Start: ast.Position{
								Column: 5,
								Line:   62,
							},
						},
					},
					Call: &ast.CallExpression{
						Arguments: []ast.Expression{&ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 66,
										Line:   64,
									},
									File:   "extrapolatedRate_norate_test.flux",
									Source: "isCounter: true, isRate: false",
									Start: ast.Position{
										Column: 36,
										Line:   64,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 51,
											Line:   64,
										},
										File:   "extrapolatedRate_norate_test.flux",
										Source: "isCounter: true",
										Start: ast.Position{
											Column: 36,
											Line:   64,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   64,
											},
											File:   "extrapolatedRate_norate_test.flux",
											Source: "isCounter",
											Start: ast.Position{
												Column: 36,
												Line:   64,
											},
										},
									},
									Name: "isCounter",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 51,
												Line:   64,
											},
											File:   "extrapolatedRate_norate_test.flux",
											Source: "true",
											Start: ast.Position{
												Column: 47,
												Line:   64,
											},
										},
									},
									Name: "true",
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 66,
											Line:   64,
										},
										File:   "extrapolatedRate_norate_test.flux",
										Source: "isRate: false",
										Start: ast.Position{
											Column: 53,
											Line:   64,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 59,
												Line:   64,
											},
											File:   "extrapolatedRate_norate_test.flux",
											Source: "isRate",
											Start: ast.Position{
												Column: 53,
												Line:   64,
											},
										},
									},
									Name: "isRate",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 66,
												Line:   64,
											},
											File:   "extrapolatedRate_norate_test.flux",
											Source: "false",
											Start: ast.Position{
												Column: 61,
												Line:   64,
											},
										},
									},
									Name: "false",
								},
							}},
							Rbrace: nil,
							With:   nil,
						}},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 67,
									Line:   64,
								},
								File:   "extrapolatedRate_norate_test.flux",
								Source: "promql.extrapolatedRate(isCounter: true, isRate: false)",
								Start: ast.Position{
									Column: 12,
									Line:   64,
								},
							},
						},
						Callee: &ast.MemberExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 35,
										Line:   64,
									},
									File:   "extrapolatedRate_norate_test.flux",
									Source: "promql.extrapolatedRate",
									Start: ast.Position{
										Column: 12,
										Line:   64,
									},
								},
							},
							Lbrack: nil,
							Object: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 18,
											Line:   64,
										},
										File:   "extrapolatedRate_norate_test.flux",
										Source: "promql",
										Start: ast.Position{
											Column: 12,
											Line:   64,
										},
									},
								},
								Name: "promql",
							},
							Property: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 35,
											Line:   64,
										},
										File:   "extrapolatedRate_norate_test.flux",
										Source: "extrapolatedRate",
										Start: ast.Position{
											Column: 19,
											Line:   64,
										},
									},
								},
								Name: "extrapolatedRate",
							},
							Rbrack: nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
				},
				Lparen: nil,
				Params: []*ast.Property{&ast.Property{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 31,
								Line:   61,
							},
							File:   "extrapolatedRate_norate_test.flux",
							Source: "table=<-",
							Start: ast.Position{
								Column: 23,
								Line:   61,
							},
						},
					},
					Comma: nil,
					Key: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 28,
									Line:   61,
								},
								File:   "extrapolatedRate_norate_test.flux",
								Source: "table",
								Start: ast.Position{
									Column: 23,
									Line:   61,
								},
							},
						},
						Name: "table",
					},
					Separator: nil,
					Value: &ast.PipeLiteral{BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 31,
								Line:   61,
							},
							File:   "extrapolatedRate_norate_test.flux",
							Source: "<-",
							Start: ast.Position{
								Column: 29,
								Line:   61,
							},
						},
					}},
				}},
				Rparan: nil,
			},
		}, &ast.TestStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 109,
							Line:   67,
						},
						File:   "extrapolatedRate_norate_test.flux",
						Source: "_extrapolatedRate = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_extrapolatedRate})",
						Start: ast.Position{
							Column: 6,
							Line:   66,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 23,
								Line:   66,
							},
							File:   "extrapolatedRate_norate_test.flux",
							Source: "_extrapolatedRate",
							Start: ast.Position{
								Column: 6,
								Line:   66,
							},
						},
					},
					Name: "_extrapolatedRate",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 109,
								Line:   67,
							},
							File:   "extrapolatedRate_norate_test.flux",
							Source: "() =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_extrapolatedRate})",
							Start: ast.Position{
								Column: 26,
								Line:   66,
							},
						},
					},
					Body: &ast.ParenExpression{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 109,
									Line:   67,
								},
								File:   "extrapolatedRate_norate_test.flux",
								Source: "({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_extrapolatedRate})",
								Start: ast.Position{
									Column: 5,
									Line:   67,
								},
							},
						},
						Expression: &ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 108,
										Line:   67,
									},
									File:   "extrapolatedRate_norate_test.flux",
									Source: "{input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_extrapolatedRate}",
									Start: ast.Position{
										Column: 6,
										Line:   67,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   67,
										},
										File:   "extrapolatedRate_norate_test.flux",
										Source: "input: testing.loadStorage(csv: inData)",
										Start: ast.Position{
											Column: 7,
											Line:   67,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 12,
												Line:   67,
											},
											File:   "extrapolatedRate_norate_test.flux",
											Source: "input",
											Start: ast.Position{
												Column: 7,
												Line:   67,
											},
										},
									},
									Name: "input",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   67,
												},
												File:   "extrapolatedRate_norate_test.flux",
												Source: "csv: inData",
												Start: ast.Position{
													Column: 34,
													Line:   67,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   67,
													},
													File:   "extrapolatedRate_norate_test.flux",
													Source: "csv: inData",
													Start: ast.Position{
														Column: 34,
														Line:   67,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 37,
															Line:   67,
														},
														File:   "extrapolatedRate_norate_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 34,
															Line:   67,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 45,
															Line:   67,
														},
														File:   "extrapolatedRate_norate_test.flux",
														Source: "inData",
														Start: ast.Position{
															Column: 39,
															Line:   67,
														},
													},
												},
												Name: "inData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 46,
												Line:   67,
											},
											File:   "extrapolatedRate_norate_test.flux",
											Source: "testing.loadStorage(csv: inData)",
											Start: ast.Position{
												Column: 14,
												Line:   67,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 33,
													Line:   67,
												},
												File:   "extrapolatedRate_norate_test.flux",
												Source: "testing.loadStorage",
												Start: ast.Position{
													Column: 14,
													Line:   67,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 21,
														Line:   67,
													},
													File:   "extrapolatedRate_norate_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 14,
														Line:   67,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 33,
														Line:   67,
													},
													File:   "extrapolatedRate_norate_test.flux",
													Source: "loadStorage",
													Start: ast.Position{
														Column: 22,
														Line:   67,
													},
												},
											},
											Name: "loadStorage",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 83,
											Line:   67,
										},
										File:   "extrapolatedRate_norate_test.flux",
										Source: "want: testing.loadMem(csv: outData)",
										Start: ast.Position{
											Column: 48,
											Line:   67,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 52,
												Line:   67,
											},
											File:   "extrapolatedRate_norate_test.flux",
											Source: "want",
											Start: ast.Position{
												Column: 48,
												Line:   67,
											},
										},
									},
									Name: "want",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 82,
													Line:   67,
												},
												File:   "extrapolatedRate_norate_test.flux",
												Source: "csv: outData",
												Start: ast.Position{
													Column: 70,
													Line:   67,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 82,
														Line:   67,
													},
													File:   "extrapolatedRate_norate_test.flux",
													Source: "csv: outData",
													Start: ast.Position{
														Column: 70,
														Line:   67,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 73,
															Line:   67,
														},
														File:   "extrapolatedRate_norate_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 70,
															Line:   67,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 82,
															Line:   67,
														},
														File:   "extrapolatedRate_norate_test.flux",
														Source: "outData",
														Start: ast.Position{
															Column: 75,
															Line:   67,
														},
													},
												},
												Name: "outData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 83,
												Line:   67,
											},
											File:   "extrapolatedRate_norate_test.flux",
											Source: "testing.loadMem(csv: outData)",
											Start: ast.Position{
												Column: 54,
												Line:   67,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 69,
													Line:   67,
												},
												File:   "extrapolatedRate_norate_test.flux",
												Source: "testing.loadMem",
												Start: ast.Position{
													Column: 54,
													Line:   67,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 61,
														Line:   67,
													},
													File:   "extrapolatedRate_norate_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 54,
														Line:   67,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 69,
														Line:   67,
													},
													File:   "extrapolatedRate_norate_test.flux",
													Source: "loadMem",
													Start: ast.Position{
														Column: 62,
														Line:   67,
													},
												},
											},
											Name: "loadMem",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 107,
											Line:   67,
										},
										File:   "extrapolatedRate_norate_test.flux",
										Source: "fn: t_extrapolatedRate",
										Start: ast.Position{
											Column: 85,
											Line:   67,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 87,
												Line:   67,
											},
											File:   "extrapolatedRate_norate_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 85,
												Line:   67,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 107,
												Line:   67,
											},
											File:   "extrapolatedRate_norate_test.flux",
											Source: "t_extrapolatedRate",
											Start: ast.Position{
												Column: 89,
												Line:   67,
											},
										},
									},
									Name: "t_extrapolatedRate",
								},
							}},
							Rbrace: nil,
							With:   nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 109,
						Line:   67,
					},
					File:   "extrapolatedRate_norate_test.flux",
					Source: "test _extrapolatedRate = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_extrapolatedRate})",
					Start: ast.Position{
						Column: 1,
						Line:   66,
					},
				},
			},
		}},
		Eof: nil,
		Imports: []*ast.ImportDeclaration{&ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 17,
						Line:   4,
					},
					File:   "extrapolatedRate_norate_test.flux",
					Source: "import \"testing\"",
					Start: ast.Position{
						Column: 1,
						Line:   4,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 17,
							Line:   4,
						},
						File:   "extrapolatedRate_norate_test.flux",
						Source: "\"testing\"",
						Start: ast.Position{
							Column: 8,
							Line:   4,
						},
					},
				},
				Value: "testing",
			},
		}, &ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 25,
						Line:   5,
					},
					File:   "extrapolatedRate_norate_test.flux",
					Source: "import \"internal/promql\"",
					Start: ast.Position{
						Column: 1,
						Line:   5,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 25,
							Line:   5,
						},
						File:   "extrapolatedRate_norate_test.flux",
						Source: "\"internal/promql\"",
						Start: ast.Position{
							Column: 8,
							Line:   5,
						},
					},
				},
				Value: "internal/promql",
			},
		}, &ast.ImportDeclaration{
			As: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 9,
							Line:   6,
						},
						File:   "extrapolatedRate_norate_test.flux",
						Source: "c",
						Start: ast.Position{
							Column: 8,
							Line:   6,
						},
					},
				},
				Name: "c",
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 15,
						Line:   6,
					},
					File:   "extrapolatedRate_norate_test.flux",
					Source: "import c \"csv\"",
					Start: ast.Position{
						Column: 1,
						Line:   6,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 15,
							Line:   6,
						},
						File:   "extrapolatedRate_norate_test.flux",
						Source: "\"csv\"",
						Start: ast.Position{
							Column: 10,
							Line:   6,
						},
					},
				},
				Value: "csv",
			},
		}},
		Metadata: "parser-type=rust",
		Name:     "extrapolatedRate_norate_test.flux",
		Package: &ast.PackageClause{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 20,
						Line:   1,
					},
					File:   "extrapolatedRate_norate_test.flux",
					Source: "package promql_test",
					Start: ast.Position{
						Column: 1,
						Line:   1,
					},
				},
			},
			Name: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 20,
							Line:   1,
						},
						File:   "extrapolatedRate_norate_test.flux",
						Source: "promql_test",
						Start: ast.Position{
							Column: 9,
							Line:   1,
						},
					},
				},
				Name: "promql_test",
			},
		},
	}, &ast.File{
		BaseNode: ast.BaseNode{
			Comments: nil,
			Errors:   nil,
			Loc: &ast.SourceLocation{
				End: ast.Position{
					Column: 111,
					Line:   48,
				},
				File:   "histogramQuantile_test.flux",
				Source: "package promql_test\n\n\nimport \"experimental\"\nimport \"internal/promql\"\nimport \"testing\"\n\noption now = () => 2030-01-01T00:00:00Z\n\ninData =\n    \"#datatype,string,long,dateTime:RFC3339,string,double,string,string\n#group,false,false,false,true,false,true,true\n#default,inData,,,,,,\n,result,table,_time,_field,_value,le,_measurement\n,,0,2018-05-22T19:53:00Z,x_duration_seconds,1,0.1,prometheus\n,,1,2018-05-22T19:53:00Z,x_duration_seconds,2,0.2,prometheus\n,,2,2018-05-22T19:53:00Z,x_duration_seconds,2,0.3,prometheus\n,,3,2018-05-22T19:53:00Z,x_duration_seconds,2,0.4,prometheus\n,,4,2018-05-22T19:53:00Z,x_duration_seconds,2,0.5,prometheus\n,,5,2018-05-22T19:53:00Z,x_duration_seconds,2,0.6,prometheus\n,,6,2018-05-22T19:53:00Z,x_duration_seconds,2,0.7,prometheus\n,,7,2018-05-22T19:53:00Z,x_duration_seconds,8,0.8,prometheus\n,,8,2018-05-22T19:53:00Z,x_duration_seconds,10,0.9,prometheus\n,,9,2018-05-22T19:53:00Z,x_duration_seconds,10,+Inf,prometheus\n,,10,2018-05-22T19:53:00Z,y_duration_seconds,10,0.2,prometheus\n,,11,2018-05-22T19:53:00Z,y_duration_seconds,15,0.4,prometheus\n,,12,2018-05-22T19:53:00Z,y_duration_seconds,25,0.6,prometheus\n,,13,2018-05-22T19:53:00Z,y_duration_seconds,35,0.8,prometheus\n,,14,2018-05-22T19:53:00Z,y_duration_seconds,45,1,prometheus\n,,15,2018-05-22T19:53:00Z,y_duration_seconds,45,+Inf,prometheus\n\"\noutData =\n    \"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,string,double\n#group,false,false,true,true,true,true,false\n#default,_result,,,,,,\n,result,table,_start,_stop,_field,_measurement,_value\n,,0,2018-05-22T19:53:00Z,2030-01-01T00:00:00Z,x_duration_seconds,prometheus,0.8500000000000001\n,,1,2018-05-22T19:53:00Z,2030-01-01T00:00:00Z,y_duration_seconds,prometheus,0.91\n\"\nt_histogram_quantile = (table=<-) =>\n    table\n        |> range(start: 2018-05-22T19:53:00Z)\n        |> group(mode: \"except\", columns: [\"le\", \"_time\", \"_value\"])\n        |> promql.promHistogramQuantile(quantile: 0.9)\n\ntest _histogram_quantile = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_histogram_quantile})",
				Start: ast.Position{
					Column: 1,
					Line:   1,
				},
			},
		},
		Body: []ast.Statement{&ast.OptionStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 40,
							Line:   8,
						},
						File:   "histogramQuantile_test.flux",
						Source: "now = () => 2030-01-01T00:00:00Z",
						Start: ast.Position{
							Column: 8,
							Line:   8,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 11,
								Line:   8,
							},
							File:   "histogramQuantile_test.flux",
							Source: "now",
							Start: ast.Position{
								Column: 8,
								Line:   8,
							},
						},
					},
					Name: "now",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 40,
								Line:   8,
							},
							File:   "histogramQuantile_test.flux",
							Source: "() => 2030-01-01T00:00:00Z",
							Start: ast.Position{
								Column: 14,
								Line:   8,
							},
						},
					},
					Body: &ast.DateTimeLiteral{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 40,
									Line:   8,
								},
								File:   "histogramQuantile_test.flux",
								Source: "2030-01-01T00:00:00Z",
								Start: ast.Position{
									Column: 20,
									Line:   8,
								},
							},
						},
						Value: parser.MustParseTime("2030-01-01T00:00:00Z"),
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 40,
						Line:   8,
					},
					File:   "histogramQuantile_test.flux",
					Source: "option now = () => 2030-01-01T00:00:00Z",
					Start: ast.Position{
						Column: 1,
						Line:   8,
					},
				},
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   31,
					},
					File:   "histogramQuantile_test.flux",
					Source: "inData =\n    \"#datatype,string,long,dateTime:RFC3339,string,double,string,string\n#group,false,false,false,true,false,true,true\n#default,inData,,,,,,\n,result,table,_time,_field,_value,le,_measurement\n,,0,2018-05-22T19:53:00Z,x_duration_seconds,1,0.1,prometheus\n,,1,2018-05-22T19:53:00Z,x_duration_seconds,2,0.2,prometheus\n,,2,2018-05-22T19:53:00Z,x_duration_seconds,2,0.3,prometheus\n,,3,2018-05-22T19:53:00Z,x_duration_seconds,2,0.4,prometheus\n,,4,2018-05-22T19:53:00Z,x_duration_seconds,2,0.5,prometheus\n,,5,2018-05-22T19:53:00Z,x_duration_seconds,2,0.6,prometheus\n,,6,2018-05-22T19:53:00Z,x_duration_seconds,2,0.7,prometheus\n,,7,2018-05-22T19:53:00Z,x_duration_seconds,8,0.8,prometheus\n,,8,2018-05-22T19:53:00Z,x_duration_seconds,10,0.9,prometheus\n,,9,2018-05-22T19:53:00Z,x_duration_seconds,10,+Inf,prometheus\n,,10,2018-05-22T19:53:00Z,y_duration_seconds,10,0.2,prometheus\n,,11,2018-05-22T19:53:00Z,y_duration_seconds,15,0.4,prometheus\n,,12,2018-05-22T19:53:00Z,y_duration_seconds,25,0.6,prometheus\n,,13,2018-05-22T19:53:00Z,y_duration_seconds,35,0.8,prometheus\n,,14,2018-05-22T19:53:00Z,y_duration_seconds,45,1,prometheus\n,,15,2018-05-22T19:53:00Z,y_duration_seconds,45,+Inf,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   10,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 7,
							Line:   10,
						},
						File:   "histogramQuantile_test.flux",
						Source: "inData",
						Start: ast.Position{
							Column: 1,
							Line:   10,
						},
					},
				},
				Name: "inData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   31,
						},
						File:   "histogramQuantile_test.flux",
						Source: "\"#datatype,string,long,dateTime:RFC3339,string,double,string,string\n#group,false,false,false,true,false,true,true\n#default,inData,,,,,,\n,result,table,_time,_field,_value,le,_measurement\n,,0,2018-05-22T19:53:00Z,x_duration_seconds,1,0.1,prometheus\n,,1,2018-05-22T19:53:00Z,x_duration_seconds,2,0.2,prometheus\n,,2,2018-05-22T19:53:00Z,x_duration_seconds,2,0.3,prometheus\n,,3,2018-05-22T19:53:00Z,x_duration_seconds,2,0.4,prometheus\n,,4,2018-05-22T19:53:00Z,x_duration_seconds,2,0.5,prometheus\n,,5,2018-05-22T19:53:00Z,x_duration_seconds,2,0.6,prometheus\n,,6,2018-05-22T19:53:00Z,x_duration_seconds,2,0.7,prometheus\n,,7,2018-05-22T19:53:00Z,x_duration_seconds,8,0.8,prometheus\n,,8,2018-05-22T19:53:00Z,x_duration_seconds,10,0.9,prometheus\n,,9,2018-05-22T19:53:00Z,x_duration_seconds,10,+Inf,prometheus\n,,10,2018-05-22T19:53:00Z,y_duration_seconds,10,0.2,prometheus\n,,11,2018-05-22T19:53:00Z,y_duration_seconds,15,0.4,prometheus\n,,12,2018-05-22T19:53:00Z,y_duration_seconds,25,0.6,prometheus\n,,13,2018-05-22T19:53:00Z,y_duration_seconds,35,0.8,prometheus\n,,14,2018-05-22T19:53:00Z,y_duration_seconds,45,1,prometheus\n,,15,2018-05-22T19:53:00Z,y_duration_seconds,45,+Inf,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   11,
						},
					},
				},
				Value: "#datatype,string,long,dateTime:RFC3339,string,double,string,string\n#group,false,false,false,true,false,true,true\n#default,inData,,,,,,\n,result,table,_time,_field,_value,le,_measurement\n,,0,2018-05-22T19:53:00Z,x_duration_seconds,1,0.1,prometheus\n,,1,2018-05-22T19:53:00Z,x_duration_seconds,2,0.2,prometheus\n,,2,2018-05-22T19:53:00Z,x_duration_seconds,2,0.3,prometheus\n,,3,2018-05-22T19:53:00Z,x_duration_seconds,2,0.4,prometheus\n,,4,2018-05-22T19:53:00Z,x_duration_seconds,2,0.5,prometheus\n,,5,2018-05-22T19:53:00Z,x_duration_seconds,2,0.6,prometheus\n,,6,2018-05-22T19:53:00Z,x_duration_seconds,2,0.7,prometheus\n,,7,2018-05-22T19:53:00Z,x_duration_seconds,8,0.8,prometheus\n,,8,2018-05-22T19:53:00Z,x_duration_seconds,10,0.9,prometheus\n,,9,2018-05-22T19:53:00Z,x_duration_seconds,10,+Inf,prometheus\n,,10,2018-05-22T19:53:00Z,y_duration_seconds,10,0.2,prometheus\n,,11,2018-05-22T19:53:00Z,y_duration_seconds,15,0.4,prometheus\n,,12,2018-05-22T19:53:00Z,y_duration_seconds,25,0.6,prometheus\n,,13,2018-05-22T19:53:00Z,y_duration_seconds,35,0.8,prometheus\n,,14,2018-05-22T19:53:00Z,y_duration_seconds,45,1,prometheus\n,,15,2018-05-22T19:53:00Z,y_duration_seconds,45,+Inf,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   40,
					},
					File:   "histogramQuantile_test.flux",
					Source: "outData =\n    \"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,string,double\n#group,false,false,true,true,true,true,false\n#default,_result,,,,,,\n,result,table,_start,_stop,_field,_measurement,_value\n,,0,2018-05-22T19:53:00Z,2030-01-01T00:00:00Z,x_duration_seconds,prometheus,0.8500000000000001\n,,1,2018-05-22T19:53:00Z,2030-01-01T00:00:00Z,y_duration_seconds,prometheus,0.91\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   32,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 8,
							Line:   32,
						},
						File:   "histogramQuantile_test.flux",
						Source: "outData",
						Start: ast.Position{
							Column: 1,
							Line:   32,
						},
					},
				},
				Name: "outData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   40,
						},
						File:   "histogramQuantile_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,string,double\n#group,false,false,true,true,true,true,false\n#default,_result,,,,,,\n,result,table,_start,_stop,_field,_measurement,_value\n,,0,2018-05-22T19:53:00Z,2030-01-01T00:00:00Z,x_duration_seconds,prometheus,0.8500000000000001\n,,1,2018-05-22T19:53:00Z,2030-01-01T00:00:00Z,y_duration_seconds,prometheus,0.91\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   33,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,string,double\n#group,false,false,true,true,true,true,false\n#default,_result,,,,,,\n,result,table,_start,_stop,_field,_measurement,_value\n,,0,2018-05-22T19:53:00Z,2030-01-01T00:00:00Z,x_duration_seconds,prometheus,0.8500000000000001\n,,1,2018-05-22T19:53:00Z,2030-01-01T00:00:00Z,y_duration_seconds,prometheus,0.91\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 55,
						Line:   45,
					},
					File:   "histogramQuantile_test.flux",
					Source: "t_histogram_quantile = (table=<-) =>\n    table\n        |> range(start: 2018-05-22T19:53:00Z)\n        |> group(mode: \"except\", columns: [\"le\", \"_time\", \"_value\"])\n        |> promql.promHistogramQuantile(quantile: 0.9)",
					Start: ast.Position{
						Column: 1,
						Line:   41,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 21,
							Line:   41,
						},
						File:   "histogramQuantile_test.flux",
						Source: "t_histogram_quantile",
						Start: ast.Position{
							Column: 1,
							Line:   41,
						},
					},
				},
				Name: "t_histogram_quantile",
			},
			Init: &ast.FunctionExpression{
				Arrow: nil,
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 55,
							Line:   45,
						},
						File:   "histogramQuantile_test.flux",
						Source: "(table=<-) =>\n    table\n        |> range(start: 2018-05-22T19:53:00Z)\n        |> group(mode: \"except\", columns: [\"le\", \"_time\", \"_value\"])\n        |> promql.promHistogramQuantile(quantile: 0.9)",
						Start: ast.Position{
							Column: 24,
							Line:   41,
						},
					},
				},
				Body: &ast.PipeExpression{
					Argument: &ast.PipeExpression{
						Argument: &ast.PipeExpression{
							Argument: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 10,
											Line:   42,
										},
										File:   "histogramQuantile_test.flux",
										Source: "table",
										Start: ast.Position{
											Column: 5,
											Line:   42,
										},
									},
								},
								Name: "table",
							},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 46,
										Line:   43,
									},
									File:   "histogramQuantile_test.flux",
									Source: "table\n        |> range(start: 2018-05-22T19:53:00Z)",
									Start: ast.Position{
										Column: 5,
										Line:   42,
									},
								},
							},
							Call: &ast.CallExpression{
								Arguments: []ast.Expression{&ast.ObjectExpression{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   43,
											},
											File:   "histogramQuantile_test.flux",
											Source: "start: 2018-05-22T19:53:00Z",
											Start: ast.Position{
												Column: 18,
												Line:   43,
											},
										},
									},
									Lbrace: nil,
									Properties: []*ast.Property{&ast.Property{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   43,
												},
												File:   "histogramQuantile_test.flux",
												Source: "start: 2018-05-22T19:53:00Z",
												Start: ast.Position{
													Column: 18,
													Line:   43,
												},
											},
										},
										Comma: nil,
										Key: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 23,
														Line:   43,
													},
													File:   "histogramQuantile_test.flux",
													Source: "start",
													Start: ast.Position{
														Column: 18,
														Line:   43,
													},
												},
											},
											Name: "start",
										},
										Separator: nil,
										Value: &ast.DateTimeLiteral{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   43,
													},
													File:   "histogramQuantile_test.flux",
													Source: "2018-05-22T19:53:00Z",
													Start: ast.Position{
														Column: 25,
														Line:   43,
													},
												},
											},
											Value: parser.MustParseTime("2018-05-22T19:53:00Z"),
										},
									}},
									Rbrace: nil,
									With:   nil,
								}},
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   43,
										},
										File:   "histogramQuantile_test.flux",
										Source: "range(start: 2018-05-22T19:53:00Z)",
										Start: ast.Position{
											Column: 12,
											Line:   43,
										},
									},
								},
								Callee: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 17,
												Line:   43,
											},
											File:   "histogramQuantile_test.flux",
											Source: "range",
											Start: ast.Position{
												Column: 12,
												Line:   43,
											},
										},
									},
									Name: "range",
								},
								Lparen: nil,
								Rparen: nil,
							},
						},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 69,
									Line:   44,
								},
								File:   "histogramQuantile_test.flux",
								Source: "table\n        |> range(start: 2018-05-22T19:53:00Z)\n        |> group(mode: \"except\", columns: [\"le\", \"_time\", \"_value\"])",
								Start: ast.Position{
									Column: 5,
									Line:   42,
								},
							},
						},
						Call: &ast.CallExpression{
							Arguments: []ast.Expression{&ast.ObjectExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 68,
											Line:   44,
										},
										File:   "histogramQuantile_test.flux",
										Source: "mode: \"except\", columns: [\"le\", \"_time\", \"_value\"]",
										Start: ast.Position{
											Column: 18,
											Line:   44,
										},
									},
								},
								Lbrace: nil,
								Properties: []*ast.Property{&ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 32,
												Line:   44,
											},
											File:   "histogramQuantile_test.flux",
											Source: "mode: \"except\"",
											Start: ast.Position{
												Column: 18,
												Line:   44,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 22,
													Line:   44,
												},
												File:   "histogramQuantile_test.flux",
												Source: "mode",
												Start: ast.Position{
													Column: 18,
													Line:   44,
												},
											},
										},
										Name: "mode",
									},
									Separator: nil,
									Value: &ast.StringLiteral{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 32,
													Line:   44,
												},
												File:   "histogramQuantile_test.flux",
												Source: "\"except\"",
												Start: ast.Position{
													Column: 24,
													Line:   44,
												},
											},
										},
										Value: "except",
									},
								}, &ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 68,
												Line:   44,
											},
											File:   "histogramQuantile_test.flux",
											Source: "columns: [\"le\", \"_time\", \"_value\"]",
											Start: ast.Position{
												Column: 34,
												Line:   44,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 41,
													Line:   44,
												},
												File:   "histogramQuantile_test.flux",
												Source: "columns",
												Start: ast.Position{
													Column: 34,
													Line:   44,
												},
											},
										},
										Name: "columns",
									},
									Separator: nil,
									Value: &ast.ArrayExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 68,
													Line:   44,
												},
												File:   "histogramQuantile_test.flux",
												Source: "[\"le\", \"_time\", \"_value\"]",
												Start: ast.Position{
													Column: 43,
													Line:   44,
												},
											},
										},
										Elements: []ast.Expression{&ast.StringLiteral{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 48,
														Line:   44,
													},
													File:   "histogramQuantile_test.flux",
													Source: "\"le\"",
													Start: ast.Position{
														Column: 44,
														Line:   44,
													},
												},
											},
											Value: "le",
										}, &ast.StringLiteral{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 57,
														Line:   44,
													},
													File:   "histogramQuantile_test.flux",
													Source: "\"_time\"",
													Start: ast.Position{
														Column: 50,
														Line:   44,
													},
												},
											},
											Value: "_time",
										}, &ast.StringLiteral{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 67,
														Line:   44,
													},
													File:   "histogramQuantile_test.flux",
													Source: "\"_value\"",
													Start: ast.Position{
														Column: 59,
														Line:   44,
													},
												},
											},
											Value: "_value",
										}},
										Lbrack: nil,
										Rbrack: nil,
									},
								}},
								Rbrace: nil,
								With:   nil,
							}},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 69,
										Line:   44,
									},
									File:   "histogramQuantile_test.flux",
									Source: "group(mode: \"except\", columns: [\"le\", \"_time\", \"_value\"])",
									Start: ast.Position{
										Column: 12,
										Line:   44,
									},
								},
							},
							Callee: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 17,
											Line:   44,
										},
										File:   "histogramQuantile_test.flux",
										Source: "group",
										Start: ast.Position{
											Column: 12,
											Line:   44,
										},
									},
								},
								Name: "group",
							},
							Lparen: nil,
							Rparen: nil,
						},
					},
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 55,
								Line:   45,
							},
							File:   "histogramQuantile_test.flux",
							Source: "table\n        |> range(start: 2018-05-22T19:53:00Z)\n        |> group(mode: \"except\", columns: [\"le\", \"_time\", \"_value\"])\n        |> promql.promHistogramQuantile(quantile: 0.9)",
							Start: ast.Position{
								Column: 5,
								Line:   42,
							},
						},
					},
					Call: &ast.CallExpression{
						Arguments: []ast.Expression{&ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 54,
										Line:   45,
									},
									File:   "histogramQuantile_test.flux",
									Source: "quantile: 0.9",
									Start: ast.Position{
										Column: 41,
										Line:   45,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 54,
											Line:   45,
										},
										File:   "histogramQuantile_test.flux",
										Source: "quantile: 0.9",
										Start: ast.Position{
											Column: 41,
											Line:   45,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 49,
												Line:   45,
											},
											File:   "histogramQuantile_test.flux",
											Source: "quantile",
											Start: ast.Position{
												Column: 41,
												Line:   45,
											},
										},
									},
									Name: "quantile",
								},
								Separator: nil,
								Value: &ast.FloatLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 54,
												Line:   45,
											},
											File:   "histogramQuantile_test.flux",
											Source: "0.9",
											Start: ast.Position{
												Column: 51,
												Line:   45,
											},
										},
									},
									Value: 0.9,
								},
							}},
							Rbrace: nil,
							With:   nil,
						}},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 55,
									Line:   45,
								},
								File:   "histogramQuantile_test.flux",
								Source: "promql.promHistogramQuantile(quantile: 0.9)",
								Start: ast.Position{
									Column: 12,
									Line:   45,
								},
							},
						},
						Callee: &ast.MemberExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 40,
										Line:   45,
									},
									File:   "histogramQuantile_test.flux",
									Source: "promql.promHistogramQuantile",
									Start: ast.Position{
										Column: 12,
										Line:   45,
									},
								},
							},
							Lbrack: nil,
							Object: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 18,
											Line:   45,
										},
										File:   "histogramQuantile_test.flux",
										Source: "promql",
										Start: ast.Position{
											Column: 12,
											Line:   45,
										},
									},
								},
								Name: "promql",
							},
							Property: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 40,
											Line:   45,
										},
										File:   "histogramQuantile_test.flux",
										Source: "promHistogramQuantile",
										Start: ast.Position{
											Column: 19,
											Line:   45,
										},
									},
								},
								Name: "promHistogramQuantile",
							},
							Rbrack: nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
				},
				Lparen: nil,
				Params: []*ast.Property{&ast.Property{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 33,
								Line:   41,
							},
							File:   "histogramQuantile_test.flux",
							Source: "table=<-",
							Start: ast.Position{
								Column: 25,
								Line:   41,
							},
						},
					},
					Comma: nil,
					Key: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 30,
									Line:   41,
								},
								File:   "histogramQuantile_test.flux",
								Source: "table",
								Start: ast.Position{
									Column: 25,
									Line:   41,
								},
							},
						},
						Name: "table",
					},
					Separator: nil,
					Value: &ast.PipeLiteral{BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 33,
								Line:   41,
							},
							File:   "histogramQuantile_test.flux",
							Source: "<-",
							Start: ast.Position{
								Column: 31,
								Line:   41,
							},
						},
					}},
				}},
				Rparan: nil,
			},
		}, &ast.TestStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 111,
							Line:   48,
						},
						File:   "histogramQuantile_test.flux",
						Source: "_histogram_quantile = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_histogram_quantile})",
						Start: ast.Position{
							Column: 6,
							Line:   47,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 25,
								Line:   47,
							},
							File:   "histogramQuantile_test.flux",
							Source: "_histogram_quantile",
							Start: ast.Position{
								Column: 6,
								Line:   47,
							},
						},
					},
					Name: "_histogram_quantile",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 111,
								Line:   48,
							},
							File:   "histogramQuantile_test.flux",
							Source: "() =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_histogram_quantile})",
							Start: ast.Position{
								Column: 28,
								Line:   47,
							},
						},
					},
					Body: &ast.ParenExpression{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 111,
									Line:   48,
								},
								File:   "histogramQuantile_test.flux",
								Source: "({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_histogram_quantile})",
								Start: ast.Position{
									Column: 5,
									Line:   48,
								},
							},
						},
						Expression: &ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 110,
										Line:   48,
									},
									File:   "histogramQuantile_test.flux",
									Source: "{input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_histogram_quantile}",
									Start: ast.Position{
										Column: 6,
										Line:   48,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   48,
										},
										File:   "histogramQuantile_test.flux",
										Source: "input: testing.loadStorage(csv: inData)",
										Start: ast.Position{
											Column: 7,
											Line:   48,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 12,
												Line:   48,
											},
											File:   "histogramQuantile_test.flux",
											Source: "input",
											Start: ast.Position{
												Column: 7,
												Line:   48,
											},
										},
									},
									Name: "input",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   48,
												},
												File:   "histogramQuantile_test.flux",
												Source: "csv: inData",
												Start: ast.Position{
													Column: 34,
													Line:   48,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   48,
													},
													File:   "histogramQuantile_test.flux",
													Source: "csv: inData",
													Start: ast.Position{
														Column: 34,
														Line:   48,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 37,
															Line:   48,
														},
														File:   "histogramQuantile_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 34,
															Line:   48,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 45,
															Line:   48,
														},
														File:   "histogramQuantile_test.flux",
														Source: "inData",
														Start: ast.Position{
															Column: 39,
															Line:   48,
														},
													},
												},
												Name: "inData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 46,
												Line:   48,
											},
											File:   "histogramQuantile_test.flux",
											Source: "testing.loadStorage(csv: inData)",
											Start: ast.Position{
												Column: 14,
												Line:   48,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 33,
													Line:   48,
												},
												File:   "histogramQuantile_test.flux",
												Source: "testing.loadStorage",
												Start: ast.Position{
													Column: 14,
													Line:   48,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 21,
														Line:   48,
													},
													File:   "histogramQuantile_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 14,
														Line:   48,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 33,
														Line:   48,
													},
													File:   "histogramQuantile_test.flux",
													Source: "loadStorage",
													Start: ast.Position{
														Column: 22,
														Line:   48,
													},
												},
											},
											Name: "loadStorage",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 83,
											Line:   48,
										},
										File:   "histogramQuantile_test.flux",
										Source: "want: testing.loadMem(csv: outData)",
										Start: ast.Position{
											Column: 48,
											Line:   48,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 52,
												Line:   48,
											},
											File:   "histogramQuantile_test.flux",
											Source: "want",
											Start: ast.Position{
												Column: 48,
												Line:   48,
											},
										},
									},
									Name: "want",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 82,
													Line:   48,
												},
												File:   "histogramQuantile_test.flux",
												Source: "csv: outData",
												Start: ast.Position{
													Column: 70,
													Line:   48,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 82,
														Line:   48,
													},
													File:   "histogramQuantile_test.flux",
													Source: "csv: outData",
													Start: ast.Position{
														Column: 70,
														Line:   48,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 73,
															Line:   48,
														},
														File:   "histogramQuantile_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 70,
															Line:   48,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 82,
															Line:   48,
														},
														File:   "histogramQuantile_test.flux",
														Source: "outData",
														Start: ast.Position{
															Column: 75,
															Line:   48,
														},
													},
												},
												Name: "outData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 83,
												Line:   48,
											},
											File:   "histogramQuantile_test.flux",
											Source: "testing.loadMem(csv: outData)",
											Start: ast.Position{
												Column: 54,
												Line:   48,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 69,
													Line:   48,
												},
												File:   "histogramQuantile_test.flux",
												Source: "testing.loadMem",
												Start: ast.Position{
													Column: 54,
													Line:   48,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 61,
														Line:   48,
													},
													File:   "histogramQuantile_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 54,
														Line:   48,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 69,
														Line:   48,
													},
													File:   "histogramQuantile_test.flux",
													Source: "loadMem",
													Start: ast.Position{
														Column: 62,
														Line:   48,
													},
												},
											},
											Name: "loadMem",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 109,
											Line:   48,
										},
										File:   "histogramQuantile_test.flux",
										Source: "fn: t_histogram_quantile",
										Start: ast.Position{
											Column: 85,
											Line:   48,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 87,
												Line:   48,
											},
											File:   "histogramQuantile_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 85,
												Line:   48,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 109,
												Line:   48,
											},
											File:   "histogramQuantile_test.flux",
											Source: "t_histogram_quantile",
											Start: ast.Position{
												Column: 89,
												Line:   48,
											},
										},
									},
									Name: "t_histogram_quantile",
								},
							}},
							Rbrace: nil,
							With:   nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 111,
						Line:   48,
					},
					File:   "histogramQuantile_test.flux",
					Source: "test _histogram_quantile = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_histogram_quantile})",
					Start: ast.Position{
						Column: 1,
						Line:   47,
					},
				},
			},
		}},
		Eof: nil,
		Imports: []*ast.ImportDeclaration{&ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 22,
						Line:   4,
					},
					File:   "histogramQuantile_test.flux",
					Source: "import \"experimental\"",
					Start: ast.Position{
						Column: 1,
						Line:   4,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 22,
							Line:   4,
						},
						File:   "histogramQuantile_test.flux",
						Source: "\"experimental\"",
						Start: ast.Position{
							Column: 8,
							Line:   4,
						},
					},
				},
				Value: "experimental",
			},
		}, &ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 25,
						Line:   5,
					},
					File:   "histogramQuantile_test.flux",
					Source: "import \"internal/promql\"",
					Start: ast.Position{
						Column: 1,
						Line:   5,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 25,
							Line:   5,
						},
						File:   "histogramQuantile_test.flux",
						Source: "\"internal/promql\"",
						Start: ast.Position{
							Column: 8,
							Line:   5,
						},
					},
				},
				Value: "internal/promql",
			},
		}, &ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 17,
						Line:   6,
					},
					File:   "histogramQuantile_test.flux",
					Source: "import \"testing\"",
					Start: ast.Position{
						Column: 1,
						Line:   6,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 17,
							Line:   6,
						},
						File:   "histogramQuantile_test.flux",
						Source: "\"testing\"",
						Start: ast.Position{
							Column: 8,
							Line:   6,
						},
					},
				},
				Value: "testing",
			},
		}},
		Metadata: "parser-type=rust",
		Name:     "histogramQuantile_test.flux",
		Package: &ast.PackageClause{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 20,
						Line:   1,
					},
					File:   "histogramQuantile_test.flux",
					Source: "package promql_test",
					Start: ast.Position{
						Column: 1,
						Line:   1,
					},
				},
			},
			Name: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 20,
							Line:   1,
						},
						File:   "histogramQuantile_test.flux",
						Source: "promql_test",
						Start: ast.Position{
							Column: 9,
							Line:   1,
						},
					},
				},
				Name: "promql_test",
			},
		},
	}, &ast.File{
		BaseNode: ast.BaseNode{
			Comments: nil,
			Errors:   nil,
			Loc: &ast.SourceLocation{
				End: ast.Position{
					Column: 104,
					Line:   51,
				},
				File:   "holtWinters_test.flux",
				Source: "package promql_test\n\n\nimport \"testing\"\nimport \"internal/promql\"\n\noption now = () => 2030-01-01T00:00:00Z\n\ninData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,100,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,100,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,400,prometheus\n,,3,2018-12-18T20:52:33Z,metric_name4,100,prometheus\n\"\noutData =\n    \"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name2,32.78296,prometheus\n,,2,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name3,535.7920000000001,prometheus\n\"\nt_holtWinters = (table=<-) =>\n    table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)\n        |> promql.holtWinters(smoothingFactor: 0.1, trendFactor: 0.2)\n\ntest _holtWinters = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_holtWinters})",
				Start: ast.Position{
					Column: 1,
					Line:   1,
				},
			},
		},
		Body: []ast.Statement{&ast.OptionStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 40,
							Line:   7,
						},
						File:   "holtWinters_test.flux",
						Source: "now = () => 2030-01-01T00:00:00Z",
						Start: ast.Position{
							Column: 8,
							Line:   7,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 11,
								Line:   7,
							},
							File:   "holtWinters_test.flux",
							Source: "now",
							Start: ast.Position{
								Column: 8,
								Line:   7,
							},
						},
					},
					Name: "now",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 40,
								Line:   7,
							},
							File:   "holtWinters_test.flux",
							Source: "() => 2030-01-01T00:00:00Z",
							Start: ast.Position{
								Column: 14,
								Line:   7,
							},
						},
					},
					Body: &ast.DateTimeLiteral{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 40,
									Line:   7,
								},
								File:   "holtWinters_test.flux",
								Source: "2030-01-01T00:00:00Z",
								Start: ast.Position{
									Column: 20,
									Line:   7,
								},
							},
						},
						Value: parser.MustParseTime("2030-01-01T00:00:00Z"),
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 40,
						Line:   7,
					},
					File:   "holtWinters_test.flux",
					Source: "option now = () => 2030-01-01T00:00:00Z",
					Start: ast.Position{
						Column: 1,
						Line:   7,
					},
				},
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   34,
					},
					File:   "holtWinters_test.flux",
					Source: "inData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,100,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,100,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,400,prometheus\n,,3,2018-12-18T20:52:33Z,metric_name4,100,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   9,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 7,
							Line:   9,
						},
						File:   "holtWinters_test.flux",
						Source: "inData",
						Start: ast.Position{
							Column: 1,
							Line:   9,
						},
					},
				},
				Name: "inData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   34,
						},
						File:   "holtWinters_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,100,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,100,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,400,prometheus\n,,3,2018-12-18T20:52:33Z,metric_name4,100,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   10,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,100,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,100,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,400,prometheus\n,,3,2018-12-18T20:52:33Z,metric_name4,100,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   44,
					},
					File:   "holtWinters_test.flux",
					Source: "outData =\n    \"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name2,32.78296,prometheus\n,,2,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name3,535.7920000000001,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   35,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 8,
							Line:   35,
						},
						File:   "holtWinters_test.flux",
						Source: "outData",
						Start: ast.Position{
							Column: 1,
							Line:   35,
						},
					},
				},
				Name: "outData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   44,
						},
						File:   "holtWinters_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name2,32.78296,prometheus\n,,2,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name3,535.7920000000001,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   36,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name2,32.78296,prometheus\n,,2,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name3,535.7920000000001,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 70,
						Line:   48,
					},
					File:   "holtWinters_test.flux",
					Source: "t_holtWinters = (table=<-) =>\n    table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)\n        |> promql.holtWinters(smoothingFactor: 0.1, trendFactor: 0.2)",
					Start: ast.Position{
						Column: 1,
						Line:   45,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 14,
							Line:   45,
						},
						File:   "holtWinters_test.flux",
						Source: "t_holtWinters",
						Start: ast.Position{
							Column: 1,
							Line:   45,
						},
					},
				},
				Name: "t_holtWinters",
			},
			Init: &ast.FunctionExpression{
				Arrow: nil,
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 70,
							Line:   48,
						},
						File:   "holtWinters_test.flux",
						Source: "(table=<-) =>\n    table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)\n        |> promql.holtWinters(smoothingFactor: 0.1, trendFactor: 0.2)",
						Start: ast.Position{
							Column: 17,
							Line:   45,
						},
					},
				},
				Body: &ast.PipeExpression{
					Argument: &ast.PipeExpression{
						Argument: &ast.Identifier{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 10,
										Line:   46,
									},
									File:   "holtWinters_test.flux",
									Source: "table",
									Start: ast.Position{
										Column: 5,
										Line:   46,
									},
								},
							},
							Name: "table",
						},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 74,
									Line:   47,
								},
								File:   "holtWinters_test.flux",
								Source: "table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)",
								Start: ast.Position{
									Column: 5,
									Line:   46,
								},
							},
						},
						Call: &ast.CallExpression{
							Arguments: []ast.Expression{&ast.ObjectExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 73,
											Line:   47,
										},
										File:   "holtWinters_test.flux",
										Source: "start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z",
										Start: ast.Position{
											Column: 18,
											Line:   47,
										},
									},
								},
								Lbrace: nil,
								Properties: []*ast.Property{&ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   47,
											},
											File:   "holtWinters_test.flux",
											Source: "start: 2018-12-18T20:50:00Z",
											Start: ast.Position{
												Column: 18,
												Line:   47,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 23,
													Line:   47,
												},
												File:   "holtWinters_test.flux",
												Source: "start",
												Start: ast.Position{
													Column: 18,
													Line:   47,
												},
											},
										},
										Name: "start",
									},
									Separator: nil,
									Value: &ast.DateTimeLiteral{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   47,
												},
												File:   "holtWinters_test.flux",
												Source: "2018-12-18T20:50:00Z",
												Start: ast.Position{
													Column: 25,
													Line:   47,
												},
											},
										},
										Value: parser.MustParseTime("2018-12-18T20:50:00Z"),
									},
								}, &ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 73,
												Line:   47,
											},
											File:   "holtWinters_test.flux",
											Source: "stop: 2018-12-18T20:55:00Z",
											Start: ast.Position{
												Column: 47,
												Line:   47,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 51,
													Line:   47,
												},
												File:   "holtWinters_test.flux",
												Source: "stop",
												Start: ast.Position{
													Column: 47,
													Line:   47,
												},
											},
										},
										Name: "stop",
									},
									Separator: nil,
									Value: &ast.DateTimeLiteral{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 73,
													Line:   47,
												},
												File:   "holtWinters_test.flux",
												Source: "2018-12-18T20:55:00Z",
												Start: ast.Position{
													Column: 53,
													Line:   47,
												},
											},
										},
										Value: parser.MustParseTime("2018-12-18T20:55:00Z"),
									},
								}},
								Rbrace: nil,
								With:   nil,
							}},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 74,
										Line:   47,
									},
									File:   "holtWinters_test.flux",
									Source: "range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)",
									Start: ast.Position{
										Column: 12,
										Line:   47,
									},
								},
							},
							Callee: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 17,
											Line:   47,
										},
										File:   "holtWinters_test.flux",
										Source: "range",
										Start: ast.Position{
											Column: 12,
											Line:   47,
										},
									},
								},
								Name: "range",
							},
							Lparen: nil,
							Rparen: nil,
						},
					},
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 70,
								Line:   48,
							},
							File:   "holtWinters_test.flux",
							Source: "table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)\n        |> promql.holtWinters(smoothingFactor: 0.1, trendFactor: 0.2)",
							Start: ast.Position{
								Column: 5,
								Line:   46,
							},
						},
					},
					Call: &ast.CallExpression{
						Arguments: []ast.Expression{&ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 69,
										Line:   48,
									},
									File:   "holtWinters_test.flux",
									Source: "smoothingFactor: 0.1, trendFactor: 0.2",
									Start: ast.Position{
										Column: 31,
										Line:   48,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 51,
											Line:   48,
										},
										File:   "holtWinters_test.flux",
										Source: "smoothingFactor: 0.1",
										Start: ast.Position{
											Column: 31,
											Line:   48,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 46,
												Line:   48,
											},
											File:   "holtWinters_test.flux",
											Source: "smoothingFactor",
											Start: ast.Position{
												Column: 31,
												Line:   48,
											},
										},
									},
									Name: "smoothingFactor",
								},
								Separator: nil,
								Value: &ast.FloatLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 51,
												Line:   48,
											},
											File:   "holtWinters_test.flux",
											Source: "0.1",
											Start: ast.Position{
												Column: 48,
												Line:   48,
											},
										},
									},
									Value: 0.1,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 69,
											Line:   48,
										},
										File:   "holtWinters_test.flux",
										Source: "trendFactor: 0.2",
										Start: ast.Position{
											Column: 53,
											Line:   48,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 64,
												Line:   48,
											},
											File:   "holtWinters_test.flux",
											Source: "trendFactor",
											Start: ast.Position{
												Column: 53,
												Line:   48,
											},
										},
									},
									Name: "trendFactor",
								},
								Separator: nil,
								Value: &ast.FloatLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 69,
												Line:   48,
											},
											File:   "holtWinters_test.flux",
											Source: "0.2",
											Start: ast.Position{
												Column: 66,
												Line:   48,
											},
										},
									},
									Value: 0.2,
								},
							}},
							Rbrace: nil,
							With:   nil,
						}},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 70,
									Line:   48,
								},
								File:   "holtWinters_test.flux",
								Source: "promql.holtWinters(smoothingFactor: 0.1, trendFactor: 0.2)",
								Start: ast.Position{
									Column: 12,
									Line:   48,
								},
							},
						},
						Callee: &ast.MemberExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 30,
										Line:   48,
									},
									File:   "holtWinters_test.flux",
									Source: "promql.holtWinters",
									Start: ast.Position{
										Column: 12,
										Line:   48,
									},
								},
							},
							Lbrack: nil,
							Object: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 18,
											Line:   48,
										},
										File:   "holtWinters_test.flux",
										Source: "promql",
										Start: ast.Position{
											Column: 12,
											Line:   48,
										},
									},
								},
								Name: "promql",
							},
							Property: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 30,
											Line:   48,
										},
										File:   "holtWinters_test.flux",
										Source: "holtWinters",
										Start: ast.Position{
											Column: 19,
											Line:   48,
										},
									},
								},
								Name: "holtWinters",
							},
							Rbrack: nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
				},
				Lparen: nil,
				Params: []*ast.Property{&ast.Property{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 26,
								Line:   45,
							},
							File:   "holtWinters_test.flux",
							Source: "table=<-",
							Start: ast.Position{
								Column: 18,
								Line:   45,
							},
						},
					},
					Comma: nil,
					Key: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 23,
									Line:   45,
								},
								File:   "holtWinters_test.flux",
								Source: "table",
								Start: ast.Position{
									Column: 18,
									Line:   45,
								},
							},
						},
						Name: "table",
					},
					Separator: nil,
					Value: &ast.PipeLiteral{BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 26,
								Line:   45,
							},
							File:   "holtWinters_test.flux",
							Source: "<-",
							Start: ast.Position{
								Column: 24,
								Line:   45,
							},
						},
					}},
				}},
				Rparan: nil,
			},
		}, &ast.TestStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 104,
							Line:   51,
						},
						File:   "holtWinters_test.flux",
						Source: "_holtWinters = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_holtWinters})",
						Start: ast.Position{
							Column: 6,
							Line:   50,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 18,
								Line:   50,
							},
							File:   "holtWinters_test.flux",
							Source: "_holtWinters",
							Start: ast.Position{
								Column: 6,
								Line:   50,
							},
						},
					},
					Name: "_holtWinters",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 104,
								Line:   51,
							},
							File:   "holtWinters_test.flux",
							Source: "() =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_holtWinters})",
							Start: ast.Position{
								Column: 21,
								Line:   50,
							},
						},
					},
					Body: &ast.ParenExpression{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 104,
									Line:   51,
								},
								File:   "holtWinters_test.flux",
								Source: "({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_holtWinters})",
								Start: ast.Position{
									Column: 5,
									Line:   51,
								},
							},
						},
						Expression: &ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 103,
										Line:   51,
									},
									File:   "holtWinters_test.flux",
									Source: "{input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_holtWinters}",
									Start: ast.Position{
										Column: 6,
										Line:   51,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   51,
										},
										File:   "holtWinters_test.flux",
										Source: "input: testing.loadStorage(csv: inData)",
										Start: ast.Position{
											Column: 7,
											Line:   51,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 12,
												Line:   51,
											},
											File:   "holtWinters_test.flux",
											Source: "input",
											Start: ast.Position{
												Column: 7,
												Line:   51,
											},
										},
									},
									Name: "input",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   51,
												},
												File:   "holtWinters_test.flux",
												Source: "csv: inData",
												Start: ast.Position{
													Column: 34,
													Line:   51,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   51,
													},
													File:   "holtWinters_test.flux",
													Source: "csv: inData",
													Start: ast.Position{
														Column: 34,
														Line:   51,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 37,
															Line:   51,
														},
														File:   "holtWinters_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 34,
															Line:   51,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 45,
															Line:   51,
														},
														File:   "holtWinters_test.flux",
														Source: "inData",
														Start: ast.Position{
															Column: 39,
															Line:   51,
														},
													},
												},
												Name: "inData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 46,
												Line:   51,
											},
											File:   "holtWinters_test.flux",
											Source: "testing.loadStorage(csv: inData)",
											Start: ast.Position{
												Column: 14,
												Line:   51,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 33,
													Line:   51,
												},
												File:   "holtWinters_test.flux",
												Source: "testing.loadStorage",
												Start: ast.Position{
													Column: 14,
													Line:   51,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 21,
														Line:   51,
													},
													File:   "holtWinters_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 14,
														Line:   51,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 33,
														Line:   51,
													},
													File:   "holtWinters_test.flux",
													Source: "loadStorage",
													Start: ast.Position{
														Column: 22,
														Line:   51,
													},
												},
											},
											Name: "loadStorage",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 83,
											Line:   51,
										},
										File:   "holtWinters_test.flux",
										Source: "want: testing.loadMem(csv: outData)",
										Start: ast.Position{
											Column: 48,
											Line:   51,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 52,
												Line:   51,
											},
											File:   "holtWinters_test.flux",
											Source: "want",
											Start: ast.Position{
												Column: 48,
												Line:   51,
											},
										},
									},
									Name: "want",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 82,
													Line:   51,
												},
												File:   "holtWinters_test.flux",
												Source: "csv: outData",
												Start: ast.Position{
													Column: 70,
													Line:   51,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 82,
														Line:   51,
													},
													File:   "holtWinters_test.flux",
													Source: "csv: outData",
													Start: ast.Position{
														Column: 70,
														Line:   51,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 73,
															Line:   51,
														},
														File:   "holtWinters_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 70,
															Line:   51,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 82,
															Line:   51,
														},
														File:   "holtWinters_test.flux",
														Source: "outData",
														Start: ast.Position{
															Column: 75,
															Line:   51,
														},
													},
												},
												Name: "outData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 83,
												Line:   51,
											},
											File:   "holtWinters_test.flux",
											Source: "testing.loadMem(csv: outData)",
											Start: ast.Position{
												Column: 54,
												Line:   51,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 69,
													Line:   51,
												},
												File:   "holtWinters_test.flux",
												Source: "testing.loadMem",
												Start: ast.Position{
													Column: 54,
													Line:   51,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 61,
														Line:   51,
													},
													File:   "holtWinters_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 54,
														Line:   51,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 69,
														Line:   51,
													},
													File:   "holtWinters_test.flux",
													Source: "loadMem",
													Start: ast.Position{
														Column: 62,
														Line:   51,
													},
												},
											},
											Name: "loadMem",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 102,
											Line:   51,
										},
										File:   "holtWinters_test.flux",
										Source: "fn: t_holtWinters",
										Start: ast.Position{
											Column: 85,
											Line:   51,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 87,
												Line:   51,
											},
											File:   "holtWinters_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 85,
												Line:   51,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 102,
												Line:   51,
											},
											File:   "holtWinters_test.flux",
											Source: "t_holtWinters",
											Start: ast.Position{
												Column: 89,
												Line:   51,
											},
										},
									},
									Name: "t_holtWinters",
								},
							}},
							Rbrace: nil,
							With:   nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 104,
						Line:   51,
					},
					File:   "holtWinters_test.flux",
					Source: "test _holtWinters = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_holtWinters})",
					Start: ast.Position{
						Column: 1,
						Line:   50,
					},
				},
			},
		}},
		Eof: nil,
		Imports: []*ast.ImportDeclaration{&ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 17,
						Line:   4,
					},
					File:   "holtWinters_test.flux",
					Source: "import \"testing\"",
					Start: ast.Position{
						Column: 1,
						Line:   4,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 17,
							Line:   4,
						},
						File:   "holtWinters_test.flux",
						Source: "\"testing\"",
						Start: ast.Position{
							Column: 8,
							Line:   4,
						},
					},
				},
				Value: "testing",
			},
		}, &ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 25,
						Line:   5,
					},
					File:   "holtWinters_test.flux",
					Source: "import \"internal/promql\"",
					Start: ast.Position{
						Column: 1,
						Line:   5,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 25,
							Line:   5,
						},
						File:   "holtWinters_test.flux",
						Source: "\"internal/promql\"",
						Start: ast.Position{
							Column: 8,
							Line:   5,
						},
					},
				},
				Value: "internal/promql",
			},
		}},
		Metadata: "parser-type=rust",
		Name:     "holtWinters_test.flux",
		Package: &ast.PackageClause{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 20,
						Line:   1,
					},
					File:   "holtWinters_test.flux",
					Source: "package promql_test",
					Start: ast.Position{
						Column: 1,
						Line:   1,
					},
				},
			},
			Name: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 20,
							Line:   1,
						},
						File:   "holtWinters_test.flux",
						Source: "promql_test",
						Start: ast.Position{
							Column: 9,
							Line:   1,
						},
					},
				},
				Name: "promql_test",
			},
		},
	}, &ast.File{
		BaseNode: ast.BaseNode{
			Comments: nil,
			Errors:   nil,
			Loc: &ast.SourceLocation{
				End: ast.Position{
					Column: 103,
					Line:   43,
				},
				File:   "hour_test.flux",
				Source: "package promql_test\n\n\nimport \"testing\"\nimport \"internal/promql\"\n\noption now = () => 2030-01-01T00:00:00Z\n\ninData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T00:00:00Z,metric_name,0,prometheus\n,,0,2018-02-04T01:00:00Z,metric_name,0,prometheus\n,,0,2018-03-05T02:00:00Z,metric_name,0,prometheus\n,,0,2018-10-06T21:00:00Z,metric_name,0,prometheus\n,,0,2018-11-07T22:00:00Z,metric_name,0,prometheus\n,,0,2018-12-08T23:00:00Z,metric_name,0,prometheus\n\"\noutData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,outData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T00:00:00Z,metric_name,0,prometheus\n,,0,2018-02-04T01:00:00Z,metric_name,1,prometheus\n,,0,2018-03-05T02:00:00Z,metric_name,2,prometheus\n,,0,2018-10-06T21:00:00Z,metric_name,21,prometheus\n,,0,2018-11-07T22:00:00Z,metric_name,22,prometheus\n,,0,2018-12-08T23:00:00Z,metric_name,23,prometheus\n\"\nt_promqlHour = (table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()\n        |> map(fn: (r) => ({r with _value: promql.promqlHour(timestamp: r._value)}))\n\ntest _promqlHour = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlHour})",
				Start: ast.Position{
					Column: 1,
					Line:   1,
				},
			},
		},
		Body: []ast.Statement{&ast.OptionStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 40,
							Line:   7,
						},
						File:   "hour_test.flux",
						Source: "now = () => 2030-01-01T00:00:00Z",
						Start: ast.Position{
							Column: 8,
							Line:   7,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 11,
								Line:   7,
							},
							File:   "hour_test.flux",
							Source: "now",
							Start: ast.Position{
								Column: 8,
								Line:   7,
							},
						},
					},
					Name: "now",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 40,
								Line:   7,
							},
							File:   "hour_test.flux",
							Source: "() => 2030-01-01T00:00:00Z",
							Start: ast.Position{
								Column: 14,
								Line:   7,
							},
						},
					},
					Body: &ast.DateTimeLiteral{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 40,
									Line:   7,
								},
								File:   "hour_test.flux",
								Source: "2030-01-01T00:00:00Z",
								Start: ast.Position{
									Column: 20,
									Line:   7,
								},
							},
						},
						Value: parser.MustParseTime("2030-01-01T00:00:00Z"),
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 40,
						Line:   7,
					},
					File:   "hour_test.flux",
					Source: "option now = () => 2030-01-01T00:00:00Z",
					Start: ast.Position{
						Column: 1,
						Line:   7,
					},
				},
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   21,
					},
					File:   "hour_test.flux",
					Source: "inData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T00:00:00Z,metric_name,0,prometheus\n,,0,2018-02-04T01:00:00Z,metric_name,0,prometheus\n,,0,2018-03-05T02:00:00Z,metric_name,0,prometheus\n,,0,2018-10-06T21:00:00Z,metric_name,0,prometheus\n,,0,2018-11-07T22:00:00Z,metric_name,0,prometheus\n,,0,2018-12-08T23:00:00Z,metric_name,0,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   9,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 7,
							Line:   9,
						},
						File:   "hour_test.flux",
						Source: "inData",
						Start: ast.Position{
							Column: 1,
							Line:   9,
						},
					},
				},
				Name: "inData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   21,
						},
						File:   "hour_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T00:00:00Z,metric_name,0,prometheus\n,,0,2018-02-04T01:00:00Z,metric_name,0,prometheus\n,,0,2018-03-05T02:00:00Z,metric_name,0,prometheus\n,,0,2018-10-06T21:00:00Z,metric_name,0,prometheus\n,,0,2018-11-07T22:00:00Z,metric_name,0,prometheus\n,,0,2018-12-08T23:00:00Z,metric_name,0,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   10,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T00:00:00Z,metric_name,0,prometheus\n,,0,2018-02-04T01:00:00Z,metric_name,0,prometheus\n,,0,2018-03-05T02:00:00Z,metric_name,0,prometheus\n,,0,2018-10-06T21:00:00Z,metric_name,0,prometheus\n,,0,2018-11-07T22:00:00Z,metric_name,0,prometheus\n,,0,2018-12-08T23:00:00Z,metric_name,0,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   34,
					},
					File:   "hour_test.flux",
					Source: "outData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,outData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T00:00:00Z,metric_name,0,prometheus\n,,0,2018-02-04T01:00:00Z,metric_name,1,prometheus\n,,0,2018-03-05T02:00:00Z,metric_name,2,prometheus\n,,0,2018-10-06T21:00:00Z,metric_name,21,prometheus\n,,0,2018-11-07T22:00:00Z,metric_name,22,prometheus\n,,0,2018-12-08T23:00:00Z,metric_name,23,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   22,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 8,
							Line:   22,
						},
						File:   "hour_test.flux",
						Source: "outData",
						Start: ast.Position{
							Column: 1,
							Line:   22,
						},
					},
				},
				Name: "outData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   34,
						},
						File:   "hour_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,outData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T00:00:00Z,metric_name,0,prometheus\n,,0,2018-02-04T01:00:00Z,metric_name,1,prometheus\n,,0,2018-03-05T02:00:00Z,metric_name,2,prometheus\n,,0,2018-10-06T21:00:00Z,metric_name,21,prometheus\n,,0,2018-11-07T22:00:00Z,metric_name,22,prometheus\n,,0,2018-12-08T23:00:00Z,metric_name,23,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   23,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,outData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T00:00:00Z,metric_name,0,prometheus\n,,0,2018-02-04T01:00:00Z,metric_name,1,prometheus\n,,0,2018-03-05T02:00:00Z,metric_name,2,prometheus\n,,0,2018-10-06T21:00:00Z,metric_name,21,prometheus\n,,0,2018-11-07T22:00:00Z,metric_name,22,prometheus\n,,0,2018-12-08T23:00:00Z,metric_name,23,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 85,
						Line:   40,
					},
					File:   "hour_test.flux",
					Source: "t_promqlHour = (table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()\n        |> map(fn: (r) => ({r with _value: promql.promqlHour(timestamp: r._value)}))",
					Start: ast.Position{
						Column: 1,
						Line:   35,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 13,
							Line:   35,
						},
						File:   "hour_test.flux",
						Source: "t_promqlHour",
						Start: ast.Position{
							Column: 1,
							Line:   35,
						},
					},
				},
				Name: "t_promqlHour",
			},
			Init: &ast.FunctionExpression{
				Arrow: nil,
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 85,
							Line:   40,
						},
						File:   "hour_test.flux",
						Source: "(table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()\n        |> map(fn: (r) => ({r with _value: promql.promqlHour(timestamp: r._value)}))",
						Start: ast.Position{
							Column: 16,
							Line:   35,
						},
					},
				},
				Body: &ast.PipeExpression{
					Argument: &ast.PipeExpression{
						Argument: &ast.PipeExpression{
							Argument: &ast.PipeExpression{
								Argument: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 10,
												Line:   36,
											},
											File:   "hour_test.flux",
											Source: "table",
											Start: ast.Position{
												Column: 5,
												Line:   36,
											},
										},
									},
									Name: "table",
								},
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   37,
										},
										File:   "hour_test.flux",
										Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)",
										Start: ast.Position{
											Column: 5,
											Line:   36,
										},
									},
								},
								Call: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   37,
												},
												File:   "hour_test.flux",
												Source: "start: 1980-01-01T00:00:00Z",
												Start: ast.Position{
													Column: 18,
													Line:   37,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   37,
													},
													File:   "hour_test.flux",
													Source: "start: 1980-01-01T00:00:00Z",
													Start: ast.Position{
														Column: 18,
														Line:   37,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 23,
															Line:   37,
														},
														File:   "hour_test.flux",
														Source: "start",
														Start: ast.Position{
															Column: 18,
															Line:   37,
														},
													},
												},
												Name: "start",
											},
											Separator: nil,
											Value: &ast.DateTimeLiteral{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 45,
															Line:   37,
														},
														File:   "hour_test.flux",
														Source: "1980-01-01T00:00:00Z",
														Start: ast.Position{
															Column: 25,
															Line:   37,
														},
													},
												},
												Value: parser.MustParseTime("1980-01-01T00:00:00Z"),
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 46,
												Line:   37,
											},
											File:   "hour_test.flux",
											Source: "range(start: 1980-01-01T00:00:00Z)",
											Start: ast.Position{
												Column: 12,
												Line:   37,
											},
										},
									},
									Callee: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 17,
													Line:   37,
												},
												File:   "hour_test.flux",
												Source: "range",
												Start: ast.Position{
													Column: 12,
													Line:   37,
												},
											},
										},
										Name: "range",
									},
									Lparen: nil,
									Rparen: nil,
								},
							},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 46,
										Line:   38,
									},
									File:   "hour_test.flux",
									Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])",
									Start: ast.Position{
										Column: 5,
										Line:   36,
									},
								},
							},
							Call: &ast.CallExpression{
								Arguments: []ast.Expression{&ast.ObjectExpression{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   38,
											},
											File:   "hour_test.flux",
											Source: "columns: [\"_start\", \"_stop\"]",
											Start: ast.Position{
												Column: 17,
												Line:   38,
											},
										},
									},
									Lbrace: nil,
									Properties: []*ast.Property{&ast.Property{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   38,
												},
												File:   "hour_test.flux",
												Source: "columns: [\"_start\", \"_stop\"]",
												Start: ast.Position{
													Column: 17,
													Line:   38,
												},
											},
										},
										Comma: nil,
										Key: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 24,
														Line:   38,
													},
													File:   "hour_test.flux",
													Source: "columns",
													Start: ast.Position{
														Column: 17,
														Line:   38,
													},
												},
											},
											Name: "columns",
										},
										Separator: nil,
										Value: &ast.ArrayExpression{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   38,
													},
													File:   "hour_test.flux",
													Source: "[\"_start\", \"_stop\"]",
													Start: ast.Position{
														Column: 26,
														Line:   38,
													},
												},
											},
											Elements: []ast.Expression{&ast.StringLiteral{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 35,
															Line:   38,
														},
														File:   "hour_test.flux",
														Source: "\"_start\"",
														Start: ast.Position{
															Column: 27,
															Line:   38,
														},
													},
												},
												Value: "_start",
											}, &ast.StringLiteral{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 44,
															Line:   38,
														},
														File:   "hour_test.flux",
														Source: "\"_stop\"",
														Start: ast.Position{
															Column: 37,
															Line:   38,
														},
													},
												},
												Value: "_stop",
											}},
											Lbrack: nil,
											Rbrack: nil,
										},
									}},
									Rbrace: nil,
									With:   nil,
								}},
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   38,
										},
										File:   "hour_test.flux",
										Source: "drop(columns: [\"_start\", \"_stop\"])",
										Start: ast.Position{
											Column: 12,
											Line:   38,
										},
									},
								},
								Callee: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 16,
												Line:   38,
											},
											File:   "hour_test.flux",
											Source: "drop",
											Start: ast.Position{
												Column: 12,
												Line:   38,
											},
										},
									},
									Name: "drop",
								},
								Lparen: nil,
								Rparen: nil,
							},
						},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 30,
									Line:   39,
								},
								File:   "hour_test.flux",
								Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()",
								Start: ast.Position{
									Column: 5,
									Line:   36,
								},
							},
						},
						Call: &ast.CallExpression{
							Arguments: nil,
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 30,
										Line:   39,
									},
									File:   "hour_test.flux",
									Source: "promql.timestamp()",
									Start: ast.Position{
										Column: 12,
										Line:   39,
									},
								},
							},
							Callee: &ast.MemberExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 28,
											Line:   39,
										},
										File:   "hour_test.flux",
										Source: "promql.timestamp",
										Start: ast.Position{
											Column: 12,
											Line:   39,
										},
									},
								},
								Lbrack: nil,
								Object: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 18,
												Line:   39,
											},
											File:   "hour_test.flux",
											Source: "promql",
											Start: ast.Position{
												Column: 12,
												Line:   39,
											},
										},
									},
									Name: "promql",
								},
								Property: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 28,
												Line:   39,
											},
											File:   "hour_test.flux",
											Source: "timestamp",
											Start: ast.Position{
												Column: 19,
												Line:   39,
											},
										},
									},
									Name: "timestamp",
								},
								Rbrack: nil,
							},
							Lparen: nil,
							Rparen: nil,
						},
					},
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 85,
								Line:   40,
							},
							File:   "hour_test.flux",
							Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()\n        |> map(fn: (r) => ({r with _value: promql.promqlHour(timestamp: r._value)}))",
							Start: ast.Position{
								Column: 5,
								Line:   36,
							},
						},
					},
					Call: &ast.CallExpression{
						Arguments: []ast.Expression{&ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 84,
										Line:   40,
									},
									File:   "hour_test.flux",
									Source: "fn: (r) => ({r with _value: promql.promqlHour(timestamp: r._value)})",
									Start: ast.Position{
										Column: 16,
										Line:   40,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 84,
											Line:   40,
										},
										File:   "hour_test.flux",
										Source: "fn: (r) => ({r with _value: promql.promqlHour(timestamp: r._value)})",
										Start: ast.Position{
											Column: 16,
											Line:   40,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 18,
												Line:   40,
											},
											File:   "hour_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 16,
												Line:   40,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.FunctionExpression{
									Arrow: nil,
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 84,
												Line:   40,
											},
											File:   "hour_test.flux",
											Source: "(r) => ({r with _value: promql.promqlHour(timestamp: r._value)})",
											Start: ast.Position{
												Column: 20,
												Line:   40,
											},
										},
									},
									Body: &ast.ParenExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 84,
													Line:   40,
												},
												File:   "hour_test.flux",
												Source: "({r with _value: promql.promqlHour(timestamp: r._value)})",
												Start: ast.Position{
													Column: 27,
													Line:   40,
												},
											},
										},
										Expression: &ast.ObjectExpression{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 83,
														Line:   40,
													},
													File:   "hour_test.flux",
													Source: "{r with _value: promql.promqlHour(timestamp: r._value)}",
													Start: ast.Position{
														Column: 28,
														Line:   40,
													},
												},
											},
											Lbrace: nil,
											Properties: []*ast.Property{&ast.Property{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 82,
															Line:   40,
														},
														File:   "hour_test.flux",
														Source: "_value: promql.promqlHour(timestamp: r._value)",
														Start: ast.Position{
															Column: 36,
															Line:   40,
														},
													},
												},
												Comma: nil,
												Key: &ast.Identifier{
													BaseNode: ast.BaseNode{
														Comments: nil,
														Errors:   nil,
														Loc: &ast.SourceLocation{
															End: ast.Position{
																Column: 42,
																Line:   40,
															},
															File:   "hour_test.flux",
															Source: "_value",
															Start: ast.Position{
																Column: 36,
																Line:   40,
															},
														},
													},
													Name: "_value",
												},
												Separator: nil,
												Value: &ast.CallExpression{
													Arguments: []ast.Expression{&ast.ObjectExpression{
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 81,
																	Line:   40,
																},
																File:   "hour_test.flux",
																Source: "timestamp: r._value",
																Start: ast.Position{
																	Column: 62,
																	Line:   40,
																},
															},
														},
														Lbrace: nil,
														Properties: []*ast.Property{&ast.Property{
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 81,
																		Line:   40,
																	},
																	File:   "hour_test.flux",
																	Source: "timestamp: r._value",
																	Start: ast.Position{
																		Column: 62,
																		Line:   40,
																	},
																},
															},
															Comma: nil,
															Key: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 71,
																			Line:   40,
																		},
																		File:   "hour_test.flux",
																		Source: "timestamp",
																		Start: ast.Position{
																			Column: 62,
																			Line:   40,
																		},
																	},
																},
																Name: "timestamp",
															},
															Separator: nil,
															Value: &ast.MemberExpression{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 81,
																			Line:   40,
																		},
																		File:   "hour_test.flux",
																		Source: "r._value",
																		Start: ast.Position{
																			Column: 73,
																			Line:   40,
																		},
																	},
																},
																Lbrack: nil,
																Object: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 74,
																				Line:   40,
																			},
																			File:   "hour_test.flux",
																			Source: "r",
																			Start: ast.Position{
																				Column: 73,
																				Line:   40,
																			},
																		},
																	},
																	Name: "r",
																},
																Property: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 81,
																				Line:   40,
																			},
																			File:   "hour_test.flux",
																			Source: "_value",
																			Start: ast.Position{
																				Column: 75,
																				Line:   40,
																			},
																		},
																	},
																	Name: "_value",
																},
																Rbrack: nil,
															},
														}},
														Rbrace: nil,
														With:   nil,
													}},
													BaseNode: ast.BaseNode{
														Comments: nil,
														Errors:   nil,
														Loc: &ast.SourceLocation{
															End: ast.Position{
																Column: 82,
																Line:   40,
															},
															File:   "hour_test.flux",
															Source: "promql.promqlHour(timestamp: r._value)",
															Start: ast.Position{
																Column: 44,
																Line:   40,
															},
														},
													},
													Callee: &ast.MemberExpression{
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 61,
																	Line:   40,
																},
																File:   "hour_test.flux",
																Source: "promql.promqlHour",
																Start: ast.Position{
																	Column: 44,
																	Line:   40,
																},
															},
														},
														Lbrack: nil,
														Object: &ast.Identifier{
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 50,
																		Line:   40,
																	},
																	File:   "hour_test.flux",
																	Source: "promql",
																	Start: ast.Position{
																		Column: 44,
																		Line:   40,
																	},
																},
															},
															Name: "promql",
														},
														Property: &ast.Identifier{
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 61,
																		Line:   40,
																	},
																	File:   "hour_test.flux",
																	Source: "promqlHour",
																	Start: ast.Position{
																		Column: 51,
																		Line:   40,
																	},
																},
															},
															Name: "promqlHour",
														},
														Rbrack: nil,
													},
													Lparen: nil,
													Rparen: nil,
												},
											}},
											Rbrace: nil,
											With: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 30,
															Line:   40,
														},
														File:   "hour_test.flux",
														Source: "r",
														Start: ast.Position{
															Column: 29,
															Line:   40,
														},
													},
												},
												Name: "r",
											},
										},
										Lparen: nil,
										Rparen: nil,
									},
									Lparen: nil,
									Params: []*ast.Property{&ast.Property{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 22,
													Line:   40,
												},
												File:   "hour_test.flux",
												Source: "r",
												Start: ast.Position{
													Column: 21,
													Line:   40,
												},
											},
										},
										Comma: nil,
										Key: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 22,
														Line:   40,
													},
													File:   "hour_test.flux",
													Source: "r",
													Start: ast.Position{
														Column: 21,
														Line:   40,
													},
												},
											},
											Name: "r",
										},
										Separator: nil,
										Value:     nil,
									}},
									Rparan: nil,
								},
							}},
							Rbrace: nil,
							With:   nil,
						}},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 85,
									Line:   40,
								},
								File:   "hour_test.flux",
								Source: "map(fn: (r) => ({r with _value: promql.promqlHour(timestamp: r._value)}))",
								Start: ast.Position{
									Column: 12,
									Line:   40,
								},
							},
						},
						Callee: &ast.Identifier{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 15,
										Line:   40,
									},
									File:   "hour_test.flux",
									Source: "map",
									Start: ast.Position{
										Column: 12,
										Line:   40,
									},
								},
							},
							Name: "map",
						},
						Lparen: nil,
						Rparen: nil,
					},
				},
				Lparen: nil,
				Params: []*ast.Property{&ast.Property{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 25,
								Line:   35,
							},
							File:   "hour_test.flux",
							Source: "table=<-",
							Start: ast.Position{
								Column: 17,
								Line:   35,
							},
						},
					},
					Comma: nil,
					Key: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 22,
									Line:   35,
								},
								File:   "hour_test.flux",
								Source: "table",
								Start: ast.Position{
									Column: 17,
									Line:   35,
								},
							},
						},
						Name: "table",
					},
					Separator: nil,
					Value: &ast.PipeLiteral{BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 25,
								Line:   35,
							},
							File:   "hour_test.flux",
							Source: "<-",
							Start: ast.Position{
								Column: 23,
								Line:   35,
							},
						},
					}},
				}},
				Rparan: nil,
			},
		}, &ast.TestStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 103,
							Line:   43,
						},
						File:   "hour_test.flux",
						Source: "_promqlHour = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlHour})",
						Start: ast.Position{
							Column: 6,
							Line:   42,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 17,
								Line:   42,
							},
							File:   "hour_test.flux",
							Source: "_promqlHour",
							Start: ast.Position{
								Column: 6,
								Line:   42,
							},
						},
					},
					Name: "_promqlHour",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 103,
								Line:   43,
							},
							File:   "hour_test.flux",
							Source: "() =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlHour})",
							Start: ast.Position{
								Column: 20,
								Line:   42,
							},
						},
					},
					Body: &ast.ParenExpression{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 103,
									Line:   43,
								},
								File:   "hour_test.flux",
								Source: "({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlHour})",
								Start: ast.Position{
									Column: 5,
									Line:   43,
								},
							},
						},
						Expression: &ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 102,
										Line:   43,
									},
									File:   "hour_test.flux",
									Source: "{input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlHour}",
									Start: ast.Position{
										Column: 6,
										Line:   43,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   43,
										},
										File:   "hour_test.flux",
										Source: "input: testing.loadStorage(csv: inData)",
										Start: ast.Position{
											Column: 7,
											Line:   43,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 12,
												Line:   43,
											},
											File:   "hour_test.flux",
											Source: "input",
											Start: ast.Position{
												Column: 7,
												Line:   43,
											},
										},
									},
									Name: "input",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   43,
												},
												File:   "hour_test.flux",
												Source: "csv: inData",
												Start: ast.Position{
													Column: 34,
													Line:   43,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   43,
													},
													File:   "hour_test.flux",
													Source: "csv: inData",
													Start: ast.Position{
														Column: 34,
														Line:   43,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 37,
															Line:   43,
														},
														File:   "hour_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 34,
															Line:   43,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 45,
															Line:   43,
														},
														File:   "hour_test.flux",
														Source: "inData",
														Start: ast.Position{
															Column: 39,
															Line:   43,
														},
													},
												},
												Name: "inData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 46,
												Line:   43,
											},
											File:   "hour_test.flux",
											Source: "testing.loadStorage(csv: inData)",
											Start: ast.Position{
												Column: 14,
												Line:   43,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 33,
													Line:   43,
												},
												File:   "hour_test.flux",
												Source: "testing.loadStorage",
												Start: ast.Position{
													Column: 14,
													Line:   43,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 21,
														Line:   43,
													},
													File:   "hour_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 14,
														Line:   43,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 33,
														Line:   43,
													},
													File:   "hour_test.flux",
													Source: "loadStorage",
													Start: ast.Position{
														Column: 22,
														Line:   43,
													},
												},
											},
											Name: "loadStorage",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 83,
											Line:   43,
										},
										File:   "hour_test.flux",
										Source: "want: testing.loadMem(csv: outData)",
										Start: ast.Position{
											Column: 48,
											Line:   43,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 52,
												Line:   43,
											},
											File:   "hour_test.flux",
											Source: "want",
											Start: ast.Position{
												Column: 48,
												Line:   43,
											},
										},
									},
									Name: "want",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 82,
													Line:   43,
												},
												File:   "hour_test.flux",
												Source: "csv: outData",
												Start: ast.Position{
													Column: 70,
													Line:   43,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 82,
														Line:   43,
													},
													File:   "hour_test.flux",
													Source: "csv: outData",
													Start: ast.Position{
														Column: 70,
														Line:   43,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 73,
															Line:   43,
														},
														File:   "hour_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 70,
															Line:   43,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 82,
															Line:   43,
														},
														File:   "hour_test.flux",
														Source: "outData",
														Start: ast.Position{
															Column: 75,
															Line:   43,
														},
													},
												},
												Name: "outData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 83,
												Line:   43,
											},
											File:   "hour_test.flux",
											Source: "testing.loadMem(csv: outData)",
											Start: ast.Position{
												Column: 54,
												Line:   43,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 69,
													Line:   43,
												},
												File:   "hour_test.flux",
												Source: "testing.loadMem",
												Start: ast.Position{
													Column: 54,
													Line:   43,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 61,
														Line:   43,
													},
													File:   "hour_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 54,
														Line:   43,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 69,
														Line:   43,
													},
													File:   "hour_test.flux",
													Source: "loadMem",
													Start: ast.Position{
														Column: 62,
														Line:   43,
													},
												},
											},
											Name: "loadMem",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 101,
											Line:   43,
										},
										File:   "hour_test.flux",
										Source: "fn: t_promqlHour",
										Start: ast.Position{
											Column: 85,
											Line:   43,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 87,
												Line:   43,
											},
											File:   "hour_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 85,
												Line:   43,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 101,
												Line:   43,
											},
											File:   "hour_test.flux",
											Source: "t_promqlHour",
											Start: ast.Position{
												Column: 89,
												Line:   43,
											},
										},
									},
									Name: "t_promqlHour",
								},
							}},
							Rbrace: nil,
							With:   nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 103,
						Line:   43,
					},
					File:   "hour_test.flux",
					Source: "test _promqlHour = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlHour})",
					Start: ast.Position{
						Column: 1,
						Line:   42,
					},
				},
			},
		}},
		Eof: nil,
		Imports: []*ast.ImportDeclaration{&ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 17,
						Line:   4,
					},
					File:   "hour_test.flux",
					Source: "import \"testing\"",
					Start: ast.Position{
						Column: 1,
						Line:   4,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 17,
							Line:   4,
						},
						File:   "hour_test.flux",
						Source: "\"testing\"",
						Start: ast.Position{
							Column: 8,
							Line:   4,
						},
					},
				},
				Value: "testing",
			},
		}, &ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 25,
						Line:   5,
					},
					File:   "hour_test.flux",
					Source: "import \"internal/promql\"",
					Start: ast.Position{
						Column: 1,
						Line:   5,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 25,
							Line:   5,
						},
						File:   "hour_test.flux",
						Source: "\"internal/promql\"",
						Start: ast.Position{
							Column: 8,
							Line:   5,
						},
					},
				},
				Value: "internal/promql",
			},
		}},
		Metadata: "parser-type=rust",
		Name:     "hour_test.flux",
		Package: &ast.PackageClause{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 20,
						Line:   1,
					},
					File:   "hour_test.flux",
					Source: "package promql_test",
					Start: ast.Position{
						Column: 1,
						Line:   1,
					},
				},
			},
			Name: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 20,
							Line:   1,
						},
						File:   "hour_test.flux",
						Source: "promql_test",
						Start: ast.Position{
							Column: 9,
							Line:   1,
						},
					},
				},
				Name: "promql_test",
			},
		},
	}, &ast.File{
		BaseNode: ast.BaseNode{
			Comments: nil,
			Errors:   nil,
			Loc: &ast.SourceLocation{
				End: ast.Position{
					Column: 104,
					Line:   51,
				},
				File:   "instantRate_test.flux",
				Source: "package promql_test\n\n\nimport \"testing\"\nimport \"internal/promql\"\n\noption now = () => 2030-01-01T00:00:00Z\n\ninData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,100,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,100,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,400,prometheus\n,,3,2018-12-18T20:52:33Z,metric_name4,100,prometheus\n\"\noutData =\n    \"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name1,0,prometheus\n,,1,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name2,0,prometheus\n,,2,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name3,10,prometheus\n\"\nt_instantRate = (table=<-) =>\n    table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)\n        |> promql.instantRate(isRate: true)\n\ntest _instantRate = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_instantRate})",
				Start: ast.Position{
					Column: 1,
					Line:   1,
				},
			},
		},
		Body: []ast.Statement{&ast.OptionStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 40,
							Line:   7,
						},
						File:   "instantRate_test.flux",
						Source: "now = () => 2030-01-01T00:00:00Z",
						Start: ast.Position{
							Column: 8,
							Line:   7,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 11,
								Line:   7,
							},
							File:   "instantRate_test.flux",
							Source: "now",
							Start: ast.Position{
								Column: 8,
								Line:   7,
							},
						},
					},
					Name: "now",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 40,
								Line:   7,
							},
							File:   "instantRate_test.flux",
							Source: "() => 2030-01-01T00:00:00Z",
							Start: ast.Position{
								Column: 14,
								Line:   7,
							},
						},
					},
					Body: &ast.DateTimeLiteral{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 40,
									Line:   7,
								},
								File:   "instantRate_test.flux",
								Source: "2030-01-01T00:00:00Z",
								Start: ast.Position{
									Column: 20,
									Line:   7,
								},
							},
						},
						Value: parser.MustParseTime("2030-01-01T00:00:00Z"),
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 40,
						Line:   7,
					},
					File:   "instantRate_test.flux",
					Source: "option now = () => 2030-01-01T00:00:00Z",
					Start: ast.Position{
						Column: 1,
						Line:   7,
					},
				},
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   34,
					},
					File:   "instantRate_test.flux",
					Source: "inData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,100,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,100,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,400,prometheus\n,,3,2018-12-18T20:52:33Z,metric_name4,100,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   9,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 7,
							Line:   9,
						},
						File:   "instantRate_test.flux",
						Source: "inData",
						Start: ast.Position{
							Column: 1,
							Line:   9,
						},
					},
				},
				Name: "inData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   34,
						},
						File:   "instantRate_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,100,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,100,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,400,prometheus\n,,3,2018-12-18T20:52:33Z,metric_name4,100,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   10,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,100,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,100,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,400,prometheus\n,,3,2018-12-18T20:52:33Z,metric_name4,100,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   44,
					},
					File:   "instantRate_test.flux",
					Source: "outData =\n    \"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name1,0,prometheus\n,,1,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name2,0,prometheus\n,,2,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name3,10,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   35,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 8,
							Line:   35,
						},
						File:   "instantRate_test.flux",
						Source: "outData",
						Start: ast.Position{
							Column: 1,
							Line:   35,
						},
					},
				},
				Name: "outData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   44,
						},
						File:   "instantRate_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name1,0,prometheus\n,,1,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name2,0,prometheus\n,,2,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name3,10,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   36,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name1,0,prometheus\n,,1,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name2,0,prometheus\n,,2,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name3,10,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 44,
						Line:   48,
					},
					File:   "instantRate_test.flux",
					Source: "t_instantRate = (table=<-) =>\n    table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)\n        |> promql.instantRate(isRate: true)",
					Start: ast.Position{
						Column: 1,
						Line:   45,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 14,
							Line:   45,
						},
						File:   "instantRate_test.flux",
						Source: "t_instantRate",
						Start: ast.Position{
							Column: 1,
							Line:   45,
						},
					},
				},
				Name: "t_instantRate",
			},
			Init: &ast.FunctionExpression{
				Arrow: nil,
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 44,
							Line:   48,
						},
						File:   "instantRate_test.flux",
						Source: "(table=<-) =>\n    table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)\n        |> promql.instantRate(isRate: true)",
						Start: ast.Position{
							Column: 17,
							Line:   45,
						},
					},
				},
				Body: &ast.PipeExpression{
					Argument: &ast.PipeExpression{
						Argument: &ast.Identifier{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 10,
										Line:   46,
									},
									File:   "instantRate_test.flux",
									Source: "table",
									Start: ast.Position{
										Column: 5,
										Line:   46,
									},
								},
							},
							Name: "table",
						},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 74,
									Line:   47,
								},
								File:   "instantRate_test.flux",
								Source: "table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)",
								Start: ast.Position{
									Column: 5,
									Line:   46,
								},
							},
						},
						Call: &ast.CallExpression{
							Arguments: []ast.Expression{&ast.ObjectExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 73,
											Line:   47,
										},
										File:   "instantRate_test.flux",
										Source: "start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z",
										Start: ast.Position{
											Column: 18,
											Line:   47,
										},
									},
								},
								Lbrace: nil,
								Properties: []*ast.Property{&ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   47,
											},
											File:   "instantRate_test.flux",
											Source: "start: 2018-12-18T20:50:00Z",
											Start: ast.Position{
												Column: 18,
												Line:   47,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 23,
													Line:   47,
												},
												File:   "instantRate_test.flux",
												Source: "start",
												Start: ast.Position{
													Column: 18,
													Line:   47,
												},
											},
										},
										Name: "start",
									},
									Separator: nil,
									Value: &ast.DateTimeLiteral{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   47,
												},
												File:   "instantRate_test.flux",
												Source: "2018-12-18T20:50:00Z",
												Start: ast.Position{
													Column: 25,
													Line:   47,
												},
											},
										},
										Value: parser.MustParseTime("2018-12-18T20:50:00Z"),
									},
								}, &ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 73,
												Line:   47,
											},
											File:   "instantRate_test.flux",
											Source: "stop: 2018-12-18T20:55:00Z",
											Start: ast.Position{
												Column: 47,
												Line:   47,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 51,
													Line:   47,
												},
												File:   "instantRate_test.flux",
												Source: "stop",
												Start: ast.Position{
													Column: 47,
													Line:   47,
												},
											},
										},
										Name: "stop",
									},
									Separator: nil,
									Value: &ast.DateTimeLiteral{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 73,
													Line:   47,
												},
												File:   "instantRate_test.flux",
												Source: "2018-12-18T20:55:00Z",
												Start: ast.Position{
													Column: 53,
													Line:   47,
												},
											},
										},
										Value: parser.MustParseTime("2018-12-18T20:55:00Z"),
									},
								}},
								Rbrace: nil,
								With:   nil,
							}},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 74,
										Line:   47,
									},
									File:   "instantRate_test.flux",
									Source: "range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)",
									Start: ast.Position{
										Column: 12,
										Line:   47,
									},
								},
							},
							Callee: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 17,
											Line:   47,
										},
										File:   "instantRate_test.flux",
										Source: "range",
										Start: ast.Position{
											Column: 12,
											Line:   47,
										},
									},
								},
								Name: "range",
							},
							Lparen: nil,
							Rparen: nil,
						},
					},
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 44,
								Line:   48,
							},
							File:   "instantRate_test.flux",
							Source: "table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)\n        |> promql.instantRate(isRate: true)",
							Start: ast.Position{
								Column: 5,
								Line:   46,
							},
						},
					},
					Call: &ast.CallExpression{
						Arguments: []ast.Expression{&ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 43,
										Line:   48,
									},
									File:   "instantRate_test.flux",
									Source: "isRate: true",
									Start: ast.Position{
										Column: 31,
										Line:   48,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 43,
											Line:   48,
										},
										File:   "instantRate_test.flux",
										Source: "isRate: true",
										Start: ast.Position{
											Column: 31,
											Line:   48,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 37,
												Line:   48,
											},
											File:   "instantRate_test.flux",
											Source: "isRate",
											Start: ast.Position{
												Column: 31,
												Line:   48,
											},
										},
									},
									Name: "isRate",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 43,
												Line:   48,
											},
											File:   "instantRate_test.flux",
											Source: "true",
											Start: ast.Position{
												Column: 39,
												Line:   48,
											},
										},
									},
									Name: "true",
								},
							}},
							Rbrace: nil,
							With:   nil,
						}},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 44,
									Line:   48,
								},
								File:   "instantRate_test.flux",
								Source: "promql.instantRate(isRate: true)",
								Start: ast.Position{
									Column: 12,
									Line:   48,
								},
							},
						},
						Callee: &ast.MemberExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 30,
										Line:   48,
									},
									File:   "instantRate_test.flux",
									Source: "promql.instantRate",
									Start: ast.Position{
										Column: 12,
										Line:   48,
									},
								},
							},
							Lbrack: nil,
							Object: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 18,
											Line:   48,
										},
										File:   "instantRate_test.flux",
										Source: "promql",
										Start: ast.Position{
											Column: 12,
											Line:   48,
										},
									},
								},
								Name: "promql",
							},
							Property: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 30,
											Line:   48,
										},
										File:   "instantRate_test.flux",
										Source: "instantRate",
										Start: ast.Position{
											Column: 19,
											Line:   48,
										},
									},
								},
								Name: "instantRate",
							},
							Rbrack: nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
				},
				Lparen: nil,
				Params: []*ast.Property{&ast.Property{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 26,
								Line:   45,
							},
							File:   "instantRate_test.flux",
							Source: "table=<-",
							Start: ast.Position{
								Column: 18,
								Line:   45,
							},
						},
					},
					Comma: nil,
					Key: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 23,
									Line:   45,
								},
								File:   "instantRate_test.flux",
								Source: "table",
								Start: ast.Position{
									Column: 18,
									Line:   45,
								},
							},
						},
						Name: "table",
					},
					Separator: nil,
					Value: &ast.PipeLiteral{BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 26,
								Line:   45,
							},
							File:   "instantRate_test.flux",
							Source: "<-",
							Start: ast.Position{
								Column: 24,
								Line:   45,
							},
						},
					}},
				}},
				Rparan: nil,
			},
		}, &ast.TestStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 104,
							Line:   51,
						},
						File:   "instantRate_test.flux",
						Source: "_instantRate = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_instantRate})",
						Start: ast.Position{
							Column: 6,
							Line:   50,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 18,
								Line:   50,
							},
							File:   "instantRate_test.flux",
							Source: "_instantRate",
							Start: ast.Position{
								Column: 6,
								Line:   50,
							},
						},
					},
					Name: "_instantRate",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 104,
								Line:   51,
							},
							File:   "instantRate_test.flux",
							Source: "() =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_instantRate})",
							Start: ast.Position{
								Column: 21,
								Line:   50,
							},
						},
					},
					Body: &ast.ParenExpression{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 104,
									Line:   51,
								},
								File:   "instantRate_test.flux",
								Source: "({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_instantRate})",
								Start: ast.Position{
									Column: 5,
									Line:   51,
								},
							},
						},
						Expression: &ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 103,
										Line:   51,
									},
									File:   "instantRate_test.flux",
									Source: "{input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_instantRate}",
									Start: ast.Position{
										Column: 6,
										Line:   51,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   51,
										},
										File:   "instantRate_test.flux",
										Source: "input: testing.loadStorage(csv: inData)",
										Start: ast.Position{
											Column: 7,
											Line:   51,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 12,
												Line:   51,
											},
											File:   "instantRate_test.flux",
											Source: "input",
											Start: ast.Position{
												Column: 7,
												Line:   51,
											},
										},
									},
									Name: "input",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   51,
												},
												File:   "instantRate_test.flux",
												Source: "csv: inData",
												Start: ast.Position{
													Column: 34,
													Line:   51,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   51,
													},
													File:   "instantRate_test.flux",
													Source: "csv: inData",
													Start: ast.Position{
														Column: 34,
														Line:   51,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 37,
															Line:   51,
														},
														File:   "instantRate_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 34,
															Line:   51,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 45,
															Line:   51,
														},
														File:   "instantRate_test.flux",
														Source: "inData",
														Start: ast.Position{
															Column: 39,
															Line:   51,
														},
													},
												},
												Name: "inData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 46,
												Line:   51,
											},
											File:   "instantRate_test.flux",
											Source: "testing.loadStorage(csv: inData)",
											Start: ast.Position{
												Column: 14,
												Line:   51,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 33,
													Line:   51,
												},
												File:   "instantRate_test.flux",
												Source: "testing.loadStorage",
												Start: ast.Position{
													Column: 14,
													Line:   51,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 21,
														Line:   51,
													},
													File:   "instantRate_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 14,
														Line:   51,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 33,
														Line:   51,
													},
													File:   "instantRate_test.flux",
													Source: "loadStorage",
													Start: ast.Position{
														Column: 22,
														Line:   51,
													},
												},
											},
											Name: "loadStorage",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 83,
											Line:   51,
										},
										File:   "instantRate_test.flux",
										Source: "want: testing.loadMem(csv: outData)",
										Start: ast.Position{
											Column: 48,
											Line:   51,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 52,
												Line:   51,
											},
											File:   "instantRate_test.flux",
											Source: "want",
											Start: ast.Position{
												Column: 48,
												Line:   51,
											},
										},
									},
									Name: "want",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 82,
													Line:   51,
												},
												File:   "instantRate_test.flux",
												Source: "csv: outData",
												Start: ast.Position{
													Column: 70,
													Line:   51,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 82,
														Line:   51,
													},
													File:   "instantRate_test.flux",
													Source: "csv: outData",
													Start: ast.Position{
														Column: 70,
														Line:   51,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 73,
															Line:   51,
														},
														File:   "instantRate_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 70,
															Line:   51,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 82,
															Line:   51,
														},
														File:   "instantRate_test.flux",
														Source: "outData",
														Start: ast.Position{
															Column: 75,
															Line:   51,
														},
													},
												},
												Name: "outData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 83,
												Line:   51,
											},
											File:   "instantRate_test.flux",
											Source: "testing.loadMem(csv: outData)",
											Start: ast.Position{
												Column: 54,
												Line:   51,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 69,
													Line:   51,
												},
												File:   "instantRate_test.flux",
												Source: "testing.loadMem",
												Start: ast.Position{
													Column: 54,
													Line:   51,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 61,
														Line:   51,
													},
													File:   "instantRate_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 54,
														Line:   51,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 69,
														Line:   51,
													},
													File:   "instantRate_test.flux",
													Source: "loadMem",
													Start: ast.Position{
														Column: 62,
														Line:   51,
													},
												},
											},
											Name: "loadMem",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 102,
											Line:   51,
										},
										File:   "instantRate_test.flux",
										Source: "fn: t_instantRate",
										Start: ast.Position{
											Column: 85,
											Line:   51,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 87,
												Line:   51,
											},
											File:   "instantRate_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 85,
												Line:   51,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 102,
												Line:   51,
											},
											File:   "instantRate_test.flux",
											Source: "t_instantRate",
											Start: ast.Position{
												Column: 89,
												Line:   51,
											},
										},
									},
									Name: "t_instantRate",
								},
							}},
							Rbrace: nil,
							With:   nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 104,
						Line:   51,
					},
					File:   "instantRate_test.flux",
					Source: "test _instantRate = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_instantRate})",
					Start: ast.Position{
						Column: 1,
						Line:   50,
					},
				},
			},
		}},
		Eof: nil,
		Imports: []*ast.ImportDeclaration{&ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 17,
						Line:   4,
					},
					File:   "instantRate_test.flux",
					Source: "import \"testing\"",
					Start: ast.Position{
						Column: 1,
						Line:   4,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 17,
							Line:   4,
						},
						File:   "instantRate_test.flux",
						Source: "\"testing\"",
						Start: ast.Position{
							Column: 8,
							Line:   4,
						},
					},
				},
				Value: "testing",
			},
		}, &ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 25,
						Line:   5,
					},
					File:   "instantRate_test.flux",
					Source: "import \"internal/promql\"",
					Start: ast.Position{
						Column: 1,
						Line:   5,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 25,
							Line:   5,
						},
						File:   "instantRate_test.flux",
						Source: "\"internal/promql\"",
						Start: ast.Position{
							Column: 8,
							Line:   5,
						},
					},
				},
				Value: "internal/promql",
			},
		}},
		Metadata: "parser-type=rust",
		Name:     "instantRate_test.flux",
		Package: &ast.PackageClause{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 20,
						Line:   1,
					},
					File:   "instantRate_test.flux",
					Source: "package promql_test",
					Start: ast.Position{
						Column: 1,
						Line:   1,
					},
				},
			},
			Name: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 20,
							Line:   1,
						},
						File:   "instantRate_test.flux",
						Source: "promql_test",
						Start: ast.Position{
							Column: 9,
							Line:   1,
						},
					},
				},
				Name: "promql_test",
			},
		},
	}, &ast.File{
		BaseNode: ast.BaseNode{
			Comments: nil,
			Errors:   nil,
			Loc: &ast.SourceLocation{
				End: ast.Position{
					Column: 105,
					Line:   38,
				},
				File:   "labelReplace_empty_dst_test.flux",
				Source: "package promql_test\n\n\nimport \"testing\"\nimport \"internal/promql\"\n\noption now = () => 2030-01-01T00:00:00Z\n\ninData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,string,string,double,string\n#group,false,false,false,true,true,true,false,true\n#default,inData,,,,,,,\n,result,table,_time,_field,src,dst,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name,source-value-20,original-destination-value,4,prometheus\n\"\noutData =\n    \"\n#datatype,string,long,string,string,double,string\n#group,false,false,true,true,false,true\n#default,outData,,,,,\n,result,table,_field,src,_value,_measurement\n,,0,metric_name,source-value-10,1,prometheus\n,,0,metric_name,source-value-10,2,prometheus\n,,1,metric_name,source-value-20,3,prometheus\n,,1,metric_name,source-value-20,4,prometheus\n\"\nt_labelReplace = (table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.labelReplace(source: \"src\", destination: \"dst\", regex: \".*\", replacement: \"\")\n\ntest _labelReplace = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
				Start: ast.Position{
					Column: 1,
					Line:   1,
				},
			},
		},
		Body: []ast.Statement{&ast.OptionStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 40,
							Line:   7,
						},
						File:   "labelReplace_empty_dst_test.flux",
						Source: "now = () => 2030-01-01T00:00:00Z",
						Start: ast.Position{
							Column: 8,
							Line:   7,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 11,
								Line:   7,
							},
							File:   "labelReplace_empty_dst_test.flux",
							Source: "now",
							Start: ast.Position{
								Column: 8,
								Line:   7,
							},
						},
					},
					Name: "now",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 40,
								Line:   7,
							},
							File:   "labelReplace_empty_dst_test.flux",
							Source: "() => 2030-01-01T00:00:00Z",
							Start: ast.Position{
								Column: 14,
								Line:   7,
							},
						},
					},
					Body: &ast.DateTimeLiteral{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 40,
									Line:   7,
								},
								File:   "labelReplace_empty_dst_test.flux",
								Source: "2030-01-01T00:00:00Z",
								Start: ast.Position{
									Column: 20,
									Line:   7,
								},
							},
						},
						Value: parser.MustParseTime("2030-01-01T00:00:00Z"),
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 40,
						Line:   7,
					},
					File:   "labelReplace_empty_dst_test.flux",
					Source: "option now = () => 2030-01-01T00:00:00Z",
					Start: ast.Position{
						Column: 1,
						Line:   7,
					},
				},
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   19,
					},
					File:   "labelReplace_empty_dst_test.flux",
					Source: "inData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,string,string,double,string\n#group,false,false,false,true,true,true,false,true\n#default,inData,,,,,,,\n,result,table,_time,_field,src,dst,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name,source-value-20,original-destination-value,4,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   9,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 7,
							Line:   9,
						},
						File:   "labelReplace_empty_dst_test.flux",
						Source: "inData",
						Start: ast.Position{
							Column: 1,
							Line:   9,
						},
					},
				},
				Name: "inData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   19,
						},
						File:   "labelReplace_empty_dst_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,string,string,string,double,string\n#group,false,false,false,true,true,true,false,true\n#default,inData,,,,,,,\n,result,table,_time,_field,src,dst,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name,source-value-20,original-destination-value,4,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   10,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,string,string,string,double,string\n#group,false,false,false,true,true,true,false,true\n#default,inData,,,,,,,\n,result,table,_time,_field,src,dst,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name,source-value-20,original-destination-value,4,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   30,
					},
					File:   "labelReplace_empty_dst_test.flux",
					Source: "outData =\n    \"\n#datatype,string,long,string,string,double,string\n#group,false,false,true,true,false,true\n#default,outData,,,,,\n,result,table,_field,src,_value,_measurement\n,,0,metric_name,source-value-10,1,prometheus\n,,0,metric_name,source-value-10,2,prometheus\n,,1,metric_name,source-value-20,3,prometheus\n,,1,metric_name,source-value-20,4,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   20,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 8,
							Line:   20,
						},
						File:   "labelReplace_empty_dst_test.flux",
						Source: "outData",
						Start: ast.Position{
							Column: 1,
							Line:   20,
						},
					},
				},
				Name: "outData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   30,
						},
						File:   "labelReplace_empty_dst_test.flux",
						Source: "\"\n#datatype,string,long,string,string,double,string\n#group,false,false,true,true,false,true\n#default,outData,,,,,\n,result,table,_field,src,_value,_measurement\n,,0,metric_name,source-value-10,1,prometheus\n,,0,metric_name,source-value-10,2,prometheus\n,,1,metric_name,source-value-20,3,prometheus\n,,1,metric_name,source-value-20,4,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   21,
						},
					},
				},
				Value: "\n#datatype,string,long,string,string,double,string\n#group,false,false,true,true,false,true\n#default,outData,,,,,\n,result,table,_field,src,_value,_measurement\n,,0,metric_name,source-value-10,1,prometheus\n,,0,metric_name,source-value-10,2,prometheus\n,,1,metric_name,source-value-20,3,prometheus\n,,1,metric_name,source-value-20,4,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 96,
						Line:   35,
					},
					File:   "labelReplace_empty_dst_test.flux",
					Source: "t_labelReplace = (table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.labelReplace(source: \"src\", destination: \"dst\", regex: \".*\", replacement: \"\")",
					Start: ast.Position{
						Column: 1,
						Line:   31,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 15,
							Line:   31,
						},
						File:   "labelReplace_empty_dst_test.flux",
						Source: "t_labelReplace",
						Start: ast.Position{
							Column: 1,
							Line:   31,
						},
					},
				},
				Name: "t_labelReplace",
			},
			Init: &ast.FunctionExpression{
				Arrow: nil,
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 96,
							Line:   35,
						},
						File:   "labelReplace_empty_dst_test.flux",
						Source: "(table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.labelReplace(source: \"src\", destination: \"dst\", regex: \".*\", replacement: \"\")",
						Start: ast.Position{
							Column: 18,
							Line:   31,
						},
					},
				},
				Body: &ast.PipeExpression{
					Argument: &ast.PipeExpression{
						Argument: &ast.PipeExpression{
							Argument: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 10,
											Line:   32,
										},
										File:   "labelReplace_empty_dst_test.flux",
										Source: "table",
										Start: ast.Position{
											Column: 5,
											Line:   32,
										},
									},
								},
								Name: "table",
							},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 46,
										Line:   33,
									},
									File:   "labelReplace_empty_dst_test.flux",
									Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)",
									Start: ast.Position{
										Column: 5,
										Line:   32,
									},
								},
							},
							Call: &ast.CallExpression{
								Arguments: []ast.Expression{&ast.ObjectExpression{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   33,
											},
											File:   "labelReplace_empty_dst_test.flux",
											Source: "start: 1980-01-01T00:00:00Z",
											Start: ast.Position{
												Column: 18,
												Line:   33,
											},
										},
									},
									Lbrace: nil,
									Properties: []*ast.Property{&ast.Property{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   33,
												},
												File:   "labelReplace_empty_dst_test.flux",
												Source: "start: 1980-01-01T00:00:00Z",
												Start: ast.Position{
													Column: 18,
													Line:   33,
												},
											},
										},
										Comma: nil,
										Key: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 23,
														Line:   33,
													},
													File:   "labelReplace_empty_dst_test.flux",
													Source: "start",
													Start: ast.Position{
														Column: 18,
														Line:   33,
													},
												},
											},
											Name: "start",
										},
										Separator: nil,
										Value: &ast.DateTimeLiteral{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   33,
													},
													File:   "labelReplace_empty_dst_test.flux",
													Source: "1980-01-01T00:00:00Z",
													Start: ast.Position{
														Column: 25,
														Line:   33,
													},
												},
											},
											Value: parser.MustParseTime("1980-01-01T00:00:00Z"),
										},
									}},
									Rbrace: nil,
									With:   nil,
								}},
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   33,
										},
										File:   "labelReplace_empty_dst_test.flux",
										Source: "range(start: 1980-01-01T00:00:00Z)",
										Start: ast.Position{
											Column: 12,
											Line:   33,
										},
									},
								},
								Callee: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 17,
												Line:   33,
											},
											File:   "labelReplace_empty_dst_test.flux",
											Source: "range",
											Start: ast.Position{
												Column: 12,
												Line:   33,
											},
										},
									},
									Name: "range",
								},
								Lparen: nil,
								Rparen: nil,
							},
						},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 46,
									Line:   34,
								},
								File:   "labelReplace_empty_dst_test.flux",
								Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])",
								Start: ast.Position{
									Column: 5,
									Line:   32,
								},
							},
						},
						Call: &ast.CallExpression{
							Arguments: []ast.Expression{&ast.ObjectExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 45,
											Line:   34,
										},
										File:   "labelReplace_empty_dst_test.flux",
										Source: "columns: [\"_start\", \"_stop\"]",
										Start: ast.Position{
											Column: 17,
											Line:   34,
										},
									},
								},
								Lbrace: nil,
								Properties: []*ast.Property{&ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   34,
											},
											File:   "labelReplace_empty_dst_test.flux",
											Source: "columns: [\"_start\", \"_stop\"]",
											Start: ast.Position{
												Column: 17,
												Line:   34,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 24,
													Line:   34,
												},
												File:   "labelReplace_empty_dst_test.flux",
												Source: "columns",
												Start: ast.Position{
													Column: 17,
													Line:   34,
												},
											},
										},
										Name: "columns",
									},
									Separator: nil,
									Value: &ast.ArrayExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   34,
												},
												File:   "labelReplace_empty_dst_test.flux",
												Source: "[\"_start\", \"_stop\"]",
												Start: ast.Position{
													Column: 26,
													Line:   34,
												},
											},
										},
										Elements: []ast.Expression{&ast.StringLiteral{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 35,
														Line:   34,
													},
													File:   "labelReplace_empty_dst_test.flux",
													Source: "\"_start\"",
													Start: ast.Position{
														Column: 27,
														Line:   34,
													},
												},
											},
											Value: "_start",
										}, &ast.StringLiteral{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 44,
														Line:   34,
													},
													File:   "labelReplace_empty_dst_test.flux",
													Source: "\"_stop\"",
													Start: ast.Position{
														Column: 37,
														Line:   34,
													},
												},
											},
											Value: "_stop",
										}},
										Lbrack: nil,
										Rbrack: nil,
									},
								}},
								Rbrace: nil,
								With:   nil,
							}},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 46,
										Line:   34,
									},
									File:   "labelReplace_empty_dst_test.flux",
									Source: "drop(columns: [\"_start\", \"_stop\"])",
									Start: ast.Position{
										Column: 12,
										Line:   34,
									},
								},
							},
							Callee: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 16,
											Line:   34,
										},
										File:   "labelReplace_empty_dst_test.flux",
										Source: "drop",
										Start: ast.Position{
											Column: 12,
											Line:   34,
										},
									},
								},
								Name: "drop",
							},
							Lparen: nil,
							Rparen: nil,
						},
					},
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 96,
								Line:   35,
							},
							File:   "labelReplace_empty_dst_test.flux",
							Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.labelReplace(source: \"src\", destination: \"dst\", regex: \".*\", replacement: \"\")",
							Start: ast.Position{
								Column: 5,
								Line:   32,
							},
						},
					},
					Call: &ast.CallExpression{
						Arguments: []ast.Expression{&ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 95,
										Line:   35,
									},
									File:   "labelReplace_empty_dst_test.flux",
									Source: "source: \"src\", destination: \"dst\", regex: \".*\", replacement: \"\"",
									Start: ast.Position{
										Column: 32,
										Line:   35,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 45,
											Line:   35,
										},
										File:   "labelReplace_empty_dst_test.flux",
										Source: "source: \"src\"",
										Start: ast.Position{
											Column: 32,
											Line:   35,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 38,
												Line:   35,
											},
											File:   "labelReplace_empty_dst_test.flux",
											Source: "source",
											Start: ast.Position{
												Column: 32,
												Line:   35,
											},
										},
									},
									Name: "source",
								},
								Separator: nil,
								Value: &ast.StringLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   35,
											},
											File:   "labelReplace_empty_dst_test.flux",
											Source: "\"src\"",
											Start: ast.Position{
												Column: 40,
												Line:   35,
											},
										},
									},
									Value: "src",
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 65,
											Line:   35,
										},
										File:   "labelReplace_empty_dst_test.flux",
										Source: "destination: \"dst\"",
										Start: ast.Position{
											Column: 47,
											Line:   35,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 58,
												Line:   35,
											},
											File:   "labelReplace_empty_dst_test.flux",
											Source: "destination",
											Start: ast.Position{
												Column: 47,
												Line:   35,
											},
										},
									},
									Name: "destination",
								},
								Separator: nil,
								Value: &ast.StringLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 65,
												Line:   35,
											},
											File:   "labelReplace_empty_dst_test.flux",
											Source: "\"dst\"",
											Start: ast.Position{
												Column: 60,
												Line:   35,
											},
										},
									},
									Value: "dst",
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 78,
											Line:   35,
										},
										File:   "labelReplace_empty_dst_test.flux",
										Source: "regex: \".*\"",
										Start: ast.Position{
											Column: 67,
											Line:   35,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 72,
												Line:   35,
											},
											File:   "labelReplace_empty_dst_test.flux",
											Source: "regex",
											Start: ast.Position{
												Column: 67,
												Line:   35,
											},
										},
									},
									Name: "regex",
								},
								Separator: nil,
								Value: &ast.StringLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 78,
												Line:   35,
											},
											File:   "labelReplace_empty_dst_test.flux",
											Source: "\".*\"",
											Start: ast.Position{
												Column: 74,
												Line:   35,
											},
										},
									},
									Value: ".*",
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 95,
											Line:   35,
										},
										File:   "labelReplace_empty_dst_test.flux",
										Source: "replacement: \"\"",
										Start: ast.Position{
											Column: 80,
											Line:   35,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 91,
												Line:   35,
											},
											File:   "labelReplace_empty_dst_test.flux",
											Source: "replacement",
											Start: ast.Position{
												Column: 80,
												Line:   35,
											},
										},
									},
									Name: "replacement",
								},
								Separator: nil,
								Value: &ast.StringLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 95,
												Line:   35,
											},
											File:   "labelReplace_empty_dst_test.flux",
											Source: "\"\"",
											Start: ast.Position{
												Column: 93,
												Line:   35,
											},
										},
									},
									Value: "",
								},
							}},
							Rbrace: nil,
							With:   nil,
						}},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 96,
									Line:   35,
								},
								File:   "labelReplace_empty_dst_test.flux",
								Source: "promql.labelReplace(source: \"src\", destination: \"dst\", regex: \".*\", replacement: \"\")",
								Start: ast.Position{
									Column: 12,
									Line:   35,
								},
							},
						},
						Callee: &ast.MemberExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 31,
										Line:   35,
									},
									File:   "labelReplace_empty_dst_test.flux",
									Source: "promql.labelReplace",
									Start: ast.Position{
										Column: 12,
										Line:   35,
									},
								},
							},
							Lbrack: nil,
							Object: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 18,
											Line:   35,
										},
										File:   "labelReplace_empty_dst_test.flux",
										Source: "promql",
										Start: ast.Position{
											Column: 12,
											Line:   35,
										},
									},
								},
								Name: "promql",
							},
							Property: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 31,
											Line:   35,
										},
										File:   "labelReplace_empty_dst_test.flux",
										Source: "labelReplace",
										Start: ast.Position{
											Column: 19,
											Line:   35,
										},
									},
								},
								Name: "labelReplace",
							},
							Rbrack: nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
				},
				Lparen: nil,
				Params: []*ast.Property{&ast.Property{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 27,
								Line:   31,
							},
							File:   "labelReplace_empty_dst_test.flux",
							Source: "table=<-",
							Start: ast.Position{
								Column: 19,
								Line:   31,
							},
						},
					},
					Comma: nil,
					Key: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 24,
									Line:   31,
								},
								File:   "labelReplace_empty_dst_test.flux",
								Source: "table",
								Start: ast.Position{
									Column: 19,
									Line:   31,
								},
							},
						},
						Name: "table",
					},
					Separator: nil,
					Value: &ast.PipeLiteral{BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 27,
								Line:   31,
							},
							File:   "labelReplace_empty_dst_test.flux",
							Source: "<-",
							Start: ast.Position{
								Column: 25,
								Line:   31,
							},
						},
					}},
				}},
				Rparan: nil,
			},
		}, &ast.TestStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 105,
							Line:   38,
						},
						File:   "labelReplace_empty_dst_test.flux",
						Source: "_labelReplace = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
						Start: ast.Position{
							Column: 6,
							Line:   37,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 19,
								Line:   37,
							},
							File:   "labelReplace_empty_dst_test.flux",
							Source: "_labelReplace",
							Start: ast.Position{
								Column: 6,
								Line:   37,
							},
						},
					},
					Name: "_labelReplace",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 105,
								Line:   38,
							},
							File:   "labelReplace_empty_dst_test.flux",
							Source: "() =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
							Start: ast.Position{
								Column: 22,
								Line:   37,
							},
						},
					},
					Body: &ast.ParenExpression{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 105,
									Line:   38,
								},
								File:   "labelReplace_empty_dst_test.flux",
								Source: "({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
								Start: ast.Position{
									Column: 5,
									Line:   38,
								},
							},
						},
						Expression: &ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 104,
										Line:   38,
									},
									File:   "labelReplace_empty_dst_test.flux",
									Source: "{input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace}",
									Start: ast.Position{
										Column: 6,
										Line:   38,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   38,
										},
										File:   "labelReplace_empty_dst_test.flux",
										Source: "input: testing.loadStorage(csv: inData)",
										Start: ast.Position{
											Column: 7,
											Line:   38,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 12,
												Line:   38,
											},
											File:   "labelReplace_empty_dst_test.flux",
											Source: "input",
											Start: ast.Position{
												Column: 7,
												Line:   38,
											},
										},
									},
									Name: "input",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   38,
												},
												File:   "labelReplace_empty_dst_test.flux",
												Source: "csv: inData",
												Start: ast.Position{
													Column: 34,
													Line:   38,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   38,
													},
													File:   "labelReplace_empty_dst_test.flux",
													Source: "csv: inData",
													Start: ast.Position{
														Column: 34,
														Line:   38,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 37,
															Line:   38,
														},
														File:   "labelReplace_empty_dst_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 34,
															Line:   38,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 45,
															Line:   38,
														},
														File:   "labelReplace_empty_dst_test.flux",
														Source: "inData",
														Start: ast.Position{
															Column: 39,
															Line:   38,
														},
													},
												},
												Name: "inData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 46,
												Line:   38,
											},
											File:   "labelReplace_empty_dst_test.flux",
											Source: "testing.loadStorage(csv: inData)",
											Start: ast.Position{
												Column: 14,
												Line:   38,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 33,
													Line:   38,
												},
												File:   "labelReplace_empty_dst_test.flux",
												Source: "testing.loadStorage",
												Start: ast.Position{
													Column: 14,
													Line:   38,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 21,
														Line:   38,
													},
													File:   "labelReplace_empty_dst_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 14,
														Line:   38,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 33,
														Line:   38,
													},
													File:   "labelReplace_empty_dst_test.flux",
													Source: "loadStorage",
													Start: ast.Position{
														Column: 22,
														Line:   38,
													},
												},
											},
											Name: "loadStorage",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 83,
											Line:   38,
										},
										File:   "labelReplace_empty_dst_test.flux",
										Source: "want: testing.loadMem(csv: outData)",
										Start: ast.Position{
											Column: 48,
											Line:   38,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 52,
												Line:   38,
											},
											File:   "labelReplace_empty_dst_test.flux",
											Source: "want",
											Start: ast.Position{
												Column: 48,
												Line:   38,
											},
										},
									},
									Name: "want",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 82,
													Line:   38,
												},
												File:   "labelReplace_empty_dst_test.flux",
												Source: "csv: outData",
												Start: ast.Position{
													Column: 70,
													Line:   38,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 82,
														Line:   38,
													},
													File:   "labelReplace_empty_dst_test.flux",
													Source: "csv: outData",
													Start: ast.Position{
														Column: 70,
														Line:   38,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 73,
															Line:   38,
														},
														File:   "labelReplace_empty_dst_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 70,
															Line:   38,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 82,
															Line:   38,
														},
														File:   "labelReplace_empty_dst_test.flux",
														Source: "outData",
														Start: ast.Position{
															Column: 75,
															Line:   38,
														},
													},
												},
												Name: "outData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 83,
												Line:   38,
											},
											File:   "labelReplace_empty_dst_test.flux",
											Source: "testing.loadMem(csv: outData)",
											Start: ast.Position{
												Column: 54,
												Line:   38,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 69,
													Line:   38,
												},
												File:   "labelReplace_empty_dst_test.flux",
												Source: "testing.loadMem",
												Start: ast.Position{
													Column: 54,
													Line:   38,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 61,
														Line:   38,
													},
													File:   "labelReplace_empty_dst_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 54,
														Line:   38,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 69,
														Line:   38,
													},
													File:   "labelReplace_empty_dst_test.flux",
													Source: "loadMem",
													Start: ast.Position{
														Column: 62,
														Line:   38,
													},
												},
											},
											Name: "loadMem",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 103,
											Line:   38,
										},
										File:   "labelReplace_empty_dst_test.flux",
										Source: "fn: t_labelReplace",
										Start: ast.Position{
											Column: 85,
											Line:   38,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 87,
												Line:   38,
											},
											File:   "labelReplace_empty_dst_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 85,
												Line:   38,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 103,
												Line:   38,
											},
											File:   "labelReplace_empty_dst_test.flux",
											Source: "t_labelReplace",
											Start: ast.Position{
												Column: 89,
												Line:   38,
											},
										},
									},
									Name: "t_labelReplace",
								},
							}},
							Rbrace: nil,
							With:   nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 105,
						Line:   38,
					},
					File:   "labelReplace_empty_dst_test.flux",
					Source: "test _labelReplace = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
					Start: ast.Position{
						Column: 1,
						Line:   37,
					},
				},
			},
		}},
		Eof: nil,
		Imports: []*ast.ImportDeclaration{&ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 17,
						Line:   4,
					},
					File:   "labelReplace_empty_dst_test.flux",
					Source: "import \"testing\"",
					Start: ast.Position{
						Column: 1,
						Line:   4,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 17,
							Line:   4,
						},
						File:   "labelReplace_empty_dst_test.flux",
						Source: "\"testing\"",
						Start: ast.Position{
							Column: 8,
							Line:   4,
						},
					},
				},
				Value: "testing",
			},
		}, &ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 25,
						Line:   5,
					},
					File:   "labelReplace_empty_dst_test.flux",
					Source: "import \"internal/promql\"",
					Start: ast.Position{
						Column: 1,
						Line:   5,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 25,
							Line:   5,
						},
						File:   "labelReplace_empty_dst_test.flux",
						Source: "\"internal/promql\"",
						Start: ast.Position{
							Column: 8,
							Line:   5,
						},
					},
				},
				Value: "internal/promql",
			},
		}},
		Metadata: "parser-type=rust",
		Name:     "labelReplace_empty_dst_test.flux",
		Package: &ast.PackageClause{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 20,
						Line:   1,
					},
					File:   "labelReplace_empty_dst_test.flux",
					Source: "package promql_test",
					Start: ast.Position{
						Column: 1,
						Line:   1,
					},
				},
			},
			Name: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 20,
							Line:   1,
						},
						File:   "labelReplace_empty_dst_test.flux",
						Source: "promql_test",
						Start: ast.Position{
							Column: 9,
							Line:   1,
						},
					},
				},
				Name: "promql_test",
			},
		},
	}, &ast.File{
		BaseNode: ast.BaseNode{
			Comments: nil,
			Errors:   nil,
			Loc: &ast.SourceLocation{
				End: ast.Position{
					Column: 105,
					Line:   43,
				},
				File:   "labelReplace_full_string_match_test.flux",
				Source: "package promql_test\n\n\nimport \"testing\"\nimport \"internal/promql\"\n\noption now = () => 2030-01-01T00:00:00Z\n\ninData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,string,string,double,string\n#group,false,false,false,true,true,true,false,true\n#default,inData,,,,,,,\n,result,table,_time,_field,src,dst,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name,source-value-20,original-destination-value,4,prometheus\n\"\noutData =\n    \"\n#datatype,string,long,string,string,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_field,src,dst,_value,_measurement\n,,0,metric_name,source-value-10,destination-value-10,1,prometheus\n,,0,metric_name,source-value-10,destination-value-10,2,prometheus\n,,1,metric_name,source-value-20,destination-value-20,3,prometheus\n,,1,metric_name,source-value-20,destination-value-20,4,prometheus\n\"\nt_labelReplace = (table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.labelReplace(\n            source: \"src\",\n            destination: \"dst\",\n            regex: \"source-value-(.*)\",\n            replacement: \"destination-value-$1\",\n        )\n\ntest _labelReplace = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
				Start: ast.Position{
					Column: 1,
					Line:   1,
				},
			},
		},
		Body: []ast.Statement{&ast.OptionStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 40,
							Line:   7,
						},
						File:   "labelReplace_full_string_match_test.flux",
						Source: "now = () => 2030-01-01T00:00:00Z",
						Start: ast.Position{
							Column: 8,
							Line:   7,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 11,
								Line:   7,
							},
							File:   "labelReplace_full_string_match_test.flux",
							Source: "now",
							Start: ast.Position{
								Column: 8,
								Line:   7,
							},
						},
					},
					Name: "now",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 40,
								Line:   7,
							},
							File:   "labelReplace_full_string_match_test.flux",
							Source: "() => 2030-01-01T00:00:00Z",
							Start: ast.Position{
								Column: 14,
								Line:   7,
							},
						},
					},
					Body: &ast.DateTimeLiteral{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 40,
									Line:   7,
								},
								File:   "labelReplace_full_string_match_test.flux",
								Source: "2030-01-01T00:00:00Z",
								Start: ast.Position{
									Column: 20,
									Line:   7,
								},
							},
						},
						Value: parser.MustParseTime("2030-01-01T00:00:00Z"),
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 40,
						Line:   7,
					},
					File:   "labelReplace_full_string_match_test.flux",
					Source: "option now = () => 2030-01-01T00:00:00Z",
					Start: ast.Position{
						Column: 1,
						Line:   7,
					},
				},
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   19,
					},
					File:   "labelReplace_full_string_match_test.flux",
					Source: "inData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,string,string,double,string\n#group,false,false,false,true,true,true,false,true\n#default,inData,,,,,,,\n,result,table,_time,_field,src,dst,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name,source-value-20,original-destination-value,4,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   9,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 7,
							Line:   9,
						},
						File:   "labelReplace_full_string_match_test.flux",
						Source: "inData",
						Start: ast.Position{
							Column: 1,
							Line:   9,
						},
					},
				},
				Name: "inData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   19,
						},
						File:   "labelReplace_full_string_match_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,string,string,string,double,string\n#group,false,false,false,true,true,true,false,true\n#default,inData,,,,,,,\n,result,table,_time,_field,src,dst,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name,source-value-20,original-destination-value,4,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   10,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,string,string,string,double,string\n#group,false,false,false,true,true,true,false,true\n#default,inData,,,,,,,\n,result,table,_time,_field,src,dst,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name,source-value-20,original-destination-value,4,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   30,
					},
					File:   "labelReplace_full_string_match_test.flux",
					Source: "outData =\n    \"\n#datatype,string,long,string,string,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_field,src,dst,_value,_measurement\n,,0,metric_name,source-value-10,destination-value-10,1,prometheus\n,,0,metric_name,source-value-10,destination-value-10,2,prometheus\n,,1,metric_name,source-value-20,destination-value-20,3,prometheus\n,,1,metric_name,source-value-20,destination-value-20,4,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   20,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 8,
							Line:   20,
						},
						File:   "labelReplace_full_string_match_test.flux",
						Source: "outData",
						Start: ast.Position{
							Column: 1,
							Line:   20,
						},
					},
				},
				Name: "outData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   30,
						},
						File:   "labelReplace_full_string_match_test.flux",
						Source: "\"\n#datatype,string,long,string,string,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_field,src,dst,_value,_measurement\n,,0,metric_name,source-value-10,destination-value-10,1,prometheus\n,,0,metric_name,source-value-10,destination-value-10,2,prometheus\n,,1,metric_name,source-value-20,destination-value-20,3,prometheus\n,,1,metric_name,source-value-20,destination-value-20,4,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   21,
						},
					},
				},
				Value: "\n#datatype,string,long,string,string,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_field,src,dst,_value,_measurement\n,,0,metric_name,source-value-10,destination-value-10,1,prometheus\n,,0,metric_name,source-value-10,destination-value-10,2,prometheus\n,,1,metric_name,source-value-20,destination-value-20,3,prometheus\n,,1,metric_name,source-value-20,destination-value-20,4,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 10,
						Line:   40,
					},
					File:   "labelReplace_full_string_match_test.flux",
					Source: "t_labelReplace = (table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.labelReplace(\n            source: \"src\",\n            destination: \"dst\",\n            regex: \"source-value-(.*)\",\n            replacement: \"destination-value-$1\",\n        )",
					Start: ast.Position{
						Column: 1,
						Line:   31,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 15,
							Line:   31,
						},
						File:   "labelReplace_full_string_match_test.flux",
						Source: "t_labelReplace",
						Start: ast.Position{
							Column: 1,
							Line:   31,
						},
					},
				},
				Name: "t_labelReplace",
			},
			Init: &ast.FunctionExpression{
				Arrow: nil,
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 10,
							Line:   40,
						},
						File:   "labelReplace_full_string_match_test.flux",
						Source: "(table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.labelReplace(\n            source: \"src\",\n            destination: \"dst\",\n            regex: \"source-value-(.*)\",\n            replacement: \"destination-value-$1\",\n        )",
						Start: ast.Position{
							Column: 18,
							Line:   31,
						},
					},
				},
				Body: &ast.PipeExpression{
					Argument: &ast.PipeExpression{
						Argument: &ast.PipeExpression{
							Argument: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 10,
											Line:   32,
										},
										File:   "labelReplace_full_string_match_test.flux",
										Source: "table",
										Start: ast.Position{
											Column: 5,
											Line:   32,
										},
									},
								},
								Name: "table",
							},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 46,
										Line:   33,
									},
									File:   "labelReplace_full_string_match_test.flux",
									Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)",
									Start: ast.Position{
										Column: 5,
										Line:   32,
									},
								},
							},
							Call: &ast.CallExpression{
								Arguments: []ast.Expression{&ast.ObjectExpression{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   33,
											},
											File:   "labelReplace_full_string_match_test.flux",
											Source: "start: 1980-01-01T00:00:00Z",
											Start: ast.Position{
												Column: 18,
												Line:   33,
											},
										},
									},
									Lbrace: nil,
									Properties: []*ast.Property{&ast.Property{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   33,
												},
												File:   "labelReplace_full_string_match_test.flux",
												Source: "start: 1980-01-01T00:00:00Z",
												Start: ast.Position{
													Column: 18,
													Line:   33,
												},
											},
										},
										Comma: nil,
										Key: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 23,
														Line:   33,
													},
													File:   "labelReplace_full_string_match_test.flux",
													Source: "start",
													Start: ast.Position{
														Column: 18,
														Line:   33,
													},
												},
											},
											Name: "start",
										},
										Separator: nil,
										Value: &ast.DateTimeLiteral{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   33,
													},
													File:   "labelReplace_full_string_match_test.flux",
													Source: "1980-01-01T00:00:00Z",
													Start: ast.Position{
														Column: 25,
														Line:   33,
													},
												},
											},
											Value: parser.MustParseTime("1980-01-01T00:00:00Z"),
										},
									}},
									Rbrace: nil,
									With:   nil,
								}},
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   33,
										},
										File:   "labelReplace_full_string_match_test.flux",
										Source: "range(start: 1980-01-01T00:00:00Z)",
										Start: ast.Position{
											Column: 12,
											Line:   33,
										},
									},
								},
								Callee: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 17,
												Line:   33,
											},
											File:   "labelReplace_full_string_match_test.flux",
											Source: "range",
											Start: ast.Position{
												Column: 12,
												Line:   33,
											},
										},
									},
									Name: "range",
								},
								Lparen: nil,
								Rparen: nil,
							},
						},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 46,
									Line:   34,
								},
								File:   "labelReplace_full_string_match_test.flux",
								Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])",
								Start: ast.Position{
									Column: 5,
									Line:   32,
								},
							},
						},
						Call: &ast.CallExpression{
							Arguments: []ast.Expression{&ast.ObjectExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 45,
											Line:   34,
										},
										File:   "labelReplace_full_string_match_test.flux",
										Source: "columns: [\"_start\", \"_stop\"]",
										Start: ast.Position{
											Column: 17,
											Line:   34,
										},
									},
								},
								Lbrace: nil,
								Properties: []*ast.Property{&ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   34,
											},
											File:   "labelReplace_full_string_match_test.flux",
											Source: "columns: [\"_start\", \"_stop\"]",
											Start: ast.Position{
												Column: 17,
												Line:   34,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 24,
													Line:   34,
												},
												File:   "labelReplace_full_string_match_test.flux",
												Source: "columns",
												Start: ast.Position{
													Column: 17,
													Line:   34,
												},
											},
										},
										Name: "columns",
									},
									Separator: nil,
									Value: &ast.ArrayExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   34,
												},
												File:   "labelReplace_full_string_match_test.flux",
												Source: "[\"_start\", \"_stop\"]",
												Start: ast.Position{
													Column: 26,
													Line:   34,
												},
											},
										},
										Elements: []ast.Expression{&ast.StringLiteral{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 35,
														Line:   34,
													},
													File:   "labelReplace_full_string_match_test.flux",
													Source: "\"_start\"",
													Start: ast.Position{
														Column: 27,
														Line:   34,
													},
												},
											},
											Value: "_start",
										}, &ast.StringLiteral{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 44,
														Line:   34,
													},
													File:   "labelReplace_full_string_match_test.flux",
													Source: "\"_stop\"",
													Start: ast.Position{
														Column: 37,
														Line:   34,
													},
												},
											},
											Value: "_stop",
										}},
										Lbrack: nil,
										Rbrack: nil,
									},
								}},
								Rbrace: nil,
								With:   nil,
							}},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 46,
										Line:   34,
									},
									File:   "labelReplace_full_string_match_test.flux",
									Source: "drop(columns: [\"_start\", \"_stop\"])",
									Start: ast.Position{
										Column: 12,
										Line:   34,
									},
								},
							},
							Callee: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 16,
											Line:   34,
										},
										File:   "labelReplace_full_string_match_test.flux",
										Source: "drop",
										Start: ast.Position{
											Column: 12,
											Line:   34,
										},
									},
								},
								Name: "drop",
							},
							Lparen: nil,
							Rparen: nil,
						},
					},
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 10,
								Line:   40,
							},
							File:   "labelReplace_full_string_match_test.flux",
							Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.labelReplace(\n            source: \"src\",\n            destination: \"dst\",\n            regex: \"source-value-(.*)\",\n            replacement: \"destination-value-$1\",\n        )",
							Start: ast.Position{
								Column: 5,
								Line:   32,
							},
						},
					},
					Call: &ast.CallExpression{
						Arguments: []ast.Expression{&ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 48,
										Line:   39,
									},
									File:   "labelReplace_full_string_match_test.flux",
									Source: "source: \"src\",\n            destination: \"dst\",\n            regex: \"source-value-(.*)\",\n            replacement: \"destination-value-$1\"",
									Start: ast.Position{
										Column: 13,
										Line:   36,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 26,
											Line:   36,
										},
										File:   "labelReplace_full_string_match_test.flux",
										Source: "source: \"src\"",
										Start: ast.Position{
											Column: 13,
											Line:   36,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 19,
												Line:   36,
											},
											File:   "labelReplace_full_string_match_test.flux",
											Source: "source",
											Start: ast.Position{
												Column: 13,
												Line:   36,
											},
										},
									},
									Name: "source",
								},
								Separator: nil,
								Value: &ast.StringLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 26,
												Line:   36,
											},
											File:   "labelReplace_full_string_match_test.flux",
											Source: "\"src\"",
											Start: ast.Position{
												Column: 21,
												Line:   36,
											},
										},
									},
									Value: "src",
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 31,
											Line:   37,
										},
										File:   "labelReplace_full_string_match_test.flux",
										Source: "destination: \"dst\"",
										Start: ast.Position{
											Column: 13,
											Line:   37,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 24,
												Line:   37,
											},
											File:   "labelReplace_full_string_match_test.flux",
											Source: "destination",
											Start: ast.Position{
												Column: 13,
												Line:   37,
											},
										},
									},
									Name: "destination",
								},
								Separator: nil,
								Value: &ast.StringLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 31,
												Line:   37,
											},
											File:   "labelReplace_full_string_match_test.flux",
											Source: "\"dst\"",
											Start: ast.Position{
												Column: 26,
												Line:   37,
											},
										},
									},
									Value: "dst",
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 39,
											Line:   38,
										},
										File:   "labelReplace_full_string_match_test.flux",
										Source: "regex: \"source-value-(.*)\"",
										Start: ast.Position{
											Column: 13,
											Line:   38,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 18,
												Line:   38,
											},
											File:   "labelReplace_full_string_match_test.flux",
											Source: "regex",
											Start: ast.Position{
												Column: 13,
												Line:   38,
											},
										},
									},
									Name: "regex",
								},
								Separator: nil,
								Value: &ast.StringLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 39,
												Line:   38,
											},
											File:   "labelReplace_full_string_match_test.flux",
											Source: "\"source-value-(.*)\"",
											Start: ast.Position{
												Column: 20,
												Line:   38,
											},
										},
									},
									Value: "source-value-(.*)",
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 48,
											Line:   39,
										},
										File:   "labelReplace_full_string_match_test.flux",
										Source: "replacement: \"destination-value-$1\"",
										Start: ast.Position{
											Column: 13,
											Line:   39,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 24,
												Line:   39,
											},
											File:   "labelReplace_full_string_match_test.flux",
											Source: "replacement",
											Start: ast.Position{
												Column: 13,
												Line:   39,
											},
										},
									},
									Name: "replacement",
								},
								Separator: nil,
								Value: &ast.StringLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 48,
												Line:   39,
											},
											File:   "labelReplace_full_string_match_test.flux",
											Source: "\"destination-value-$1\"",
											Start: ast.Position{
												Column: 26,
												Line:   39,
											},
										},
									},
									Value: "destination-value-$1",
								},
							}},
							Rbrace: nil,
							With:   nil,
						}},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 10,
									Line:   40,
								},
								File:   "labelReplace_full_string_match_test.flux",
								Source: "promql.labelReplace(\n            source: \"src\",\n            destination: \"dst\",\n            regex: \"source-value-(.*)\",\n            replacement: \"destination-value-$1\",\n        )",
								Start: ast.Position{
									Column: 12,
									Line:   35,
								},
							},
						},
						Callee: &ast.MemberExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 31,
										Line:   35,
									},
									File:   "labelReplace_full_string_match_test.flux",
									Source: "promql.labelReplace",
									Start: ast.Position{
										Column: 12,
										Line:   35,
									},
								},
							},
							Lbrack: nil,
							Object: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 18,
											Line:   35,
										},
										File:   "labelReplace_full_string_match_test.flux",
										Source: "promql",
										Start: ast.Position{
											Column: 12,
											Line:   35,
										},
									},
								},
								Name: "promql",
							},
							Property: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 31,
											Line:   35,
										},
										File:   "labelReplace_full_string_match_test.flux",
										Source: "labelReplace",
										Start: ast.Position{
											Column: 19,
											Line:   35,
										},
									},
								},
								Name: "labelReplace",
							},
							Rbrack: nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
				},
				Lparen: nil,
				Params: []*ast.Property{&ast.Property{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 27,
								Line:   31,
							},
							File:   "labelReplace_full_string_match_test.flux",
							Source: "table=<-",
							Start: ast.Position{
								Column: 19,
								Line:   31,
							},
						},
					},
					Comma: nil,
					Key: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 24,
									Line:   31,
								},
								File:   "labelReplace_full_string_match_test.flux",
								Source: "table",
								Start: ast.Position{
									Column: 19,
									Line:   31,
								},
							},
						},
						Name: "table",
					},
					Separator: nil,
					Value: &ast.PipeLiteral{BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 27,
								Line:   31,
							},
							File:   "labelReplace_full_string_match_test.flux",
							Source: "<-",
							Start: ast.Position{
								Column: 25,
								Line:   31,
							},
						},
					}},
				}},
				Rparan: nil,
			},
		}, &ast.TestStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 105,
							Line:   43,
						},
						File:   "labelReplace_full_string_match_test.flux",
						Source: "_labelReplace = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
						Start: ast.Position{
							Column: 6,
							Line:   42,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 19,
								Line:   42,
							},
							File:   "labelReplace_full_string_match_test.flux",
							Source: "_labelReplace",
							Start: ast.Position{
								Column: 6,
								Line:   42,
							},
						},
					},
					Name: "_labelReplace",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 105,
								Line:   43,
							},
							File:   "labelReplace_full_string_match_test.flux",
							Source: "() =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
							Start: ast.Position{
								Column: 22,
								Line:   42,
							},
						},
					},
					Body: &ast.ParenExpression{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 105,
									Line:   43,
								},
								File:   "labelReplace_full_string_match_test.flux",
								Source: "({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
								Start: ast.Position{
									Column: 5,
									Line:   43,
								},
							},
						},
						Expression: &ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 104,
										Line:   43,
									},
									File:   "labelReplace_full_string_match_test.flux",
									Source: "{input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace}",
									Start: ast.Position{
										Column: 6,
										Line:   43,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   43,
										},
										File:   "labelReplace_full_string_match_test.flux",
										Source: "input: testing.loadStorage(csv: inData)",
										Start: ast.Position{
											Column: 7,
											Line:   43,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 12,
												Line:   43,
											},
											File:   "labelReplace_full_string_match_test.flux",
											Source: "input",
											Start: ast.Position{
												Column: 7,
												Line:   43,
											},
										},
									},
									Name: "input",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   43,
												},
												File:   "labelReplace_full_string_match_test.flux",
												Source: "csv: inData",
												Start: ast.Position{
													Column: 34,
													Line:   43,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   43,
													},
													File:   "labelReplace_full_string_match_test.flux",
													Source: "csv: inData",
													Start: ast.Position{
														Column: 34,
														Line:   43,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 37,
															Line:   43,
														},
														File:   "labelReplace_full_string_match_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 34,
															Line:   43,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 45,
															Line:   43,
														},
														File:   "labelReplace_full_string_match_test.flux",
														Source: "inData",
														Start: ast.Position{
															Column: 39,
															Line:   43,
														},
													},
												},
												Name: "inData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 46,
												Line:   43,
											},
											File:   "labelReplace_full_string_match_test.flux",
											Source: "testing.loadStorage(csv: inData)",
											Start: ast.Position{
												Column: 14,
												Line:   43,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 33,
													Line:   43,
												},
												File:   "labelReplace_full_string_match_test.flux",
												Source: "testing.loadStorage",
												Start: ast.Position{
													Column: 14,
													Line:   43,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 21,
														Line:   43,
													},
													File:   "labelReplace_full_string_match_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 14,
														Line:   43,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 33,
														Line:   43,
													},
													File:   "labelReplace_full_string_match_test.flux",
													Source: "loadStorage",
													Start: ast.Position{
														Column: 22,
														Line:   43,
													},
												},
											},
											Name: "loadStorage",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 83,
											Line:   43,
										},
										File:   "labelReplace_full_string_match_test.flux",
										Source: "want: testing.loadMem(csv: outData)",
										Start: ast.Position{
											Column: 48,
											Line:   43,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 52,
												Line:   43,
											},
											File:   "labelReplace_full_string_match_test.flux",
											Source: "want",
											Start: ast.Position{
												Column: 48,
												Line:   43,
											},
										},
									},
									Name: "want",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 82,
													Line:   43,
												},
												File:   "labelReplace_full_string_match_test.flux",
												Source: "csv: outData",
												Start: ast.Position{
													Column: 70,
													Line:   43,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 82,
														Line:   43,
													},
													File:   "labelReplace_full_string_match_test.flux",
													Source: "csv: outData",
													Start: ast.Position{
														Column: 70,
														Line:   43,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 73,
															Line:   43,
														},
														File:   "labelReplace_full_string_match_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 70,
															Line:   43,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 82,
															Line:   43,
														},
														File:   "labelReplace_full_string_match_test.flux",
														Source: "outData",
														Start: ast.Position{
															Column: 75,
															Line:   43,
														},
													},
												},
												Name: "outData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 83,
												Line:   43,
											},
											File:   "labelReplace_full_string_match_test.flux",
											Source: "testing.loadMem(csv: outData)",
											Start: ast.Position{
												Column: 54,
												Line:   43,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 69,
													Line:   43,
												},
												File:   "labelReplace_full_string_match_test.flux",
												Source: "testing.loadMem",
												Start: ast.Position{
													Column: 54,
													Line:   43,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 61,
														Line:   43,
													},
													File:   "labelReplace_full_string_match_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 54,
														Line:   43,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 69,
														Line:   43,
													},
													File:   "labelReplace_full_string_match_test.flux",
													Source: "loadMem",
													Start: ast.Position{
														Column: 62,
														Line:   43,
													},
												},
											},
											Name: "loadMem",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 103,
											Line:   43,
										},
										File:   "labelReplace_full_string_match_test.flux",
										Source: "fn: t_labelReplace",
										Start: ast.Position{
											Column: 85,
											Line:   43,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 87,
												Line:   43,
											},
											File:   "labelReplace_full_string_match_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 85,
												Line:   43,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 103,
												Line:   43,
											},
											File:   "labelReplace_full_string_match_test.flux",
											Source: "t_labelReplace",
											Start: ast.Position{
												Column: 89,
												Line:   43,
											},
										},
									},
									Name: "t_labelReplace",
								},
							}},
							Rbrace: nil,
							With:   nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 105,
						Line:   43,
					},
					File:   "labelReplace_full_string_match_test.flux",
					Source: "test _labelReplace = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
					Start: ast.Position{
						Column: 1,
						Line:   42,
					},
				},
			},
		}},
		Eof: nil,
		Imports: []*ast.ImportDeclaration{&ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 17,
						Line:   4,
					},
					File:   "labelReplace_full_string_match_test.flux",
					Source: "import \"testing\"",
					Start: ast.Position{
						Column: 1,
						Line:   4,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 17,
							Line:   4,
						},
						File:   "labelReplace_full_string_match_test.flux",
						Source: "\"testing\"",
						Start: ast.Position{
							Column: 8,
							Line:   4,
						},
					},
				},
				Value: "testing",
			},
		}, &ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 25,
						Line:   5,
					},
					File:   "labelReplace_full_string_match_test.flux",
					Source: "import \"internal/promql\"",
					Start: ast.Position{
						Column: 1,
						Line:   5,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 25,
							Line:   5,
						},
						File:   "labelReplace_full_string_match_test.flux",
						Source: "\"internal/promql\"",
						Start: ast.Position{
							Column: 8,
							Line:   5,
						},
					},
				},
				Value: "internal/promql",
			},
		}},
		Metadata: "parser-type=rust",
		Name:     "labelReplace_full_string_match_test.flux",
		Package: &ast.PackageClause{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 20,
						Line:   1,
					},
					File:   "labelReplace_full_string_match_test.flux",
					Source: "package promql_test",
					Start: ast.Position{
						Column: 1,
						Line:   1,
					},
				},
			},
			Name: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 20,
							Line:   1,
						},
						File:   "labelReplace_full_string_match_test.flux",
						Source: "promql_test",
						Start: ast.Position{
							Column: 9,
							Line:   1,
						},
					},
				},
				Name: "promql_test",
			},
		},
	}, &ast.File{
		BaseNode: ast.BaseNode{
			Comments: nil,
			Errors:   nil,
			Loc: &ast.SourceLocation{
				End: ast.Position{
					Column: 105,
					Line:   38,
				},
				File:   "labelReplace_multiple_groups_test.flux",
				Source: "package promql_test\n\n\nimport \"testing\"\nimport \"internal/promql\"\n\noption now = () => 2030-01-01T00:00:00Z\n\ninData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,string,string,double,string\n#group,false,false,false,true,true,true,false,true\n#default,inData,,,,,,,\n,result,table,_time,_field,src,dst,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name,source-value-20,original-destination-value,4,prometheus\n\"\noutData =\n    \"\n#datatype,string,long,string,string,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_field,src,dst,_value,_measurement\n,,0,metric_name,source-value-10,source-value-10,1,prometheus\n,,0,metric_name,source-value-10,source-value-10,2,prometheus\n,,1,metric_name,source-value-20,source-value-20,3,prometheus\n,,1,metric_name,source-value-20,source-value-20,4,prometheus\n\"\nt_labelReplace = (table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.labelReplace(source: \"src\", destination: \"dst\", regex: \"(.*)-value-(.*)\", replacement: \"$1-value-$2\")\n\ntest _labelReplace = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
				Start: ast.Position{
					Column: 1,
					Line:   1,
				},
			},
		},
		Body: []ast.Statement{&ast.OptionStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 40,
							Line:   7,
						},
						File:   "labelReplace_multiple_groups_test.flux",
						Source: "now = () => 2030-01-01T00:00:00Z",
						Start: ast.Position{
							Column: 8,
							Line:   7,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 11,
								Line:   7,
							},
							File:   "labelReplace_multiple_groups_test.flux",
							Source: "now",
							Start: ast.Position{
								Column: 8,
								Line:   7,
							},
						},
					},
					Name: "now",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 40,
								Line:   7,
							},
							File:   "labelReplace_multiple_groups_test.flux",
							Source: "() => 2030-01-01T00:00:00Z",
							Start: ast.Position{
								Column: 14,
								Line:   7,
							},
						},
					},
					Body: &ast.DateTimeLiteral{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 40,
									Line:   7,
								},
								File:   "labelReplace_multiple_groups_test.flux",
								Source: "2030-01-01T00:00:00Z",
								Start: ast.Position{
									Column: 20,
									Line:   7,
								},
							},
						},
						Value: parser.MustParseTime("2030-01-01T00:00:00Z"),
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 40,
						Line:   7,
					},
					File:   "labelReplace_multiple_groups_test.flux",
					Source: "option now = () => 2030-01-01T00:00:00Z",
					Start: ast.Position{
						Column: 1,
						Line:   7,
					},
				},
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   19,
					},
					File:   "labelReplace_multiple_groups_test.flux",
					Source: "inData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,string,string,double,string\n#group,false,false,false,true,true,true,false,true\n#default,inData,,,,,,,\n,result,table,_time,_field,src,dst,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name,source-value-20,original-destination-value,4,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   9,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 7,
							Line:   9,
						},
						File:   "labelReplace_multiple_groups_test.flux",
						Source: "inData",
						Start: ast.Position{
							Column: 1,
							Line:   9,
						},
					},
				},
				Name: "inData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   19,
						},
						File:   "labelReplace_multiple_groups_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,string,string,string,double,string\n#group,false,false,false,true,true,true,false,true\n#default,inData,,,,,,,\n,result,table,_time,_field,src,dst,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name,source-value-20,original-destination-value,4,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   10,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,string,string,string,double,string\n#group,false,false,false,true,true,true,false,true\n#default,inData,,,,,,,\n,result,table,_time,_field,src,dst,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name,source-value-20,original-destination-value,4,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   30,
					},
					File:   "labelReplace_multiple_groups_test.flux",
					Source: "outData =\n    \"\n#datatype,string,long,string,string,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_field,src,dst,_value,_measurement\n,,0,metric_name,source-value-10,source-value-10,1,prometheus\n,,0,metric_name,source-value-10,source-value-10,2,prometheus\n,,1,metric_name,source-value-20,source-value-20,3,prometheus\n,,1,metric_name,source-value-20,source-value-20,4,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   20,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 8,
							Line:   20,
						},
						File:   "labelReplace_multiple_groups_test.flux",
						Source: "outData",
						Start: ast.Position{
							Column: 1,
							Line:   20,
						},
					},
				},
				Name: "outData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   30,
						},
						File:   "labelReplace_multiple_groups_test.flux",
						Source: "\"\n#datatype,string,long,string,string,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_field,src,dst,_value,_measurement\n,,0,metric_name,source-value-10,source-value-10,1,prometheus\n,,0,metric_name,source-value-10,source-value-10,2,prometheus\n,,1,metric_name,source-value-20,source-value-20,3,prometheus\n,,1,metric_name,source-value-20,source-value-20,4,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   21,
						},
					},
				},
				Value: "\n#datatype,string,long,string,string,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_field,src,dst,_value,_measurement\n,,0,metric_name,source-value-10,source-value-10,1,prometheus\n,,0,metric_name,source-value-10,source-value-10,2,prometheus\n,,1,metric_name,source-value-20,source-value-20,3,prometheus\n,,1,metric_name,source-value-20,source-value-20,4,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 120,
						Line:   35,
					},
					File:   "labelReplace_multiple_groups_test.flux",
					Source: "t_labelReplace = (table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.labelReplace(source: \"src\", destination: \"dst\", regex: \"(.*)-value-(.*)\", replacement: \"$1-value-$2\")",
					Start: ast.Position{
						Column: 1,
						Line:   31,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 15,
							Line:   31,
						},
						File:   "labelReplace_multiple_groups_test.flux",
						Source: "t_labelReplace",
						Start: ast.Position{
							Column: 1,
							Line:   31,
						},
					},
				},
				Name: "t_labelReplace",
			},
			Init: &ast.FunctionExpression{
				Arrow: nil,
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 120,
							Line:   35,
						},
						File:   "labelReplace_multiple_groups_test.flux",
						Source: "(table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.labelReplace(source: \"src\", destination: \"dst\", regex: \"(.*)-value-(.*)\", replacement: \"$1-value-$2\")",
						Start: ast.Position{
							Column: 18,
							Line:   31,
						},
					},
				},
				Body: &ast.PipeExpression{
					Argument: &ast.PipeExpression{
						Argument: &ast.PipeExpression{
							Argument: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 10,
											Line:   32,
										},
										File:   "labelReplace_multiple_groups_test.flux",
										Source: "table",
										Start: ast.Position{
											Column: 5,
											Line:   32,
										},
									},
								},
								Name: "table",
							},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 46,
										Line:   33,
									},
									File:   "labelReplace_multiple_groups_test.flux",
									Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)",
									Start: ast.Position{
										Column: 5,
										Line:   32,
									},
								},
							},
							Call: &ast.CallExpression{
								Arguments: []ast.Expression{&ast.ObjectExpression{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   33,
											},
											File:   "labelReplace_multiple_groups_test.flux",
											Source: "start: 1980-01-01T00:00:00Z",
											Start: ast.Position{
												Column: 18,
												Line:   33,
											},
										},
									},
									Lbrace: nil,
									Properties: []*ast.Property{&ast.Property{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   33,
												},
												File:   "labelReplace_multiple_groups_test.flux",
												Source: "start: 1980-01-01T00:00:00Z",
												Start: ast.Position{
													Column: 18,
													Line:   33,
												},
											},
										},
										Comma: nil,
										Key: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 23,
														Line:   33,
													},
													File:   "labelReplace_multiple_groups_test.flux",
													Source: "start",
													Start: ast.Position{
														Column: 18,
														Line:   33,
													},
												},
											},
											Name: "start",
										},
										Separator: nil,
										Value: &ast.DateTimeLiteral{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   33,
													},
													File:   "labelReplace_multiple_groups_test.flux",
													Source: "1980-01-01T00:00:00Z",
													Start: ast.Position{
														Column: 25,
														Line:   33,
													},
												},
											},
											Value: parser.MustParseTime("1980-01-01T00:00:00Z"),
										},
									}},
									Rbrace: nil,
									With:   nil,
								}},
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   33,
										},
										File:   "labelReplace_multiple_groups_test.flux",
										Source: "range(start: 1980-01-01T00:00:00Z)",
										Start: ast.Position{
											Column: 12,
											Line:   33,
										},
									},
								},
								Callee: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 17,
												Line:   33,
											},
											File:   "labelReplace_multiple_groups_test.flux",
											Source: "range",
											Start: ast.Position{
												Column: 12,
												Line:   33,
											},
										},
									},
									Name: "range",
								},
								Lparen: nil,
								Rparen: nil,
							},
						},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 46,
									Line:   34,
								},
								File:   "labelReplace_multiple_groups_test.flux",
								Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])",
								Start: ast.Position{
									Column: 5,
									Line:   32,
								},
							},
						},
						Call: &ast.CallExpression{
							Arguments: []ast.Expression{&ast.ObjectExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 45,
											Line:   34,
										},
										File:   "labelReplace_multiple_groups_test.flux",
										Source: "columns: [\"_start\", \"_stop\"]",
										Start: ast.Position{
											Column: 17,
											Line:   34,
										},
									},
								},
								Lbrace: nil,
								Properties: []*ast.Property{&ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   34,
											},
											File:   "labelReplace_multiple_groups_test.flux",
											Source: "columns: [\"_start\", \"_stop\"]",
											Start: ast.Position{
												Column: 17,
												Line:   34,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 24,
													Line:   34,
												},
												File:   "labelReplace_multiple_groups_test.flux",
												Source: "columns",
												Start: ast.Position{
													Column: 17,
													Line:   34,
												},
											},
										},
										Name: "columns",
									},
									Separator: nil,
									Value: &ast.ArrayExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   34,
												},
												File:   "labelReplace_multiple_groups_test.flux",
												Source: "[\"_start\", \"_stop\"]",
												Start: ast.Position{
													Column: 26,
													Line:   34,
												},
											},
										},
										Elements: []ast.Expression{&ast.StringLiteral{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 35,
														Line:   34,
													},
													File:   "labelReplace_multiple_groups_test.flux",
													Source: "\"_start\"",
													Start: ast.Position{
														Column: 27,
														Line:   34,
													},
												},
											},
											Value: "_start",
										}, &ast.StringLiteral{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 44,
														Line:   34,
													},
													File:   "labelReplace_multiple_groups_test.flux",
													Source: "\"_stop\"",
													Start: ast.Position{
														Column: 37,
														Line:   34,
													},
												},
											},
											Value: "_stop",
										}},
										Lbrack: nil,
										Rbrack: nil,
									},
								}},
								Rbrace: nil,
								With:   nil,
							}},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 46,
										Line:   34,
									},
									File:   "labelReplace_multiple_groups_test.flux",
									Source: "drop(columns: [\"_start\", \"_stop\"])",
									Start: ast.Position{
										Column: 12,
										Line:   34,
									},
								},
							},
							Callee: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 16,
											Line:   34,
										},
										File:   "labelReplace_multiple_groups_test.flux",
										Source: "drop",
										Start: ast.Position{
											Column: 12,
											Line:   34,
										},
									},
								},
								Name: "drop",
							},
							Lparen: nil,
							Rparen: nil,
						},
					},
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 120,
								Line:   35,
							},
							File:   "labelReplace_multiple_groups_test.flux",
							Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.labelReplace(source: \"src\", destination: \"dst\", regex: \"(.*)-value-(.*)\", replacement: \"$1-value-$2\")",
							Start: ast.Position{
								Column: 5,
								Line:   32,
							},
						},
					},
					Call: &ast.CallExpression{
						Arguments: []ast.Expression{&ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 119,
										Line:   35,
									},
									File:   "labelReplace_multiple_groups_test.flux",
									Source: "source: \"src\", destination: \"dst\", regex: \"(.*)-value-(.*)\", replacement: \"$1-value-$2\"",
									Start: ast.Position{
										Column: 32,
										Line:   35,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 45,
											Line:   35,
										},
										File:   "labelReplace_multiple_groups_test.flux",
										Source: "source: \"src\"",
										Start: ast.Position{
											Column: 32,
											Line:   35,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 38,
												Line:   35,
											},
											File:   "labelReplace_multiple_groups_test.flux",
											Source: "source",
											Start: ast.Position{
												Column: 32,
												Line:   35,
											},
										},
									},
									Name: "source",
								},
								Separator: nil,
								Value: &ast.StringLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   35,
											},
											File:   "labelReplace_multiple_groups_test.flux",
											Source: "\"src\"",
											Start: ast.Position{
												Column: 40,
												Line:   35,
											},
										},
									},
									Value: "src",
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 65,
											Line:   35,
										},
										File:   "labelReplace_multiple_groups_test.flux",
										Source: "destination: \"dst\"",
										Start: ast.Position{
											Column: 47,
											Line:   35,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 58,
												Line:   35,
											},
											File:   "labelReplace_multiple_groups_test.flux",
											Source: "destination",
											Start: ast.Position{
												Column: 47,
												Line:   35,
											},
										},
									},
									Name: "destination",
								},
								Separator: nil,
								Value: &ast.StringLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 65,
												Line:   35,
											},
											File:   "labelReplace_multiple_groups_test.flux",
											Source: "\"dst\"",
											Start: ast.Position{
												Column: 60,
												Line:   35,
											},
										},
									},
									Value: "dst",
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 91,
											Line:   35,
										},
										File:   "labelReplace_multiple_groups_test.flux",
										Source: "regex: \"(.*)-value-(.*)\"",
										Start: ast.Position{
											Column: 67,
											Line:   35,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 72,
												Line:   35,
											},
											File:   "labelReplace_multiple_groups_test.flux",
											Source: "regex",
											Start: ast.Position{
												Column: 67,
												Line:   35,
											},
										},
									},
									Name: "regex",
								},
								Separator: nil,
								Value: &ast.StringLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 91,
												Line:   35,
											},
											File:   "labelReplace_multiple_groups_test.flux",
											Source: "\"(.*)-value-(.*)\"",
											Start: ast.Position{
												Column: 74,
												Line:   35,
											},
										},
									},
									Value: "(.*)-value-(.*)",
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 119,
											Line:   35,
										},
										File:   "labelReplace_multiple_groups_test.flux",
										Source: "replacement: \"$1-value-$2\"",
										Start: ast.Position{
											Column: 93,
											Line:   35,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 104,
												Line:   35,
											},
											File:   "labelReplace_multiple_groups_test.flux",
											Source: "replacement",
											Start: ast.Position{
												Column: 93,
												Line:   35,
											},
										},
									},
									Name: "replacement",
								},
								Separator: nil,
								Value: &ast.StringLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 119,
												Line:   35,
											},
											File:   "labelReplace_multiple_groups_test.flux",
											Source: "\"$1-value-$2\"",
											Start: ast.Position{
												Column: 106,
												Line:   35,
											},
										},
									},
									Value: "$1-value-$2",
								},
							}},
							Rbrace: nil,
							With:   nil,
						}},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 120,
									Line:   35,
								},
								File:   "labelReplace_multiple_groups_test.flux",
								Source: "promql.labelReplace(source: \"src\", destination: \"dst\", regex: \"(.*)-value-(.*)\", replacement: \"$1-value-$2\")",
								Start: ast.Position{
									Column: 12,
									Line:   35,
								},
							},
						},
						Callee: &ast.MemberExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 31,
										Line:   35,
									},
									File:   "labelReplace_multiple_groups_test.flux",
									Source: "promql.labelReplace",
									Start: ast.Position{
										Column: 12,
										Line:   35,
									},
								},
							},
							Lbrack: nil,
							Object: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 18,
											Line:   35,
										},
										File:   "labelReplace_multiple_groups_test.flux",
										Source: "promql",
										Start: ast.Position{
											Column: 12,
											Line:   35,
										},
									},
								},
								Name: "promql",
							},
							Property: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 31,
											Line:   35,
										},
										File:   "labelReplace_multiple_groups_test.flux",
										Source: "labelReplace",
										Start: ast.Position{
											Column: 19,
											Line:   35,
										},
									},
								},
								Name: "labelReplace",
							},
							Rbrack: nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
				},
				Lparen: nil,
				Params: []*ast.Property{&ast.Property{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 27,
								Line:   31,
							},
							File:   "labelReplace_multiple_groups_test.flux",
							Source: "table=<-",
							Start: ast.Position{
								Column: 19,
								Line:   31,
							},
						},
					},
					Comma: nil,
					Key: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 24,
									Line:   31,
								},
								File:   "labelReplace_multiple_groups_test.flux",
								Source: "table",
								Start: ast.Position{
									Column: 19,
									Line:   31,
								},
							},
						},
						Name: "table",
					},
					Separator: nil,
					Value: &ast.PipeLiteral{BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 27,
								Line:   31,
							},
							File:   "labelReplace_multiple_groups_test.flux",
							Source: "<-",
							Start: ast.Position{
								Column: 25,
								Line:   31,
							},
						},
					}},
				}},
				Rparan: nil,
			},
		}, &ast.TestStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 105,
							Line:   38,
						},
						File:   "labelReplace_multiple_groups_test.flux",
						Source: "_labelReplace = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
						Start: ast.Position{
							Column: 6,
							Line:   37,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 19,
								Line:   37,
							},
							File:   "labelReplace_multiple_groups_test.flux",
							Source: "_labelReplace",
							Start: ast.Position{
								Column: 6,
								Line:   37,
							},
						},
					},
					Name: "_labelReplace",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 105,
								Line:   38,
							},
							File:   "labelReplace_multiple_groups_test.flux",
							Source: "() =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
							Start: ast.Position{
								Column: 22,
								Line:   37,
							},
						},
					},
					Body: &ast.ParenExpression{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 105,
									Line:   38,
								},
								File:   "labelReplace_multiple_groups_test.flux",
								Source: "({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
								Start: ast.Position{
									Column: 5,
									Line:   38,
								},
							},
						},
						Expression: &ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 104,
										Line:   38,
									},
									File:   "labelReplace_multiple_groups_test.flux",
									Source: "{input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace}",
									Start: ast.Position{
										Column: 6,
										Line:   38,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   38,
										},
										File:   "labelReplace_multiple_groups_test.flux",
										Source: "input: testing.loadStorage(csv: inData)",
										Start: ast.Position{
											Column: 7,
											Line:   38,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 12,
												Line:   38,
											},
											File:   "labelReplace_multiple_groups_test.flux",
											Source: "input",
											Start: ast.Position{
												Column: 7,
												Line:   38,
											},
										},
									},
									Name: "input",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   38,
												},
												File:   "labelReplace_multiple_groups_test.flux",
												Source: "csv: inData",
												Start: ast.Position{
													Column: 34,
													Line:   38,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   38,
													},
													File:   "labelReplace_multiple_groups_test.flux",
													Source: "csv: inData",
													Start: ast.Position{
														Column: 34,
														Line:   38,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 37,
															Line:   38,
														},
														File:   "labelReplace_multiple_groups_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 34,
															Line:   38,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 45,
															Line:   38,
														},
														File:   "labelReplace_multiple_groups_test.flux",
														Source: "inData",
														Start: ast.Position{
															Column: 39,
															Line:   38,
														},
													},
												},
												Name: "inData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 46,
												Line:   38,
											},
											File:   "labelReplace_multiple_groups_test.flux",
											Source: "testing.loadStorage(csv: inData)",
											Start: ast.Position{
												Column: 14,
												Line:   38,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 33,
													Line:   38,
												},
												File:   "labelReplace_multiple_groups_test.flux",
												Source: "testing.loadStorage",
												Start: ast.Position{
													Column: 14,
													Line:   38,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 21,
														Line:   38,
													},
													File:   "labelReplace_multiple_groups_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 14,
														Line:   38,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 33,
														Line:   38,
													},
													File:   "labelReplace_multiple_groups_test.flux",
													Source: "loadStorage",
													Start: ast.Position{
														Column: 22,
														Line:   38,
													},
												},
											},
											Name: "loadStorage",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 83,
											Line:   38,
										},
										File:   "labelReplace_multiple_groups_test.flux",
										Source: "want: testing.loadMem(csv: outData)",
										Start: ast.Position{
											Column: 48,
											Line:   38,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 52,
												Line:   38,
											},
											File:   "labelReplace_multiple_groups_test.flux",
											Source: "want",
											Start: ast.Position{
												Column: 48,
												Line:   38,
											},
										},
									},
									Name: "want",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 82,
													Line:   38,
												},
												File:   "labelReplace_multiple_groups_test.flux",
												Source: "csv: outData",
												Start: ast.Position{
													Column: 70,
													Line:   38,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 82,
														Line:   38,
													},
													File:   "labelReplace_multiple_groups_test.flux",
													Source: "csv: outData",
													Start: ast.Position{
														Column: 70,
														Line:   38,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 73,
															Line:   38,
														},
														File:   "labelReplace_multiple_groups_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 70,
															Line:   38,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 82,
															Line:   38,
														},
														File:   "labelReplace_multiple_groups_test.flux",
														Source: "outData",
														Start: ast.Position{
															Column: 75,
															Line:   38,
														},
													},
												},
												Name: "outData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 83,
												Line:   38,
											},
											File:   "labelReplace_multiple_groups_test.flux",
											Source: "testing.loadMem(csv: outData)",
											Start: ast.Position{
												Column: 54,
												Line:   38,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 69,
													Line:   38,
												},
												File:   "labelReplace_multiple_groups_test.flux",
												Source: "testing.loadMem",
												Start: ast.Position{
													Column: 54,
													Line:   38,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 61,
														Line:   38,
													},
													File:   "labelReplace_multiple_groups_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 54,
														Line:   38,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 69,
														Line:   38,
													},
													File:   "labelReplace_multiple_groups_test.flux",
													Source: "loadMem",
													Start: ast.Position{
														Column: 62,
														Line:   38,
													},
												},
											},
											Name: "loadMem",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 103,
											Line:   38,
										},
										File:   "labelReplace_multiple_groups_test.flux",
										Source: "fn: t_labelReplace",
										Start: ast.Position{
											Column: 85,
											Line:   38,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 87,
												Line:   38,
											},
											File:   "labelReplace_multiple_groups_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 85,
												Line:   38,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 103,
												Line:   38,
											},
											File:   "labelReplace_multiple_groups_test.flux",
											Source: "t_labelReplace",
											Start: ast.Position{
												Column: 89,
												Line:   38,
											},
										},
									},
									Name: "t_labelReplace",
								},
							}},
							Rbrace: nil,
							With:   nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 105,
						Line:   38,
					},
					File:   "labelReplace_multiple_groups_test.flux",
					Source: "test _labelReplace = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
					Start: ast.Position{
						Column: 1,
						Line:   37,
					},
				},
			},
		}},
		Eof: nil,
		Imports: []*ast.ImportDeclaration{&ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 17,
						Line:   4,
					},
					File:   "labelReplace_multiple_groups_test.flux",
					Source: "import \"testing\"",
					Start: ast.Position{
						Column: 1,
						Line:   4,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 17,
							Line:   4,
						},
						File:   "labelReplace_multiple_groups_test.flux",
						Source: "\"testing\"",
						Start: ast.Position{
							Column: 8,
							Line:   4,
						},
					},
				},
				Value: "testing",
			},
		}, &ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 25,
						Line:   5,
					},
					File:   "labelReplace_multiple_groups_test.flux",
					Source: "import \"internal/promql\"",
					Start: ast.Position{
						Column: 1,
						Line:   5,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 25,
							Line:   5,
						},
						File:   "labelReplace_multiple_groups_test.flux",
						Source: "\"internal/promql\"",
						Start: ast.Position{
							Column: 8,
							Line:   5,
						},
					},
				},
				Value: "internal/promql",
			},
		}},
		Metadata: "parser-type=rust",
		Name:     "labelReplace_multiple_groups_test.flux",
		Package: &ast.PackageClause{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 20,
						Line:   1,
					},
					File:   "labelReplace_multiple_groups_test.flux",
					Source: "package promql_test",
					Start: ast.Position{
						Column: 1,
						Line:   1,
					},
				},
			},
			Name: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 20,
							Line:   1,
						},
						File:   "labelReplace_multiple_groups_test.flux",
						Source: "promql_test",
						Start: ast.Position{
							Column: 9,
							Line:   1,
						},
					},
				},
				Name: "promql_test",
			},
		},
	}, &ast.File{
		BaseNode: ast.BaseNode{
			Comments: nil,
			Errors:   nil,
			Loc: &ast.SourceLocation{
				End: ast.Position{
					Column: 105,
					Line:   38,
				},
				File:   "labelReplace_src_empty_test.flux",
				Source: "package promql_test\n\n\nimport \"testing\"\nimport \"internal/promql\"\n\noption now = () => 2030-01-01T00:00:00Z\n\ninData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,string,string,double,string\n#group,false,false,false,true,true,true,false,true\n#default,inData,,,,,,,\n,result,table,_time,_field,src,dst,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name,source-value-20,original-destination-value,4,prometheus\n\"\noutData =\n    \"\n#datatype,string,long,string,string,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_field,src,dst,_value,_measurement\n,,0,metric_name,source-value-10,value-,1,prometheus\n,,0,metric_name,source-value-10,value-,2,prometheus\n,,1,metric_name,source-value-20,value-,3,prometheus\n,,1,metric_name,source-value-20,value-,4,prometheus\n\"\nt_labelReplace = (table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.labelReplace(source: \"nonexistent-src\", destination: \"dst\", regex: \"(.*)\", replacement: \"value-$1\")\n\ntest _labelReplace = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
				Start: ast.Position{
					Column: 1,
					Line:   1,
				},
			},
		},
		Body: []ast.Statement{&ast.OptionStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 40,
							Line:   7,
						},
						File:   "labelReplace_src_empty_test.flux",
						Source: "now = () => 2030-01-01T00:00:00Z",
						Start: ast.Position{
							Column: 8,
							Line:   7,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 11,
								Line:   7,
							},
							File:   "labelReplace_src_empty_test.flux",
							Source: "now",
							Start: ast.Position{
								Column: 8,
								Line:   7,
							},
						},
					},
					Name: "now",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 40,
								Line:   7,
							},
							File:   "labelReplace_src_empty_test.flux",
							Source: "() => 2030-01-01T00:00:00Z",
							Start: ast.Position{
								Column: 14,
								Line:   7,
							},
						},
					},
					Body: &ast.DateTimeLiteral{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 40,
									Line:   7,
								},
								File:   "labelReplace_src_empty_test.flux",
								Source: "2030-01-01T00:00:00Z",
								Start: ast.Position{
									Column: 20,
									Line:   7,
								},
							},
						},
						Value: parser.MustParseTime("2030-01-01T00:00:00Z"),
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 40,
						Line:   7,
					},
					File:   "labelReplace_src_empty_test.flux",
					Source: "option now = () => 2030-01-01T00:00:00Z",
					Start: ast.Position{
						Column: 1,
						Line:   7,
					},
				},
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   19,
					},
					File:   "labelReplace_src_empty_test.flux",
					Source: "inData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,string,string,double,string\n#group,false,false,false,true,true,true,false,true\n#default,inData,,,,,,,\n,result,table,_time,_field,src,dst,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name,source-value-20,original-destination-value,4,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   9,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 7,
							Line:   9,
						},
						File:   "labelReplace_src_empty_test.flux",
						Source: "inData",
						Start: ast.Position{
							Column: 1,
							Line:   9,
						},
					},
				},
				Name: "inData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   19,
						},
						File:   "labelReplace_src_empty_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,string,string,string,double,string\n#group,false,false,false,true,true,true,false,true\n#default,inData,,,,,,,\n,result,table,_time,_field,src,dst,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name,source-value-20,original-destination-value,4,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   10,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,string,string,string,double,string\n#group,false,false,false,true,true,true,false,true\n#default,inData,,,,,,,\n,result,table,_time,_field,src,dst,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name,source-value-20,original-destination-value,4,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   30,
					},
					File:   "labelReplace_src_empty_test.flux",
					Source: "outData =\n    \"\n#datatype,string,long,string,string,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_field,src,dst,_value,_measurement\n,,0,metric_name,source-value-10,value-,1,prometheus\n,,0,metric_name,source-value-10,value-,2,prometheus\n,,1,metric_name,source-value-20,value-,3,prometheus\n,,1,metric_name,source-value-20,value-,4,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   20,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 8,
							Line:   20,
						},
						File:   "labelReplace_src_empty_test.flux",
						Source: "outData",
						Start: ast.Position{
							Column: 1,
							Line:   20,
						},
					},
				},
				Name: "outData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   30,
						},
						File:   "labelReplace_src_empty_test.flux",
						Source: "\"\n#datatype,string,long,string,string,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_field,src,dst,_value,_measurement\n,,0,metric_name,source-value-10,value-,1,prometheus\n,,0,metric_name,source-value-10,value-,2,prometheus\n,,1,metric_name,source-value-20,value-,3,prometheus\n,,1,metric_name,source-value-20,value-,4,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   21,
						},
					},
				},
				Value: "\n#datatype,string,long,string,string,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_field,src,dst,_value,_measurement\n,,0,metric_name,source-value-10,value-,1,prometheus\n,,0,metric_name,source-value-10,value-,2,prometheus\n,,1,metric_name,source-value-20,value-,3,prometheus\n,,1,metric_name,source-value-20,value-,4,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 118,
						Line:   35,
					},
					File:   "labelReplace_src_empty_test.flux",
					Source: "t_labelReplace = (table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.labelReplace(source: \"nonexistent-src\", destination: \"dst\", regex: \"(.*)\", replacement: \"value-$1\")",
					Start: ast.Position{
						Column: 1,
						Line:   31,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 15,
							Line:   31,
						},
						File:   "labelReplace_src_empty_test.flux",
						Source: "t_labelReplace",
						Start: ast.Position{
							Column: 1,
							Line:   31,
						},
					},
				},
				Name: "t_labelReplace",
			},
			Init: &ast.FunctionExpression{
				Arrow: nil,
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 118,
							Line:   35,
						},
						File:   "labelReplace_src_empty_test.flux",
						Source: "(table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.labelReplace(source: \"nonexistent-src\", destination: \"dst\", regex: \"(.*)\", replacement: \"value-$1\")",
						Start: ast.Position{
							Column: 18,
							Line:   31,
						},
					},
				},
				Body: &ast.PipeExpression{
					Argument: &ast.PipeExpression{
						Argument: &ast.PipeExpression{
							Argument: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 10,
											Line:   32,
										},
										File:   "labelReplace_src_empty_test.flux",
										Source: "table",
										Start: ast.Position{
											Column: 5,
											Line:   32,
										},
									},
								},
								Name: "table",
							},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 46,
										Line:   33,
									},
									File:   "labelReplace_src_empty_test.flux",
									Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)",
									Start: ast.Position{
										Column: 5,
										Line:   32,
									},
								},
							},
							Call: &ast.CallExpression{
								Arguments: []ast.Expression{&ast.ObjectExpression{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   33,
											},
											File:   "labelReplace_src_empty_test.flux",
											Source: "start: 1980-01-01T00:00:00Z",
											Start: ast.Position{
												Column: 18,
												Line:   33,
											},
										},
									},
									Lbrace: nil,
									Properties: []*ast.Property{&ast.Property{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   33,
												},
												File:   "labelReplace_src_empty_test.flux",
												Source: "start: 1980-01-01T00:00:00Z",
												Start: ast.Position{
													Column: 18,
													Line:   33,
												},
											},
										},
										Comma: nil,
										Key: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 23,
														Line:   33,
													},
													File:   "labelReplace_src_empty_test.flux",
													Source: "start",
													Start: ast.Position{
														Column: 18,
														Line:   33,
													},
												},
											},
											Name: "start",
										},
										Separator: nil,
										Value: &ast.DateTimeLiteral{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   33,
													},
													File:   "labelReplace_src_empty_test.flux",
													Source: "1980-01-01T00:00:00Z",
													Start: ast.Position{
														Column: 25,
														Line:   33,
													},
												},
											},
											Value: parser.MustParseTime("1980-01-01T00:00:00Z"),
										},
									}},
									Rbrace: nil,
									With:   nil,
								}},
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   33,
										},
										File:   "labelReplace_src_empty_test.flux",
										Source: "range(start: 1980-01-01T00:00:00Z)",
										Start: ast.Position{
											Column: 12,
											Line:   33,
										},
									},
								},
								Callee: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 17,
												Line:   33,
											},
											File:   "labelReplace_src_empty_test.flux",
											Source: "range",
											Start: ast.Position{
												Column: 12,
												Line:   33,
											},
										},
									},
									Name: "range",
								},
								Lparen: nil,
								Rparen: nil,
							},
						},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 46,
									Line:   34,
								},
								File:   "labelReplace_src_empty_test.flux",
								Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])",
								Start: ast.Position{
									Column: 5,
									Line:   32,
								},
							},
						},
						Call: &ast.CallExpression{
							Arguments: []ast.Expression{&ast.ObjectExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 45,
											Line:   34,
										},
										File:   "labelReplace_src_empty_test.flux",
										Source: "columns: [\"_start\", \"_stop\"]",
										Start: ast.Position{
											Column: 17,
											Line:   34,
										},
									},
								},
								Lbrace: nil,
								Properties: []*ast.Property{&ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   34,
											},
											File:   "labelReplace_src_empty_test.flux",
											Source: "columns: [\"_start\", \"_stop\"]",
											Start: ast.Position{
												Column: 17,
												Line:   34,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 24,
													Line:   34,
												},
												File:   "labelReplace_src_empty_test.flux",
												Source: "columns",
												Start: ast.Position{
													Column: 17,
													Line:   34,
												},
											},
										},
										Name: "columns",
									},
									Separator: nil,
									Value: &ast.ArrayExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   34,
												},
												File:   "labelReplace_src_empty_test.flux",
												Source: "[\"_start\", \"_stop\"]",
												Start: ast.Position{
													Column: 26,
													Line:   34,
												},
											},
										},
										Elements: []ast.Expression{&ast.StringLiteral{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 35,
														Line:   34,
													},
													File:   "labelReplace_src_empty_test.flux",
													Source: "\"_start\"",
													Start: ast.Position{
														Column: 27,
														Line:   34,
													},
												},
											},
											Value: "_start",
										}, &ast.StringLiteral{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 44,
														Line:   34,
													},
													File:   "labelReplace_src_empty_test.flux",
													Source: "\"_stop\"",
													Start: ast.Position{
														Column: 37,
														Line:   34,
													},
												},
											},
											Value: "_stop",
										}},
										Lbrack: nil,
										Rbrack: nil,
									},
								}},
								Rbrace: nil,
								With:   nil,
							}},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 46,
										Line:   34,
									},
									File:   "labelReplace_src_empty_test.flux",
									Source: "drop(columns: [\"_start\", \"_stop\"])",
									Start: ast.Position{
										Column: 12,
										Line:   34,
									},
								},
							},
							Callee: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 16,
											Line:   34,
										},
										File:   "labelReplace_src_empty_test.flux",
										Source: "drop",
										Start: ast.Position{
											Column: 12,
											Line:   34,
										},
									},
								},
								Name: "drop",
							},
							Lparen: nil,
							Rparen: nil,
						},
					},
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 118,
								Line:   35,
							},
							File:   "labelReplace_src_empty_test.flux",
							Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.labelReplace(source: \"nonexistent-src\", destination: \"dst\", regex: \"(.*)\", replacement: \"value-$1\")",
							Start: ast.Position{
								Column: 5,
								Line:   32,
							},
						},
					},
					Call: &ast.CallExpression{
						Arguments: []ast.Expression{&ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 117,
										Line:   35,
									},
									File:   "labelReplace_src_empty_test.flux",
									Source: "source: \"nonexistent-src\", destination: \"dst\", regex: \"(.*)\", replacement: \"value-$1\"",
									Start: ast.Position{
										Column: 32,
										Line:   35,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 57,
											Line:   35,
										},
										File:   "labelReplace_src_empty_test.flux",
										Source: "source: \"nonexistent-src\"",
										Start: ast.Position{
											Column: 32,
											Line:   35,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 38,
												Line:   35,
											},
											File:   "labelReplace_src_empty_test.flux",
											Source: "source",
											Start: ast.Position{
												Column: 32,
												Line:   35,
											},
										},
									},
									Name: "source",
								},
								Separator: nil,
								Value: &ast.StringLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 57,
												Line:   35,
											},
											File:   "labelReplace_src_empty_test.flux",
											Source: "\"nonexistent-src\"",
											Start: ast.Position{
												Column: 40,
												Line:   35,
											},
										},
									},
									Value: "nonexistent-src",
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 77,
											Line:   35,
										},
										File:   "labelReplace_src_empty_test.flux",
										Source: "destination: \"dst\"",
										Start: ast.Position{
											Column: 59,
											Line:   35,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 70,
												Line:   35,
											},
											File:   "labelReplace_src_empty_test.flux",
											Source: "destination",
											Start: ast.Position{
												Column: 59,
												Line:   35,
											},
										},
									},
									Name: "destination",
								},
								Separator: nil,
								Value: &ast.StringLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 77,
												Line:   35,
											},
											File:   "labelReplace_src_empty_test.flux",
											Source: "\"dst\"",
											Start: ast.Position{
												Column: 72,
												Line:   35,
											},
										},
									},
									Value: "dst",
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 92,
											Line:   35,
										},
										File:   "labelReplace_src_empty_test.flux",
										Source: "regex: \"(.*)\"",
										Start: ast.Position{
											Column: 79,
											Line:   35,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 84,
												Line:   35,
											},
											File:   "labelReplace_src_empty_test.flux",
											Source: "regex",
											Start: ast.Position{
												Column: 79,
												Line:   35,
											},
										},
									},
									Name: "regex",
								},
								Separator: nil,
								Value: &ast.StringLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 92,
												Line:   35,
											},
											File:   "labelReplace_src_empty_test.flux",
											Source: "\"(.*)\"",
											Start: ast.Position{
												Column: 86,
												Line:   35,
											},
										},
									},
									Value: "(.*)",
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 117,
											Line:   35,
										},
										File:   "labelReplace_src_empty_test.flux",
										Source: "replacement: \"value-$1\"",
										Start: ast.Position{
											Column: 94,
											Line:   35,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 105,
												Line:   35,
											},
											File:   "labelReplace_src_empty_test.flux",
											Source: "replacement",
											Start: ast.Position{
												Column: 94,
												Line:   35,
											},
										},
									},
									Name: "replacement",
								},
								Separator: nil,
								Value: &ast.StringLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 117,
												Line:   35,
											},
											File:   "labelReplace_src_empty_test.flux",
											Source: "\"value-$1\"",
											Start: ast.Position{
												Column: 107,
												Line:   35,
											},
										},
									},
									Value: "value-$1",
								},
							}},
							Rbrace: nil,
							With:   nil,
						}},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 118,
									Line:   35,
								},
								File:   "labelReplace_src_empty_test.flux",
								Source: "promql.labelReplace(source: \"nonexistent-src\", destination: \"dst\", regex: \"(.*)\", replacement: \"value-$1\")",
								Start: ast.Position{
									Column: 12,
									Line:   35,
								},
							},
						},
						Callee: &ast.MemberExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 31,
										Line:   35,
									},
									File:   "labelReplace_src_empty_test.flux",
									Source: "promql.labelReplace",
									Start: ast.Position{
										Column: 12,
										Line:   35,
									},
								},
							},
							Lbrack: nil,
							Object: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 18,
											Line:   35,
										},
										File:   "labelReplace_src_empty_test.flux",
										Source: "promql",
										Start: ast.Position{
											Column: 12,
											Line:   35,
										},
									},
								},
								Name: "promql",
							},
							Property: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 31,
											Line:   35,
										},
										File:   "labelReplace_src_empty_test.flux",
										Source: "labelReplace",
										Start: ast.Position{
											Column: 19,
											Line:   35,
										},
									},
								},
								Name: "labelReplace",
							},
							Rbrack: nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
				},
				Lparen: nil,
				Params: []*ast.Property{&ast.Property{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 27,
								Line:   31,
							},
							File:   "labelReplace_src_empty_test.flux",
							Source: "table=<-",
							Start: ast.Position{
								Column: 19,
								Line:   31,
							},
						},
					},
					Comma: nil,
					Key: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 24,
									Line:   31,
								},
								File:   "labelReplace_src_empty_test.flux",
								Source: "table",
								Start: ast.Position{
									Column: 19,
									Line:   31,
								},
							},
						},
						Name: "table",
					},
					Separator: nil,
					Value: &ast.PipeLiteral{BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 27,
								Line:   31,
							},
							File:   "labelReplace_src_empty_test.flux",
							Source: "<-",
							Start: ast.Position{
								Column: 25,
								Line:   31,
							},
						},
					}},
				}},
				Rparan: nil,
			},
		}, &ast.TestStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 105,
							Line:   38,
						},
						File:   "labelReplace_src_empty_test.flux",
						Source: "_labelReplace = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
						Start: ast.Position{
							Column: 6,
							Line:   37,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 19,
								Line:   37,
							},
							File:   "labelReplace_src_empty_test.flux",
							Source: "_labelReplace",
							Start: ast.Position{
								Column: 6,
								Line:   37,
							},
						},
					},
					Name: "_labelReplace",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 105,
								Line:   38,
							},
							File:   "labelReplace_src_empty_test.flux",
							Source: "() =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
							Start: ast.Position{
								Column: 22,
								Line:   37,
							},
						},
					},
					Body: &ast.ParenExpression{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 105,
									Line:   38,
								},
								File:   "labelReplace_src_empty_test.flux",
								Source: "({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
								Start: ast.Position{
									Column: 5,
									Line:   38,
								},
							},
						},
						Expression: &ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 104,
										Line:   38,
									},
									File:   "labelReplace_src_empty_test.flux",
									Source: "{input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace}",
									Start: ast.Position{
										Column: 6,
										Line:   38,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   38,
										},
										File:   "labelReplace_src_empty_test.flux",
										Source: "input: testing.loadStorage(csv: inData)",
										Start: ast.Position{
											Column: 7,
											Line:   38,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 12,
												Line:   38,
											},
											File:   "labelReplace_src_empty_test.flux",
											Source: "input",
											Start: ast.Position{
												Column: 7,
												Line:   38,
											},
										},
									},
									Name: "input",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   38,
												},
												File:   "labelReplace_src_empty_test.flux",
												Source: "csv: inData",
												Start: ast.Position{
													Column: 34,
													Line:   38,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   38,
													},
													File:   "labelReplace_src_empty_test.flux",
													Source: "csv: inData",
													Start: ast.Position{
														Column: 34,
														Line:   38,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 37,
															Line:   38,
														},
														File:   "labelReplace_src_empty_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 34,
															Line:   38,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 45,
															Line:   38,
														},
														File:   "labelReplace_src_empty_test.flux",
														Source: "inData",
														Start: ast.Position{
															Column: 39,
															Line:   38,
														},
													},
												},
												Name: "inData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 46,
												Line:   38,
											},
											File:   "labelReplace_src_empty_test.flux",
											Source: "testing.loadStorage(csv: inData)",
											Start: ast.Position{
												Column: 14,
												Line:   38,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 33,
													Line:   38,
												},
												File:   "labelReplace_src_empty_test.flux",
												Source: "testing.loadStorage",
												Start: ast.Position{
													Column: 14,
													Line:   38,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 21,
														Line:   38,
													},
													File:   "labelReplace_src_empty_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 14,
														Line:   38,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 33,
														Line:   38,
													},
													File:   "labelReplace_src_empty_test.flux",
													Source: "loadStorage",
													Start: ast.Position{
														Column: 22,
														Line:   38,
													},
												},
											},
											Name: "loadStorage",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 83,
											Line:   38,
										},
										File:   "labelReplace_src_empty_test.flux",
										Source: "want: testing.loadMem(csv: outData)",
										Start: ast.Position{
											Column: 48,
											Line:   38,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 52,
												Line:   38,
											},
											File:   "labelReplace_src_empty_test.flux",
											Source: "want",
											Start: ast.Position{
												Column: 48,
												Line:   38,
											},
										},
									},
									Name: "want",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 82,
													Line:   38,
												},
												File:   "labelReplace_src_empty_test.flux",
												Source: "csv: outData",
												Start: ast.Position{
													Column: 70,
													Line:   38,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 82,
														Line:   38,
													},
													File:   "labelReplace_src_empty_test.flux",
													Source: "csv: outData",
													Start: ast.Position{
														Column: 70,
														Line:   38,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 73,
															Line:   38,
														},
														File:   "labelReplace_src_empty_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 70,
															Line:   38,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 82,
															Line:   38,
														},
														File:   "labelReplace_src_empty_test.flux",
														Source: "outData",
														Start: ast.Position{
															Column: 75,
															Line:   38,
														},
													},
												},
												Name: "outData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 83,
												Line:   38,
											},
											File:   "labelReplace_src_empty_test.flux",
											Source: "testing.loadMem(csv: outData)",
											Start: ast.Position{
												Column: 54,
												Line:   38,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 69,
													Line:   38,
												},
												File:   "labelReplace_src_empty_test.flux",
												Source: "testing.loadMem",
												Start: ast.Position{
													Column: 54,
													Line:   38,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 61,
														Line:   38,
													},
													File:   "labelReplace_src_empty_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 54,
														Line:   38,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 69,
														Line:   38,
													},
													File:   "labelReplace_src_empty_test.flux",
													Source: "loadMem",
													Start: ast.Position{
														Column: 62,
														Line:   38,
													},
												},
											},
											Name: "loadMem",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 103,
											Line:   38,
										},
										File:   "labelReplace_src_empty_test.flux",
										Source: "fn: t_labelReplace",
										Start: ast.Position{
											Column: 85,
											Line:   38,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 87,
												Line:   38,
											},
											File:   "labelReplace_src_empty_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 85,
												Line:   38,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 103,
												Line:   38,
											},
											File:   "labelReplace_src_empty_test.flux",
											Source: "t_labelReplace",
											Start: ast.Position{
												Column: 89,
												Line:   38,
											},
										},
									},
									Name: "t_labelReplace",
								},
							}},
							Rbrace: nil,
							With:   nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 105,
						Line:   38,
					},
					File:   "labelReplace_src_empty_test.flux",
					Source: "test _labelReplace = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
					Start: ast.Position{
						Column: 1,
						Line:   37,
					},
				},
			},
		}},
		Eof: nil,
		Imports: []*ast.ImportDeclaration{&ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 17,
						Line:   4,
					},
					File:   "labelReplace_src_empty_test.flux",
					Source: "import \"testing\"",
					Start: ast.Position{
						Column: 1,
						Line:   4,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 17,
							Line:   4,
						},
						File:   "labelReplace_src_empty_test.flux",
						Source: "\"testing\"",
						Start: ast.Position{
							Column: 8,
							Line:   4,
						},
					},
				},
				Value: "testing",
			},
		}, &ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 25,
						Line:   5,
					},
					File:   "labelReplace_src_empty_test.flux",
					Source: "import \"internal/promql\"",
					Start: ast.Position{
						Column: 1,
						Line:   5,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 25,
							Line:   5,
						},
						File:   "labelReplace_src_empty_test.flux",
						Source: "\"internal/promql\"",
						Start: ast.Position{
							Column: 8,
							Line:   5,
						},
					},
				},
				Value: "internal/promql",
			},
		}},
		Metadata: "parser-type=rust",
		Name:     "labelReplace_src_empty_test.flux",
		Package: &ast.PackageClause{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 20,
						Line:   1,
					},
					File:   "labelReplace_src_empty_test.flux",
					Source: "package promql_test",
					Start: ast.Position{
						Column: 1,
						Line:   1,
					},
				},
			},
			Name: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 20,
							Line:   1,
						},
						File:   "labelReplace_src_empty_test.flux",
						Source: "promql_test",
						Start: ast.Position{
							Column: 9,
							Line:   1,
						},
					},
				},
				Name: "promql_test",
			},
		},
	}, &ast.File{
		BaseNode: ast.BaseNode{
			Comments: nil,
			Errors:   nil,
			Loc: &ast.SourceLocation{
				End: ast.Position{
					Column: 105,
					Line:   43,
				},
				File:   "labelReplace_src_nonexistent_test.flux",
				Source: "package promql_test\n\n\nimport \"testing\"\nimport \"internal/promql\"\n\noption now = () => 2030-01-01T00:00:00Z\n\ninData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,string,string,double,string\n#group,false,false,false,true,true,true,false,true\n#default,inData,,,,,,,\n,result,table,_time,_field,src,dst,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name,source-value-20,original-destination-value,4,prometheus\n\"\noutData =\n    \"\n#datatype,string,long,string,string,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_field,src,dst,_value,_measurement\n,,0,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,metric_name,source-value-20,original-destination-value,4,prometheus\n\"\nt_labelReplace = (table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.labelReplace(\n            source: \"nonexistent-src\",\n            destination: \"dst\",\n            regex: \"source-value-(.*)\",\n            replacement: \"value-$1\",\n        )\n\ntest _labelReplace = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
				Start: ast.Position{
					Column: 1,
					Line:   1,
				},
			},
		},
		Body: []ast.Statement{&ast.OptionStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 40,
							Line:   7,
						},
						File:   "labelReplace_src_nonexistent_test.flux",
						Source: "now = () => 2030-01-01T00:00:00Z",
						Start: ast.Position{
							Column: 8,
							Line:   7,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 11,
								Line:   7,
							},
							File:   "labelReplace_src_nonexistent_test.flux",
							Source: "now",
							Start: ast.Position{
								Column: 8,
								Line:   7,
							},
						},
					},
					Name: "now",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 40,
								Line:   7,
							},
							File:   "labelReplace_src_nonexistent_test.flux",
							Source: "() => 2030-01-01T00:00:00Z",
							Start: ast.Position{
								Column: 14,
								Line:   7,
							},
						},
					},
					Body: &ast.DateTimeLiteral{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 40,
									Line:   7,
								},
								File:   "labelReplace_src_nonexistent_test.flux",
								Source: "2030-01-01T00:00:00Z",
								Start: ast.Position{
									Column: 20,
									Line:   7,
								},
							},
						},
						Value: parser.MustParseTime("2030-01-01T00:00:00Z"),
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 40,
						Line:   7,
					},
					File:   "labelReplace_src_nonexistent_test.flux",
					Source: "option now = () => 2030-01-01T00:00:00Z",
					Start: ast.Position{
						Column: 1,
						Line:   7,
					},
				},
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   19,
					},
					File:   "labelReplace_src_nonexistent_test.flux",
					Source: "inData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,string,string,double,string\n#group,false,false,false,true,true,true,false,true\n#default,inData,,,,,,,\n,result,table,_time,_field,src,dst,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name,source-value-20,original-destination-value,4,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   9,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 7,
							Line:   9,
						},
						File:   "labelReplace_src_nonexistent_test.flux",
						Source: "inData",
						Start: ast.Position{
							Column: 1,
							Line:   9,
						},
					},
				},
				Name: "inData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   19,
						},
						File:   "labelReplace_src_nonexistent_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,string,string,string,double,string\n#group,false,false,false,true,true,true,false,true\n#default,inData,,,,,,,\n,result,table,_time,_field,src,dst,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name,source-value-20,original-destination-value,4,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   10,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,string,string,string,double,string\n#group,false,false,false,true,true,true,false,true\n#default,inData,,,,,,,\n,result,table,_time,_field,src,dst,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name,source-value-20,original-destination-value,4,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   30,
					},
					File:   "labelReplace_src_nonexistent_test.flux",
					Source: "outData =\n    \"\n#datatype,string,long,string,string,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_field,src,dst,_value,_measurement\n,,0,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,metric_name,source-value-20,original-destination-value,4,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   20,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 8,
							Line:   20,
						},
						File:   "labelReplace_src_nonexistent_test.flux",
						Source: "outData",
						Start: ast.Position{
							Column: 1,
							Line:   20,
						},
					},
				},
				Name: "outData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   30,
						},
						File:   "labelReplace_src_nonexistent_test.flux",
						Source: "\"\n#datatype,string,long,string,string,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_field,src,dst,_value,_measurement\n,,0,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,metric_name,source-value-20,original-destination-value,4,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   21,
						},
					},
				},
				Value: "\n#datatype,string,long,string,string,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_field,src,dst,_value,_measurement\n,,0,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,metric_name,source-value-20,original-destination-value,4,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 10,
						Line:   40,
					},
					File:   "labelReplace_src_nonexistent_test.flux",
					Source: "t_labelReplace = (table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.labelReplace(\n            source: \"nonexistent-src\",\n            destination: \"dst\",\n            regex: \"source-value-(.*)\",\n            replacement: \"value-$1\",\n        )",
					Start: ast.Position{
						Column: 1,
						Line:   31,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 15,
							Line:   31,
						},
						File:   "labelReplace_src_nonexistent_test.flux",
						Source: "t_labelReplace",
						Start: ast.Position{
							Column: 1,
							Line:   31,
						},
					},
				},
				Name: "t_labelReplace",
			},
			Init: &ast.FunctionExpression{
				Arrow: nil,
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 10,
							Line:   40,
						},
						File:   "labelReplace_src_nonexistent_test.flux",
						Source: "(table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.labelReplace(\n            source: \"nonexistent-src\",\n            destination: \"dst\",\n            regex: \"source-value-(.*)\",\n            replacement: \"value-$1\",\n        )",
						Start: ast.Position{
							Column: 18,
							Line:   31,
						},
					},
				},
				Body: &ast.PipeExpression{
					Argument: &ast.PipeExpression{
						Argument: &ast.PipeExpression{
							Argument: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 10,
											Line:   32,
										},
										File:   "labelReplace_src_nonexistent_test.flux",
										Source: "table",
										Start: ast.Position{
											Column: 5,
											Line:   32,
										},
									},
								},
								Name: "table",
							},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 46,
										Line:   33,
									},
									File:   "labelReplace_src_nonexistent_test.flux",
									Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)",
									Start: ast.Position{
										Column: 5,
										Line:   32,
									},
								},
							},
							Call: &ast.CallExpression{
								Arguments: []ast.Expression{&ast.ObjectExpression{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   33,
											},
											File:   "labelReplace_src_nonexistent_test.flux",
											Source: "start: 1980-01-01T00:00:00Z",
											Start: ast.Position{
												Column: 18,
												Line:   33,
											},
										},
									},
									Lbrace: nil,
									Properties: []*ast.Property{&ast.Property{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   33,
												},
												File:   "labelReplace_src_nonexistent_test.flux",
												Source: "start: 1980-01-01T00:00:00Z",
												Start: ast.Position{
													Column: 18,
													Line:   33,
												},
											},
										},
										Comma: nil,
										Key: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 23,
														Line:   33,
													},
													File:   "labelReplace_src_nonexistent_test.flux",
													Source: "start",
													Start: ast.Position{
														Column: 18,
														Line:   33,
													},
												},
											},
											Name: "start",
										},
										Separator: nil,
										Value: &ast.DateTimeLiteral{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   33,
													},
													File:   "labelReplace_src_nonexistent_test.flux",
													Source: "1980-01-01T00:00:00Z",
													Start: ast.Position{
														Column: 25,
														Line:   33,
													},
												},
											},
											Value: parser.MustParseTime("1980-01-01T00:00:00Z"),
										},
									}},
									Rbrace: nil,
									With:   nil,
								}},
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   33,
										},
										File:   "labelReplace_src_nonexistent_test.flux",
										Source: "range(start: 1980-01-01T00:00:00Z)",
										Start: ast.Position{
											Column: 12,
											Line:   33,
										},
									},
								},
								Callee: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 17,
												Line:   33,
											},
											File:   "labelReplace_src_nonexistent_test.flux",
											Source: "range",
											Start: ast.Position{
												Column: 12,
												Line:   33,
											},
										},
									},
									Name: "range",
								},
								Lparen: nil,
								Rparen: nil,
							},
						},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 46,
									Line:   34,
								},
								File:   "labelReplace_src_nonexistent_test.flux",
								Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])",
								Start: ast.Position{
									Column: 5,
									Line:   32,
								},
							},
						},
						Call: &ast.CallExpression{
							Arguments: []ast.Expression{&ast.ObjectExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 45,
											Line:   34,
										},
										File:   "labelReplace_src_nonexistent_test.flux",
										Source: "columns: [\"_start\", \"_stop\"]",
										Start: ast.Position{
											Column: 17,
											Line:   34,
										},
									},
								},
								Lbrace: nil,
								Properties: []*ast.Property{&ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   34,
											},
											File:   "labelReplace_src_nonexistent_test.flux",
											Source: "columns: [\"_start\", \"_stop\"]",
											Start: ast.Position{
												Column: 17,
												Line:   34,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 24,
													Line:   34,
												},
												File:   "labelReplace_src_nonexistent_test.flux",
												Source: "columns",
												Start: ast.Position{
													Column: 17,
													Line:   34,
												},
											},
										},
										Name: "columns",
									},
									Separator: nil,
									Value: &ast.ArrayExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   34,
												},
												File:   "labelReplace_src_nonexistent_test.flux",
												Source: "[\"_start\", \"_stop\"]",
												Start: ast.Position{
													Column: 26,
													Line:   34,
												},
											},
										},
										Elements: []ast.Expression{&ast.StringLiteral{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 35,
														Line:   34,
													},
													File:   "labelReplace_src_nonexistent_test.flux",
													Source: "\"_start\"",
													Start: ast.Position{
														Column: 27,
														Line:   34,
													},
												},
											},
											Value: "_start",
										}, &ast.StringLiteral{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 44,
														Line:   34,
													},
													File:   "labelReplace_src_nonexistent_test.flux",
													Source: "\"_stop\"",
													Start: ast.Position{
														Column: 37,
														Line:   34,
													},
												},
											},
											Value: "_stop",
										}},
										Lbrack: nil,
										Rbrack: nil,
									},
								}},
								Rbrace: nil,
								With:   nil,
							}},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 46,
										Line:   34,
									},
									File:   "labelReplace_src_nonexistent_test.flux",
									Source: "drop(columns: [\"_start\", \"_stop\"])",
									Start: ast.Position{
										Column: 12,
										Line:   34,
									},
								},
							},
							Callee: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 16,
											Line:   34,
										},
										File:   "labelReplace_src_nonexistent_test.flux",
										Source: "drop",
										Start: ast.Position{
											Column: 12,
											Line:   34,
										},
									},
								},
								Name: "drop",
							},
							Lparen: nil,
							Rparen: nil,
						},
					},
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 10,
								Line:   40,
							},
							File:   "labelReplace_src_nonexistent_test.flux",
							Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.labelReplace(\n            source: \"nonexistent-src\",\n            destination: \"dst\",\n            regex: \"source-value-(.*)\",\n            replacement: \"value-$1\",\n        )",
							Start: ast.Position{
								Column: 5,
								Line:   32,
							},
						},
					},
					Call: &ast.CallExpression{
						Arguments: []ast.Expression{&ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 36,
										Line:   39,
									},
									File:   "labelReplace_src_nonexistent_test.flux",
									Source: "source: \"nonexistent-src\",\n            destination: \"dst\",\n            regex: \"source-value-(.*)\",\n            replacement: \"value-$1\"",
									Start: ast.Position{
										Column: 13,
										Line:   36,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 38,
											Line:   36,
										},
										File:   "labelReplace_src_nonexistent_test.flux",
										Source: "source: \"nonexistent-src\"",
										Start: ast.Position{
											Column: 13,
											Line:   36,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 19,
												Line:   36,
											},
											File:   "labelReplace_src_nonexistent_test.flux",
											Source: "source",
											Start: ast.Position{
												Column: 13,
												Line:   36,
											},
										},
									},
									Name: "source",
								},
								Separator: nil,
								Value: &ast.StringLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 38,
												Line:   36,
											},
											File:   "labelReplace_src_nonexistent_test.flux",
											Source: "\"nonexistent-src\"",
											Start: ast.Position{
												Column: 21,
												Line:   36,
											},
										},
									},
									Value: "nonexistent-src",
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 31,
											Line:   37,
										},
										File:   "labelReplace_src_nonexistent_test.flux",
										Source: "destination: \"dst\"",
										Start: ast.Position{
											Column: 13,
											Line:   37,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 24,
												Line:   37,
											},
											File:   "labelReplace_src_nonexistent_test.flux",
											Source: "destination",
											Start: ast.Position{
												Column: 13,
												Line:   37,
											},
										},
									},
									Name: "destination",
								},
								Separator: nil,
								Value: &ast.StringLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 31,
												Line:   37,
											},
											File:   "labelReplace_src_nonexistent_test.flux",
											Source: "\"dst\"",
											Start: ast.Position{
												Column: 26,
												Line:   37,
											},
										},
									},
									Value: "dst",
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 39,
											Line:   38,
										},
										File:   "labelReplace_src_nonexistent_test.flux",
										Source: "regex: \"source-value-(.*)\"",
										Start: ast.Position{
											Column: 13,
											Line:   38,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 18,
												Line:   38,
											},
											File:   "labelReplace_src_nonexistent_test.flux",
											Source: "regex",
											Start: ast.Position{
												Column: 13,
												Line:   38,
											},
										},
									},
									Name: "regex",
								},
								Separator: nil,
								Value: &ast.StringLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 39,
												Line:   38,
											},
											File:   "labelReplace_src_nonexistent_test.flux",
											Source: "\"source-value-(.*)\"",
											Start: ast.Position{
												Column: 20,
												Line:   38,
											},
										},
									},
									Value: "source-value-(.*)",
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 36,
											Line:   39,
										},
										File:   "labelReplace_src_nonexistent_test.flux",
										Source: "replacement: \"value-$1\"",
										Start: ast.Position{
											Column: 13,
											Line:   39,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 24,
												Line:   39,
											},
											File:   "labelReplace_src_nonexistent_test.flux",
											Source: "replacement",
											Start: ast.Position{
												Column: 13,
												Line:   39,
											},
										},
									},
									Name: "replacement",
								},
								Separator: nil,
								Value: &ast.StringLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 36,
												Line:   39,
											},
											File:   "labelReplace_src_nonexistent_test.flux",
											Source: "\"value-$1\"",
											Start: ast.Position{
												Column: 26,
												Line:   39,
											},
										},
									},
									Value: "value-$1",
								},
							}},
							Rbrace: nil,
							With:   nil,
						}},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 10,
									Line:   40,
								},
								File:   "labelReplace_src_nonexistent_test.flux",
								Source: "promql.labelReplace(\n            source: \"nonexistent-src\",\n            destination: \"dst\",\n            regex: \"source-value-(.*)\",\n            replacement: \"value-$1\",\n        )",
								Start: ast.Position{
									Column: 12,
									Line:   35,
								},
							},
						},
						Callee: &ast.MemberExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 31,
										Line:   35,
									},
									File:   "labelReplace_src_nonexistent_test.flux",
									Source: "promql.labelReplace",
									Start: ast.Position{
										Column: 12,
										Line:   35,
									},
								},
							},
							Lbrack: nil,
							Object: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 18,
											Line:   35,
										},
										File:   "labelReplace_src_nonexistent_test.flux",
										Source: "promql",
										Start: ast.Position{
											Column: 12,
											Line:   35,
										},
									},
								},
								Name: "promql",
							},
							Property: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 31,
											Line:   35,
										},
										File:   "labelReplace_src_nonexistent_test.flux",
										Source: "labelReplace",
										Start: ast.Position{
											Column: 19,
											Line:   35,
										},
									},
								},
								Name: "labelReplace",
							},
							Rbrack: nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
				},
				Lparen: nil,
				Params: []*ast.Property{&ast.Property{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 27,
								Line:   31,
							},
							File:   "labelReplace_src_nonexistent_test.flux",
							Source: "table=<-",
							Start: ast.Position{
								Column: 19,
								Line:   31,
							},
						},
					},
					Comma: nil,
					Key: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 24,
									Line:   31,
								},
								File:   "labelReplace_src_nonexistent_test.flux",
								Source: "table",
								Start: ast.Position{
									Column: 19,
									Line:   31,
								},
							},
						},
						Name: "table",
					},
					Separator: nil,
					Value: &ast.PipeLiteral{BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 27,
								Line:   31,
							},
							File:   "labelReplace_src_nonexistent_test.flux",
							Source: "<-",
							Start: ast.Position{
								Column: 25,
								Line:   31,
							},
						},
					}},
				}},
				Rparan: nil,
			},
		}, &ast.TestStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 105,
							Line:   43,
						},
						File:   "labelReplace_src_nonexistent_test.flux",
						Source: "_labelReplace = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
						Start: ast.Position{
							Column: 6,
							Line:   42,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 19,
								Line:   42,
							},
							File:   "labelReplace_src_nonexistent_test.flux",
							Source: "_labelReplace",
							Start: ast.Position{
								Column: 6,
								Line:   42,
							},
						},
					},
					Name: "_labelReplace",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 105,
								Line:   43,
							},
							File:   "labelReplace_src_nonexistent_test.flux",
							Source: "() =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
							Start: ast.Position{
								Column: 22,
								Line:   42,
							},
						},
					},
					Body: &ast.ParenExpression{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 105,
									Line:   43,
								},
								File:   "labelReplace_src_nonexistent_test.flux",
								Source: "({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
								Start: ast.Position{
									Column: 5,
									Line:   43,
								},
							},
						},
						Expression: &ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 104,
										Line:   43,
									},
									File:   "labelReplace_src_nonexistent_test.flux",
									Source: "{input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace}",
									Start: ast.Position{
										Column: 6,
										Line:   43,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   43,
										},
										File:   "labelReplace_src_nonexistent_test.flux",
										Source: "input: testing.loadStorage(csv: inData)",
										Start: ast.Position{
											Column: 7,
											Line:   43,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 12,
												Line:   43,
											},
											File:   "labelReplace_src_nonexistent_test.flux",
											Source: "input",
											Start: ast.Position{
												Column: 7,
												Line:   43,
											},
										},
									},
									Name: "input",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   43,
												},
												File:   "labelReplace_src_nonexistent_test.flux",
												Source: "csv: inData",
												Start: ast.Position{
													Column: 34,
													Line:   43,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   43,
													},
													File:   "labelReplace_src_nonexistent_test.flux",
													Source: "csv: inData",
													Start: ast.Position{
														Column: 34,
														Line:   43,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 37,
															Line:   43,
														},
														File:   "labelReplace_src_nonexistent_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 34,
															Line:   43,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 45,
															Line:   43,
														},
														File:   "labelReplace_src_nonexistent_test.flux",
														Source: "inData",
														Start: ast.Position{
															Column: 39,
															Line:   43,
														},
													},
												},
												Name: "inData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 46,
												Line:   43,
											},
											File:   "labelReplace_src_nonexistent_test.flux",
											Source: "testing.loadStorage(csv: inData)",
											Start: ast.Position{
												Column: 14,
												Line:   43,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 33,
													Line:   43,
												},
												File:   "labelReplace_src_nonexistent_test.flux",
												Source: "testing.loadStorage",
												Start: ast.Position{
													Column: 14,
													Line:   43,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 21,
														Line:   43,
													},
													File:   "labelReplace_src_nonexistent_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 14,
														Line:   43,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 33,
														Line:   43,
													},
													File:   "labelReplace_src_nonexistent_test.flux",
													Source: "loadStorage",
													Start: ast.Position{
														Column: 22,
														Line:   43,
													},
												},
											},
											Name: "loadStorage",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 83,
											Line:   43,
										},
										File:   "labelReplace_src_nonexistent_test.flux",
										Source: "want: testing.loadMem(csv: outData)",
										Start: ast.Position{
											Column: 48,
											Line:   43,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 52,
												Line:   43,
											},
											File:   "labelReplace_src_nonexistent_test.flux",
											Source: "want",
											Start: ast.Position{
												Column: 48,
												Line:   43,
											},
										},
									},
									Name: "want",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 82,
													Line:   43,
												},
												File:   "labelReplace_src_nonexistent_test.flux",
												Source: "csv: outData",
												Start: ast.Position{
													Column: 70,
													Line:   43,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 82,
														Line:   43,
													},
													File:   "labelReplace_src_nonexistent_test.flux",
													Source: "csv: outData",
													Start: ast.Position{
														Column: 70,
														Line:   43,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 73,
															Line:   43,
														},
														File:   "labelReplace_src_nonexistent_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 70,
															Line:   43,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 82,
															Line:   43,
														},
														File:   "labelReplace_src_nonexistent_test.flux",
														Source: "outData",
														Start: ast.Position{
															Column: 75,
															Line:   43,
														},
													},
												},
												Name: "outData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 83,
												Line:   43,
											},
											File:   "labelReplace_src_nonexistent_test.flux",
											Source: "testing.loadMem(csv: outData)",
											Start: ast.Position{
												Column: 54,
												Line:   43,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 69,
													Line:   43,
												},
												File:   "labelReplace_src_nonexistent_test.flux",
												Source: "testing.loadMem",
												Start: ast.Position{
													Column: 54,
													Line:   43,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 61,
														Line:   43,
													},
													File:   "labelReplace_src_nonexistent_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 54,
														Line:   43,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 69,
														Line:   43,
													},
													File:   "labelReplace_src_nonexistent_test.flux",
													Source: "loadMem",
													Start: ast.Position{
														Column: 62,
														Line:   43,
													},
												},
											},
											Name: "loadMem",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 103,
											Line:   43,
										},
										File:   "labelReplace_src_nonexistent_test.flux",
										Source: "fn: t_labelReplace",
										Start: ast.Position{
											Column: 85,
											Line:   43,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 87,
												Line:   43,
											},
											File:   "labelReplace_src_nonexistent_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 85,
												Line:   43,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 103,
												Line:   43,
											},
											File:   "labelReplace_src_nonexistent_test.flux",
											Source: "t_labelReplace",
											Start: ast.Position{
												Column: 89,
												Line:   43,
											},
										},
									},
									Name: "t_labelReplace",
								},
							}},
							Rbrace: nil,
							With:   nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 105,
						Line:   43,
					},
					File:   "labelReplace_src_nonexistent_test.flux",
					Source: "test _labelReplace = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
					Start: ast.Position{
						Column: 1,
						Line:   42,
					},
				},
			},
		}},
		Eof: nil,
		Imports: []*ast.ImportDeclaration{&ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 17,
						Line:   4,
					},
					File:   "labelReplace_src_nonexistent_test.flux",
					Source: "import \"testing\"",
					Start: ast.Position{
						Column: 1,
						Line:   4,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 17,
							Line:   4,
						},
						File:   "labelReplace_src_nonexistent_test.flux",
						Source: "\"testing\"",
						Start: ast.Position{
							Column: 8,
							Line:   4,
						},
					},
				},
				Value: "testing",
			},
		}, &ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 25,
						Line:   5,
					},
					File:   "labelReplace_src_nonexistent_test.flux",
					Source: "import \"internal/promql\"",
					Start: ast.Position{
						Column: 1,
						Line:   5,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 25,
							Line:   5,
						},
						File:   "labelReplace_src_nonexistent_test.flux",
						Source: "\"internal/promql\"",
						Start: ast.Position{
							Column: 8,
							Line:   5,
						},
					},
				},
				Value: "internal/promql",
			},
		}},
		Metadata: "parser-type=rust",
		Name:     "labelReplace_src_nonexistent_test.flux",
		Package: &ast.PackageClause{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 20,
						Line:   1,
					},
					File:   "labelReplace_src_nonexistent_test.flux",
					Source: "package promql_test",
					Start: ast.Position{
						Column: 1,
						Line:   1,
					},
				},
			},
			Name: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 20,
							Line:   1,
						},
						File:   "labelReplace_src_nonexistent_test.flux",
						Source: "promql_test",
						Start: ast.Position{
							Column: 9,
							Line:   1,
						},
					},
				},
				Name: "promql_test",
			},
		},
	}, &ast.File{
		BaseNode: ast.BaseNode{
			Comments: nil,
			Errors:   nil,
			Loc: &ast.SourceLocation{
				End: ast.Position{
					Column: 105,
					Line:   38,
				},
				File:   "labelReplace_src_not_matched_test.flux",
				Source: "package promql_test\n\n\nimport \"testing\"\nimport \"internal/promql\"\n\noption now = () => 2030-01-01T00:00:00Z\n\ninData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,string,string,double,string\n#group,false,false,false,true,true,true,false,true\n#default,inData,,,,,,,\n,result,table,_time,_field,src,dst,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name,source-value-20,original-destination-value,4,prometheus\n\"\noutData =\n    \"\n#datatype,string,long,string,string,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_field,src,dst,_value,_measurement\n,,0,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,metric_name,source-value-20,original-destination-value,4,prometheus\n\"\nt_labelReplace = (table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.labelReplace(source: \"src\", destination: \"dst\", regex: \"non-matching-regex\", replacement: \"value-$1\")\n\ntest _labelReplace = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
				Start: ast.Position{
					Column: 1,
					Line:   1,
				},
			},
		},
		Body: []ast.Statement{&ast.OptionStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 40,
							Line:   7,
						},
						File:   "labelReplace_src_not_matched_test.flux",
						Source: "now = () => 2030-01-01T00:00:00Z",
						Start: ast.Position{
							Column: 8,
							Line:   7,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 11,
								Line:   7,
							},
							File:   "labelReplace_src_not_matched_test.flux",
							Source: "now",
							Start: ast.Position{
								Column: 8,
								Line:   7,
							},
						},
					},
					Name: "now",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 40,
								Line:   7,
							},
							File:   "labelReplace_src_not_matched_test.flux",
							Source: "() => 2030-01-01T00:00:00Z",
							Start: ast.Position{
								Column: 14,
								Line:   7,
							},
						},
					},
					Body: &ast.DateTimeLiteral{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 40,
									Line:   7,
								},
								File:   "labelReplace_src_not_matched_test.flux",
								Source: "2030-01-01T00:00:00Z",
								Start: ast.Position{
									Column: 20,
									Line:   7,
								},
							},
						},
						Value: parser.MustParseTime("2030-01-01T00:00:00Z"),
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 40,
						Line:   7,
					},
					File:   "labelReplace_src_not_matched_test.flux",
					Source: "option now = () => 2030-01-01T00:00:00Z",
					Start: ast.Position{
						Column: 1,
						Line:   7,
					},
				},
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   19,
					},
					File:   "labelReplace_src_not_matched_test.flux",
					Source: "inData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,string,string,double,string\n#group,false,false,false,true,true,true,false,true\n#default,inData,,,,,,,\n,result,table,_time,_field,src,dst,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name,source-value-20,original-destination-value,4,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   9,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 7,
							Line:   9,
						},
						File:   "labelReplace_src_not_matched_test.flux",
						Source: "inData",
						Start: ast.Position{
							Column: 1,
							Line:   9,
						},
					},
				},
				Name: "inData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   19,
						},
						File:   "labelReplace_src_not_matched_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,string,string,string,double,string\n#group,false,false,false,true,true,true,false,true\n#default,inData,,,,,,,\n,result,table,_time,_field,src,dst,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name,source-value-20,original-destination-value,4,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   10,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,string,string,string,double,string\n#group,false,false,false,true,true,true,false,true\n#default,inData,,,,,,,\n,result,table,_time,_field,src,dst,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name,source-value-20,original-destination-value,4,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   30,
					},
					File:   "labelReplace_src_not_matched_test.flux",
					Source: "outData =\n    \"\n#datatype,string,long,string,string,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_field,src,dst,_value,_measurement\n,,0,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,metric_name,source-value-20,original-destination-value,4,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   20,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 8,
							Line:   20,
						},
						File:   "labelReplace_src_not_matched_test.flux",
						Source: "outData",
						Start: ast.Position{
							Column: 1,
							Line:   20,
						},
					},
				},
				Name: "outData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   30,
						},
						File:   "labelReplace_src_not_matched_test.flux",
						Source: "\"\n#datatype,string,long,string,string,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_field,src,dst,_value,_measurement\n,,0,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,metric_name,source-value-20,original-destination-value,4,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   21,
						},
					},
				},
				Value: "\n#datatype,string,long,string,string,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_field,src,dst,_value,_measurement\n,,0,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,metric_name,source-value-20,original-destination-value,4,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 120,
						Line:   35,
					},
					File:   "labelReplace_src_not_matched_test.flux",
					Source: "t_labelReplace = (table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.labelReplace(source: \"src\", destination: \"dst\", regex: \"non-matching-regex\", replacement: \"value-$1\")",
					Start: ast.Position{
						Column: 1,
						Line:   31,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 15,
							Line:   31,
						},
						File:   "labelReplace_src_not_matched_test.flux",
						Source: "t_labelReplace",
						Start: ast.Position{
							Column: 1,
							Line:   31,
						},
					},
				},
				Name: "t_labelReplace",
			},
			Init: &ast.FunctionExpression{
				Arrow: nil,
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 120,
							Line:   35,
						},
						File:   "labelReplace_src_not_matched_test.flux",
						Source: "(table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.labelReplace(source: \"src\", destination: \"dst\", regex: \"non-matching-regex\", replacement: \"value-$1\")",
						Start: ast.Position{
							Column: 18,
							Line:   31,
						},
					},
				},
				Body: &ast.PipeExpression{
					Argument: &ast.PipeExpression{
						Argument: &ast.PipeExpression{
							Argument: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 10,
											Line:   32,
										},
										File:   "labelReplace_src_not_matched_test.flux",
										Source: "table",
										Start: ast.Position{
											Column: 5,
											Line:   32,
										},
									},
								},
								Name: "table",
							},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 46,
										Line:   33,
									},
									File:   "labelReplace_src_not_matched_test.flux",
									Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)",
									Start: ast.Position{
										Column: 5,
										Line:   32,
									},
								},
							},
							Call: &ast.CallExpression{
								Arguments: []ast.Expression{&ast.ObjectExpression{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   33,
											},
											File:   "labelReplace_src_not_matched_test.flux",
											Source: "start: 1980-01-01T00:00:00Z",
											Start: ast.Position{
												Column: 18,
												Line:   33,
											},
										},
									},
									Lbrace: nil,
									Properties: []*ast.Property{&ast.Property{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   33,
												},
												File:   "labelReplace_src_not_matched_test.flux",
												Source: "start: 1980-01-01T00:00:00Z",
												Start: ast.Position{
													Column: 18,
													Line:   33,
												},
											},
										},
										Comma: nil,
										Key: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 23,
														Line:   33,
													},
													File:   "labelReplace_src_not_matched_test.flux",
													Source: "start",
													Start: ast.Position{
														Column: 18,
														Line:   33,
													},
												},
											},
											Name: "start",
										},
										Separator: nil,
										Value: &ast.DateTimeLiteral{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   33,
													},
													File:   "labelReplace_src_not_matched_test.flux",
													Source: "1980-01-01T00:00:00Z",
													Start: ast.Position{
														Column: 25,
														Line:   33,
													},
												},
											},
											Value: parser.MustParseTime("1980-01-01T00:00:00Z"),
										},
									}},
									Rbrace: nil,
									With:   nil,
								}},
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   33,
										},
										File:   "labelReplace_src_not_matched_test.flux",
										Source: "range(start: 1980-01-01T00:00:00Z)",
										Start: ast.Position{
											Column: 12,
											Line:   33,
										},
									},
								},
								Callee: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 17,
												Line:   33,
											},
											File:   "labelReplace_src_not_matched_test.flux",
											Source: "range",
											Start: ast.Position{
												Column: 12,
												Line:   33,
											},
										},
									},
									Name: "range",
								},
								Lparen: nil,
								Rparen: nil,
							},
						},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 46,
									Line:   34,
								},
								File:   "labelReplace_src_not_matched_test.flux",
								Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])",
								Start: ast.Position{
									Column: 5,
									Line:   32,
								},
							},
						},
						Call: &ast.CallExpression{
							Arguments: []ast.Expression{&ast.ObjectExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 45,
											Line:   34,
										},
										File:   "labelReplace_src_not_matched_test.flux",
										Source: "columns: [\"_start\", \"_stop\"]",
										Start: ast.Position{
											Column: 17,
											Line:   34,
										},
									},
								},
								Lbrace: nil,
								Properties: []*ast.Property{&ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   34,
											},
											File:   "labelReplace_src_not_matched_test.flux",
											Source: "columns: [\"_start\", \"_stop\"]",
											Start: ast.Position{
												Column: 17,
												Line:   34,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 24,
													Line:   34,
												},
												File:   "labelReplace_src_not_matched_test.flux",
												Source: "columns",
												Start: ast.Position{
													Column: 17,
													Line:   34,
												},
											},
										},
										Name: "columns",
									},
									Separator: nil,
									Value: &ast.ArrayExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   34,
												},
												File:   "labelReplace_src_not_matched_test.flux",
												Source: "[\"_start\", \"_stop\"]",
												Start: ast.Position{
													Column: 26,
													Line:   34,
												},
											},
										},
										Elements: []ast.Expression{&ast.StringLiteral{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 35,
														Line:   34,
													},
													File:   "labelReplace_src_not_matched_test.flux",
													Source: "\"_start\"",
													Start: ast.Position{
														Column: 27,
														Line:   34,
													},
												},
											},
											Value: "_start",
										}, &ast.StringLiteral{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 44,
														Line:   34,
													},
													File:   "labelReplace_src_not_matched_test.flux",
													Source: "\"_stop\"",
													Start: ast.Position{
														Column: 37,
														Line:   34,
													},
												},
											},
											Value: "_stop",
										}},
										Lbrack: nil,
										Rbrack: nil,
									},
								}},
								Rbrace: nil,
								With:   nil,
							}},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 46,
										Line:   34,
									},
									File:   "labelReplace_src_not_matched_test.flux",
									Source: "drop(columns: [\"_start\", \"_stop\"])",
									Start: ast.Position{
										Column: 12,
										Line:   34,
									},
								},
							},
							Callee: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 16,
											Line:   34,
										},
										File:   "labelReplace_src_not_matched_test.flux",
										Source: "drop",
										Start: ast.Position{
											Column: 12,
											Line:   34,
										},
									},
								},
								Name: "drop",
							},
							Lparen: nil,
							Rparen: nil,
						},
					},
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 120,
								Line:   35,
							},
							File:   "labelReplace_src_not_matched_test.flux",
							Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.labelReplace(source: \"src\", destination: \"dst\", regex: \"non-matching-regex\", replacement: \"value-$1\")",
							Start: ast.Position{
								Column: 5,
								Line:   32,
							},
						},
					},
					Call: &ast.CallExpression{
						Arguments: []ast.Expression{&ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 119,
										Line:   35,
									},
									File:   "labelReplace_src_not_matched_test.flux",
									Source: "source: \"src\", destination: \"dst\", regex: \"non-matching-regex\", replacement: \"value-$1\"",
									Start: ast.Position{
										Column: 32,
										Line:   35,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 45,
											Line:   35,
										},
										File:   "labelReplace_src_not_matched_test.flux",
										Source: "source: \"src\"",
										Start: ast.Position{
											Column: 32,
											Line:   35,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 38,
												Line:   35,
											},
											File:   "labelReplace_src_not_matched_test.flux",
											Source: "source",
											Start: ast.Position{
												Column: 32,
												Line:   35,
											},
										},
									},
									Name: "source",
								},
								Separator: nil,
								Value: &ast.StringLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   35,
											},
											File:   "labelReplace_src_not_matched_test.flux",
											Source: "\"src\"",
											Start: ast.Position{
												Column: 40,
												Line:   35,
											},
										},
									},
									Value: "src",
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 65,
											Line:   35,
										},
										File:   "labelReplace_src_not_matched_test.flux",
										Source: "destination: \"dst\"",
										Start: ast.Position{
											Column: 47,
											Line:   35,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 58,
												Line:   35,
											},
											File:   "labelReplace_src_not_matched_test.flux",
											Source: "destination",
											Start: ast.Position{
												Column: 47,
												Line:   35,
											},
										},
									},
									Name: "destination",
								},
								Separator: nil,
								Value: &ast.StringLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 65,
												Line:   35,
											},
											File:   "labelReplace_src_not_matched_test.flux",
											Source: "\"dst\"",
											Start: ast.Position{
												Column: 60,
												Line:   35,
											},
										},
									},
									Value: "dst",
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 94,
											Line:   35,
										},
										File:   "labelReplace_src_not_matched_test.flux",
										Source: "regex: \"non-matching-regex\"",
										Start: ast.Position{
											Column: 67,
											Line:   35,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 72,
												Line:   35,
											},
											File:   "labelReplace_src_not_matched_test.flux",
											Source: "regex",
											Start: ast.Position{
												Column: 67,
												Line:   35,
											},
										},
									},
									Name: "regex",
								},
								Separator: nil,
								Value: &ast.StringLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 94,
												Line:   35,
											},
											File:   "labelReplace_src_not_matched_test.flux",
											Source: "\"non-matching-regex\"",
											Start: ast.Position{
												Column: 74,
												Line:   35,
											},
										},
									},
									Value: "non-matching-regex",
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 119,
											Line:   35,
										},
										File:   "labelReplace_src_not_matched_test.flux",
										Source: "replacement: \"value-$1\"",
										Start: ast.Position{
											Column: 96,
											Line:   35,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 107,
												Line:   35,
											},
											File:   "labelReplace_src_not_matched_test.flux",
											Source: "replacement",
											Start: ast.Position{
												Column: 96,
												Line:   35,
											},
										},
									},
									Name: "replacement",
								},
								Separator: nil,
								Value: &ast.StringLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 119,
												Line:   35,
											},
											File:   "labelReplace_src_not_matched_test.flux",
											Source: "\"value-$1\"",
											Start: ast.Position{
												Column: 109,
												Line:   35,
											},
										},
									},
									Value: "value-$1",
								},
							}},
							Rbrace: nil,
							With:   nil,
						}},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 120,
									Line:   35,
								},
								File:   "labelReplace_src_not_matched_test.flux",
								Source: "promql.labelReplace(source: \"src\", destination: \"dst\", regex: \"non-matching-regex\", replacement: \"value-$1\")",
								Start: ast.Position{
									Column: 12,
									Line:   35,
								},
							},
						},
						Callee: &ast.MemberExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 31,
										Line:   35,
									},
									File:   "labelReplace_src_not_matched_test.flux",
									Source: "promql.labelReplace",
									Start: ast.Position{
										Column: 12,
										Line:   35,
									},
								},
							},
							Lbrack: nil,
							Object: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 18,
											Line:   35,
										},
										File:   "labelReplace_src_not_matched_test.flux",
										Source: "promql",
										Start: ast.Position{
											Column: 12,
											Line:   35,
										},
									},
								},
								Name: "promql",
							},
							Property: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 31,
											Line:   35,
										},
										File:   "labelReplace_src_not_matched_test.flux",
										Source: "labelReplace",
										Start: ast.Position{
											Column: 19,
											Line:   35,
										},
									},
								},
								Name: "labelReplace",
							},
							Rbrack: nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
				},
				Lparen: nil,
				Params: []*ast.Property{&ast.Property{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 27,
								Line:   31,
							},
							File:   "labelReplace_src_not_matched_test.flux",
							Source: "table=<-",
							Start: ast.Position{
								Column: 19,
								Line:   31,
							},
						},
					},
					Comma: nil,
					Key: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 24,
									Line:   31,
								},
								File:   "labelReplace_src_not_matched_test.flux",
								Source: "table",
								Start: ast.Position{
									Column: 19,
									Line:   31,
								},
							},
						},
						Name: "table",
					},
					Separator: nil,
					Value: &ast.PipeLiteral{BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 27,
								Line:   31,
							},
							File:   "labelReplace_src_not_matched_test.flux",
							Source: "<-",
							Start: ast.Position{
								Column: 25,
								Line:   31,
							},
						},
					}},
				}},
				Rparan: nil,
			},
		}, &ast.TestStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 105,
							Line:   38,
						},
						File:   "labelReplace_src_not_matched_test.flux",
						Source: "_labelReplace = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
						Start: ast.Position{
							Column: 6,
							Line:   37,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 19,
								Line:   37,
							},
							File:   "labelReplace_src_not_matched_test.flux",
							Source: "_labelReplace",
							Start: ast.Position{
								Column: 6,
								Line:   37,
							},
						},
					},
					Name: "_labelReplace",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 105,
								Line:   38,
							},
							File:   "labelReplace_src_not_matched_test.flux",
							Source: "() =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
							Start: ast.Position{
								Column: 22,
								Line:   37,
							},
						},
					},
					Body: &ast.ParenExpression{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 105,
									Line:   38,
								},
								File:   "labelReplace_src_not_matched_test.flux",
								Source: "({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
								Start: ast.Position{
									Column: 5,
									Line:   38,
								},
							},
						},
						Expression: &ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 104,
										Line:   38,
									},
									File:   "labelReplace_src_not_matched_test.flux",
									Source: "{input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace}",
									Start: ast.Position{
										Column: 6,
										Line:   38,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   38,
										},
										File:   "labelReplace_src_not_matched_test.flux",
										Source: "input: testing.loadStorage(csv: inData)",
										Start: ast.Position{
											Column: 7,
											Line:   38,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 12,
												Line:   38,
											},
											File:   "labelReplace_src_not_matched_test.flux",
											Source: "input",
											Start: ast.Position{
												Column: 7,
												Line:   38,
											},
										},
									},
									Name: "input",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   38,
												},
												File:   "labelReplace_src_not_matched_test.flux",
												Source: "csv: inData",
												Start: ast.Position{
													Column: 34,
													Line:   38,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   38,
													},
													File:   "labelReplace_src_not_matched_test.flux",
													Source: "csv: inData",
													Start: ast.Position{
														Column: 34,
														Line:   38,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 37,
															Line:   38,
														},
														File:   "labelReplace_src_not_matched_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 34,
															Line:   38,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 45,
															Line:   38,
														},
														File:   "labelReplace_src_not_matched_test.flux",
														Source: "inData",
														Start: ast.Position{
															Column: 39,
															Line:   38,
														},
													},
												},
												Name: "inData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 46,
												Line:   38,
											},
											File:   "labelReplace_src_not_matched_test.flux",
											Source: "testing.loadStorage(csv: inData)",
											Start: ast.Position{
												Column: 14,
												Line:   38,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 33,
													Line:   38,
												},
												File:   "labelReplace_src_not_matched_test.flux",
												Source: "testing.loadStorage",
												Start: ast.Position{
													Column: 14,
													Line:   38,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 21,
														Line:   38,
													},
													File:   "labelReplace_src_not_matched_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 14,
														Line:   38,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 33,
														Line:   38,
													},
													File:   "labelReplace_src_not_matched_test.flux",
													Source: "loadStorage",
													Start: ast.Position{
														Column: 22,
														Line:   38,
													},
												},
											},
											Name: "loadStorage",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 83,
											Line:   38,
										},
										File:   "labelReplace_src_not_matched_test.flux",
										Source: "want: testing.loadMem(csv: outData)",
										Start: ast.Position{
											Column: 48,
											Line:   38,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 52,
												Line:   38,
											},
											File:   "labelReplace_src_not_matched_test.flux",
											Source: "want",
											Start: ast.Position{
												Column: 48,
												Line:   38,
											},
										},
									},
									Name: "want",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 82,
													Line:   38,
												},
												File:   "labelReplace_src_not_matched_test.flux",
												Source: "csv: outData",
												Start: ast.Position{
													Column: 70,
													Line:   38,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 82,
														Line:   38,
													},
													File:   "labelReplace_src_not_matched_test.flux",
													Source: "csv: outData",
													Start: ast.Position{
														Column: 70,
														Line:   38,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 73,
															Line:   38,
														},
														File:   "labelReplace_src_not_matched_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 70,
															Line:   38,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 82,
															Line:   38,
														},
														File:   "labelReplace_src_not_matched_test.flux",
														Source: "outData",
														Start: ast.Position{
															Column: 75,
															Line:   38,
														},
													},
												},
												Name: "outData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 83,
												Line:   38,
											},
											File:   "labelReplace_src_not_matched_test.flux",
											Source: "testing.loadMem(csv: outData)",
											Start: ast.Position{
												Column: 54,
												Line:   38,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 69,
													Line:   38,
												},
												File:   "labelReplace_src_not_matched_test.flux",
												Source: "testing.loadMem",
												Start: ast.Position{
													Column: 54,
													Line:   38,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 61,
														Line:   38,
													},
													File:   "labelReplace_src_not_matched_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 54,
														Line:   38,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 69,
														Line:   38,
													},
													File:   "labelReplace_src_not_matched_test.flux",
													Source: "loadMem",
													Start: ast.Position{
														Column: 62,
														Line:   38,
													},
												},
											},
											Name: "loadMem",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 103,
											Line:   38,
										},
										File:   "labelReplace_src_not_matched_test.flux",
										Source: "fn: t_labelReplace",
										Start: ast.Position{
											Column: 85,
											Line:   38,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 87,
												Line:   38,
											},
											File:   "labelReplace_src_not_matched_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 85,
												Line:   38,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 103,
												Line:   38,
											},
											File:   "labelReplace_src_not_matched_test.flux",
											Source: "t_labelReplace",
											Start: ast.Position{
												Column: 89,
												Line:   38,
											},
										},
									},
									Name: "t_labelReplace",
								},
							}},
							Rbrace: nil,
							With:   nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 105,
						Line:   38,
					},
					File:   "labelReplace_src_not_matched_test.flux",
					Source: "test _labelReplace = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
					Start: ast.Position{
						Column: 1,
						Line:   37,
					},
				},
			},
		}},
		Eof: nil,
		Imports: []*ast.ImportDeclaration{&ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 17,
						Line:   4,
					},
					File:   "labelReplace_src_not_matched_test.flux",
					Source: "import \"testing\"",
					Start: ast.Position{
						Column: 1,
						Line:   4,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 17,
							Line:   4,
						},
						File:   "labelReplace_src_not_matched_test.flux",
						Source: "\"testing\"",
						Start: ast.Position{
							Column: 8,
							Line:   4,
						},
					},
				},
				Value: "testing",
			},
		}, &ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 25,
						Line:   5,
					},
					File:   "labelReplace_src_not_matched_test.flux",
					Source: "import \"internal/promql\"",
					Start: ast.Position{
						Column: 1,
						Line:   5,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 25,
							Line:   5,
						},
						File:   "labelReplace_src_not_matched_test.flux",
						Source: "\"internal/promql\"",
						Start: ast.Position{
							Column: 8,
							Line:   5,
						},
					},
				},
				Value: "internal/promql",
			},
		}},
		Metadata: "parser-type=rust",
		Name:     "labelReplace_src_not_matched_test.flux",
		Package: &ast.PackageClause{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 20,
						Line:   1,
					},
					File:   "labelReplace_src_not_matched_test.flux",
					Source: "package promql_test",
					Start: ast.Position{
						Column: 1,
						Line:   1,
					},
				},
			},
			Name: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 20,
							Line:   1,
						},
						File:   "labelReplace_src_not_matched_test.flux",
						Source: "promql_test",
						Start: ast.Position{
							Column: 9,
							Line:   1,
						},
					},
				},
				Name: "promql_test",
			},
		},
	}, &ast.File{
		BaseNode: ast.BaseNode{
			Comments: nil,
			Errors:   nil,
			Loc: &ast.SourceLocation{
				End: ast.Position{
					Column: 105,
					Line:   43,
				},
				File:   "labelReplace_sub_string_match_test.flux",
				Source: "package promql_test\n\n\nimport \"testing\"\nimport \"internal/promql\"\n\noption now = () => 2030-01-01T00:00:00Z\n\ninData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,string,string,double,string\n#group,false,false,false,true,true,true,false,true\n#default,inData,,,,,,,\n,result,table,_time,_field,src,dst,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name,source-value-20,original-destination-value,4,prometheus\n\"\noutData =\n    \"\n#datatype,string,long,string,string,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_field,src,dst,_value,_measurement\n,,0,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,metric_name,source-value-20,original-destination-value,4,prometheus\n\"\nt_labelReplace = (table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.labelReplace(\n            source: \"src\",\n            destination: \"dst\",\n            regex: \"value-(.*)\",\n            replacement: \"destination-value-$1\",\n        )\n\ntest _labelReplace = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
				Start: ast.Position{
					Column: 1,
					Line:   1,
				},
			},
		},
		Body: []ast.Statement{&ast.OptionStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 40,
							Line:   7,
						},
						File:   "labelReplace_sub_string_match_test.flux",
						Source: "now = () => 2030-01-01T00:00:00Z",
						Start: ast.Position{
							Column: 8,
							Line:   7,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 11,
								Line:   7,
							},
							File:   "labelReplace_sub_string_match_test.flux",
							Source: "now",
							Start: ast.Position{
								Column: 8,
								Line:   7,
							},
						},
					},
					Name: "now",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 40,
								Line:   7,
							},
							File:   "labelReplace_sub_string_match_test.flux",
							Source: "() => 2030-01-01T00:00:00Z",
							Start: ast.Position{
								Column: 14,
								Line:   7,
							},
						},
					},
					Body: &ast.DateTimeLiteral{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 40,
									Line:   7,
								},
								File:   "labelReplace_sub_string_match_test.flux",
								Source: "2030-01-01T00:00:00Z",
								Start: ast.Position{
									Column: 20,
									Line:   7,
								},
							},
						},
						Value: parser.MustParseTime("2030-01-01T00:00:00Z"),
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 40,
						Line:   7,
					},
					File:   "labelReplace_sub_string_match_test.flux",
					Source: "option now = () => 2030-01-01T00:00:00Z",
					Start: ast.Position{
						Column: 1,
						Line:   7,
					},
				},
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   19,
					},
					File:   "labelReplace_sub_string_match_test.flux",
					Source: "inData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,string,string,double,string\n#group,false,false,false,true,true,true,false,true\n#default,inData,,,,,,,\n,result,table,_time,_field,src,dst,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name,source-value-20,original-destination-value,4,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   9,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 7,
							Line:   9,
						},
						File:   "labelReplace_sub_string_match_test.flux",
						Source: "inData",
						Start: ast.Position{
							Column: 1,
							Line:   9,
						},
					},
				},
				Name: "inData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   19,
						},
						File:   "labelReplace_sub_string_match_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,string,string,string,double,string\n#group,false,false,false,true,true,true,false,true\n#default,inData,,,,,,,\n,result,table,_time,_field,src,dst,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name,source-value-20,original-destination-value,4,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   10,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,string,string,string,double,string\n#group,false,false,false,true,true,true,false,true\n#default,inData,,,,,,,\n,result,table,_time,_field,src,dst,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name,source-value-20,original-destination-value,4,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   30,
					},
					File:   "labelReplace_sub_string_match_test.flux",
					Source: "outData =\n    \"\n#datatype,string,long,string,string,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_field,src,dst,_value,_measurement\n,,0,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,metric_name,source-value-20,original-destination-value,4,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   20,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 8,
							Line:   20,
						},
						File:   "labelReplace_sub_string_match_test.flux",
						Source: "outData",
						Start: ast.Position{
							Column: 1,
							Line:   20,
						},
					},
				},
				Name: "outData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   30,
						},
						File:   "labelReplace_sub_string_match_test.flux",
						Source: "\"\n#datatype,string,long,string,string,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_field,src,dst,_value,_measurement\n,,0,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,metric_name,source-value-20,original-destination-value,4,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   21,
						},
					},
				},
				Value: "\n#datatype,string,long,string,string,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_field,src,dst,_value,_measurement\n,,0,metric_name,source-value-10,original-destination-value,1,prometheus\n,,0,metric_name,source-value-10,original-destination-value,2,prometheus\n,,1,metric_name,source-value-20,original-destination-value,3,prometheus\n,,1,metric_name,source-value-20,original-destination-value,4,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 10,
						Line:   40,
					},
					File:   "labelReplace_sub_string_match_test.flux",
					Source: "t_labelReplace = (table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.labelReplace(\n            source: \"src\",\n            destination: \"dst\",\n            regex: \"value-(.*)\",\n            replacement: \"destination-value-$1\",\n        )",
					Start: ast.Position{
						Column: 1,
						Line:   31,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 15,
							Line:   31,
						},
						File:   "labelReplace_sub_string_match_test.flux",
						Source: "t_labelReplace",
						Start: ast.Position{
							Column: 1,
							Line:   31,
						},
					},
				},
				Name: "t_labelReplace",
			},
			Init: &ast.FunctionExpression{
				Arrow: nil,
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 10,
							Line:   40,
						},
						File:   "labelReplace_sub_string_match_test.flux",
						Source: "(table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.labelReplace(\n            source: \"src\",\n            destination: \"dst\",\n            regex: \"value-(.*)\",\n            replacement: \"destination-value-$1\",\n        )",
						Start: ast.Position{
							Column: 18,
							Line:   31,
						},
					},
				},
				Body: &ast.PipeExpression{
					Argument: &ast.PipeExpression{
						Argument: &ast.PipeExpression{
							Argument: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 10,
											Line:   32,
										},
										File:   "labelReplace_sub_string_match_test.flux",
										Source: "table",
										Start: ast.Position{
											Column: 5,
											Line:   32,
										},
									},
								},
								Name: "table",
							},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 46,
										Line:   33,
									},
									File:   "labelReplace_sub_string_match_test.flux",
									Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)",
									Start: ast.Position{
										Column: 5,
										Line:   32,
									},
								},
							},
							Call: &ast.CallExpression{
								Arguments: []ast.Expression{&ast.ObjectExpression{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   33,
											},
											File:   "labelReplace_sub_string_match_test.flux",
											Source: "start: 1980-01-01T00:00:00Z",
											Start: ast.Position{
												Column: 18,
												Line:   33,
											},
										},
									},
									Lbrace: nil,
									Properties: []*ast.Property{&ast.Property{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   33,
												},
												File:   "labelReplace_sub_string_match_test.flux",
												Source: "start: 1980-01-01T00:00:00Z",
												Start: ast.Position{
													Column: 18,
													Line:   33,
												},
											},
										},
										Comma: nil,
										Key: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 23,
														Line:   33,
													},
													File:   "labelReplace_sub_string_match_test.flux",
													Source: "start",
													Start: ast.Position{
														Column: 18,
														Line:   33,
													},
												},
											},
											Name: "start",
										},
										Separator: nil,
										Value: &ast.DateTimeLiteral{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   33,
													},
													File:   "labelReplace_sub_string_match_test.flux",
													Source: "1980-01-01T00:00:00Z",
													Start: ast.Position{
														Column: 25,
														Line:   33,
													},
												},
											},
											Value: parser.MustParseTime("1980-01-01T00:00:00Z"),
										},
									}},
									Rbrace: nil,
									With:   nil,
								}},
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   33,
										},
										File:   "labelReplace_sub_string_match_test.flux",
										Source: "range(start: 1980-01-01T00:00:00Z)",
										Start: ast.Position{
											Column: 12,
											Line:   33,
										},
									},
								},
								Callee: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 17,
												Line:   33,
											},
											File:   "labelReplace_sub_string_match_test.flux",
											Source: "range",
											Start: ast.Position{
												Column: 12,
												Line:   33,
											},
										},
									},
									Name: "range",
								},
								Lparen: nil,
								Rparen: nil,
							},
						},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 46,
									Line:   34,
								},
								File:   "labelReplace_sub_string_match_test.flux",
								Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])",
								Start: ast.Position{
									Column: 5,
									Line:   32,
								},
							},
						},
						Call: &ast.CallExpression{
							Arguments: []ast.Expression{&ast.ObjectExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 45,
											Line:   34,
										},
										File:   "labelReplace_sub_string_match_test.flux",
										Source: "columns: [\"_start\", \"_stop\"]",
										Start: ast.Position{
											Column: 17,
											Line:   34,
										},
									},
								},
								Lbrace: nil,
								Properties: []*ast.Property{&ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   34,
											},
											File:   "labelReplace_sub_string_match_test.flux",
											Source: "columns: [\"_start\", \"_stop\"]",
											Start: ast.Position{
												Column: 17,
												Line:   34,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 24,
													Line:   34,
												},
												File:   "labelReplace_sub_string_match_test.flux",
												Source: "columns",
												Start: ast.Position{
													Column: 17,
													Line:   34,
												},
											},
										},
										Name: "columns",
									},
									Separator: nil,
									Value: &ast.ArrayExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   34,
												},
												File:   "labelReplace_sub_string_match_test.flux",
												Source: "[\"_start\", \"_stop\"]",
												Start: ast.Position{
													Column: 26,
													Line:   34,
												},
											},
										},
										Elements: []ast.Expression{&ast.StringLiteral{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 35,
														Line:   34,
													},
													File:   "labelReplace_sub_string_match_test.flux",
													Source: "\"_start\"",
													Start: ast.Position{
														Column: 27,
														Line:   34,
													},
												},
											},
											Value: "_start",
										}, &ast.StringLiteral{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 44,
														Line:   34,
													},
													File:   "labelReplace_sub_string_match_test.flux",
													Source: "\"_stop\"",
													Start: ast.Position{
														Column: 37,
														Line:   34,
													},
												},
											},
											Value: "_stop",
										}},
										Lbrack: nil,
										Rbrack: nil,
									},
								}},
								Rbrace: nil,
								With:   nil,
							}},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 46,
										Line:   34,
									},
									File:   "labelReplace_sub_string_match_test.flux",
									Source: "drop(columns: [\"_start\", \"_stop\"])",
									Start: ast.Position{
										Column: 12,
										Line:   34,
									},
								},
							},
							Callee: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 16,
											Line:   34,
										},
										File:   "labelReplace_sub_string_match_test.flux",
										Source: "drop",
										Start: ast.Position{
											Column: 12,
											Line:   34,
										},
									},
								},
								Name: "drop",
							},
							Lparen: nil,
							Rparen: nil,
						},
					},
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 10,
								Line:   40,
							},
							File:   "labelReplace_sub_string_match_test.flux",
							Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.labelReplace(\n            source: \"src\",\n            destination: \"dst\",\n            regex: \"value-(.*)\",\n            replacement: \"destination-value-$1\",\n        )",
							Start: ast.Position{
								Column: 5,
								Line:   32,
							},
						},
					},
					Call: &ast.CallExpression{
						Arguments: []ast.Expression{&ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 48,
										Line:   39,
									},
									File:   "labelReplace_sub_string_match_test.flux",
									Source: "source: \"src\",\n            destination: \"dst\",\n            regex: \"value-(.*)\",\n            replacement: \"destination-value-$1\"",
									Start: ast.Position{
										Column: 13,
										Line:   36,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 26,
											Line:   36,
										},
										File:   "labelReplace_sub_string_match_test.flux",
										Source: "source: \"src\"",
										Start: ast.Position{
											Column: 13,
											Line:   36,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 19,
												Line:   36,
											},
											File:   "labelReplace_sub_string_match_test.flux",
											Source: "source",
											Start: ast.Position{
												Column: 13,
												Line:   36,
											},
										},
									},
									Name: "source",
								},
								Separator: nil,
								Value: &ast.StringLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 26,
												Line:   36,
											},
											File:   "labelReplace_sub_string_match_test.flux",
											Source: "\"src\"",
											Start: ast.Position{
												Column: 21,
												Line:   36,
											},
										},
									},
									Value: "src",
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 31,
											Line:   37,
										},
										File:   "labelReplace_sub_string_match_test.flux",
										Source: "destination: \"dst\"",
										Start: ast.Position{
											Column: 13,
											Line:   37,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 24,
												Line:   37,
											},
											File:   "labelReplace_sub_string_match_test.flux",
											Source: "destination",
											Start: ast.Position{
												Column: 13,
												Line:   37,
											},
										},
									},
									Name: "destination",
								},
								Separator: nil,
								Value: &ast.StringLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 31,
												Line:   37,
											},
											File:   "labelReplace_sub_string_match_test.flux",
											Source: "\"dst\"",
											Start: ast.Position{
												Column: 26,
												Line:   37,
											},
										},
									},
									Value: "dst",
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 32,
											Line:   38,
										},
										File:   "labelReplace_sub_string_match_test.flux",
										Source: "regex: \"value-(.*)\"",
										Start: ast.Position{
											Column: 13,
											Line:   38,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 18,
												Line:   38,
											},
											File:   "labelReplace_sub_string_match_test.flux",
											Source: "regex",
											Start: ast.Position{
												Column: 13,
												Line:   38,
											},
										},
									},
									Name: "regex",
								},
								Separator: nil,
								Value: &ast.StringLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 32,
												Line:   38,
											},
											File:   "labelReplace_sub_string_match_test.flux",
											Source: "\"value-(.*)\"",
											Start: ast.Position{
												Column: 20,
												Line:   38,
											},
										},
									},
									Value: "value-(.*)",
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 48,
											Line:   39,
										},
										File:   "labelReplace_sub_string_match_test.flux",
										Source: "replacement: \"destination-value-$1\"",
										Start: ast.Position{
											Column: 13,
											Line:   39,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 24,
												Line:   39,
											},
											File:   "labelReplace_sub_string_match_test.flux",
											Source: "replacement",
											Start: ast.Position{
												Column: 13,
												Line:   39,
											},
										},
									},
									Name: "replacement",
								},
								Separator: nil,
								Value: &ast.StringLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 48,
												Line:   39,
											},
											File:   "labelReplace_sub_string_match_test.flux",
											Source: "\"destination-value-$1\"",
											Start: ast.Position{
												Column: 26,
												Line:   39,
											},
										},
									},
									Value: "destination-value-$1",
								},
							}},
							Rbrace: nil,
							With:   nil,
						}},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 10,
									Line:   40,
								},
								File:   "labelReplace_sub_string_match_test.flux",
								Source: "promql.labelReplace(\n            source: \"src\",\n            destination: \"dst\",\n            regex: \"value-(.*)\",\n            replacement: \"destination-value-$1\",\n        )",
								Start: ast.Position{
									Column: 12,
									Line:   35,
								},
							},
						},
						Callee: &ast.MemberExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 31,
										Line:   35,
									},
									File:   "labelReplace_sub_string_match_test.flux",
									Source: "promql.labelReplace",
									Start: ast.Position{
										Column: 12,
										Line:   35,
									},
								},
							},
							Lbrack: nil,
							Object: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 18,
											Line:   35,
										},
										File:   "labelReplace_sub_string_match_test.flux",
										Source: "promql",
										Start: ast.Position{
											Column: 12,
											Line:   35,
										},
									},
								},
								Name: "promql",
							},
							Property: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 31,
											Line:   35,
										},
										File:   "labelReplace_sub_string_match_test.flux",
										Source: "labelReplace",
										Start: ast.Position{
											Column: 19,
											Line:   35,
										},
									},
								},
								Name: "labelReplace",
							},
							Rbrack: nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
				},
				Lparen: nil,
				Params: []*ast.Property{&ast.Property{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 27,
								Line:   31,
							},
							File:   "labelReplace_sub_string_match_test.flux",
							Source: "table=<-",
							Start: ast.Position{
								Column: 19,
								Line:   31,
							},
						},
					},
					Comma: nil,
					Key: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 24,
									Line:   31,
								},
								File:   "labelReplace_sub_string_match_test.flux",
								Source: "table",
								Start: ast.Position{
									Column: 19,
									Line:   31,
								},
							},
						},
						Name: "table",
					},
					Separator: nil,
					Value: &ast.PipeLiteral{BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 27,
								Line:   31,
							},
							File:   "labelReplace_sub_string_match_test.flux",
							Source: "<-",
							Start: ast.Position{
								Column: 25,
								Line:   31,
							},
						},
					}},
				}},
				Rparan: nil,
			},
		}, &ast.TestStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 105,
							Line:   43,
						},
						File:   "labelReplace_sub_string_match_test.flux",
						Source: "_labelReplace = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
						Start: ast.Position{
							Column: 6,
							Line:   42,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 19,
								Line:   42,
							},
							File:   "labelReplace_sub_string_match_test.flux",
							Source: "_labelReplace",
							Start: ast.Position{
								Column: 6,
								Line:   42,
							},
						},
					},
					Name: "_labelReplace",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 105,
								Line:   43,
							},
							File:   "labelReplace_sub_string_match_test.flux",
							Source: "() =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
							Start: ast.Position{
								Column: 22,
								Line:   42,
							},
						},
					},
					Body: &ast.ParenExpression{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 105,
									Line:   43,
								},
								File:   "labelReplace_sub_string_match_test.flux",
								Source: "({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
								Start: ast.Position{
									Column: 5,
									Line:   43,
								},
							},
						},
						Expression: &ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 104,
										Line:   43,
									},
									File:   "labelReplace_sub_string_match_test.flux",
									Source: "{input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace}",
									Start: ast.Position{
										Column: 6,
										Line:   43,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   43,
										},
										File:   "labelReplace_sub_string_match_test.flux",
										Source: "input: testing.loadStorage(csv: inData)",
										Start: ast.Position{
											Column: 7,
											Line:   43,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 12,
												Line:   43,
											},
											File:   "labelReplace_sub_string_match_test.flux",
											Source: "input",
											Start: ast.Position{
												Column: 7,
												Line:   43,
											},
										},
									},
									Name: "input",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   43,
												},
												File:   "labelReplace_sub_string_match_test.flux",
												Source: "csv: inData",
												Start: ast.Position{
													Column: 34,
													Line:   43,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   43,
													},
													File:   "labelReplace_sub_string_match_test.flux",
													Source: "csv: inData",
													Start: ast.Position{
														Column: 34,
														Line:   43,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 37,
															Line:   43,
														},
														File:   "labelReplace_sub_string_match_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 34,
															Line:   43,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 45,
															Line:   43,
														},
														File:   "labelReplace_sub_string_match_test.flux",
														Source: "inData",
														Start: ast.Position{
															Column: 39,
															Line:   43,
														},
													},
												},
												Name: "inData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 46,
												Line:   43,
											},
											File:   "labelReplace_sub_string_match_test.flux",
											Source: "testing.loadStorage(csv: inData)",
											Start: ast.Position{
												Column: 14,
												Line:   43,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 33,
													Line:   43,
												},
												File:   "labelReplace_sub_string_match_test.flux",
												Source: "testing.loadStorage",
												Start: ast.Position{
													Column: 14,
													Line:   43,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 21,
														Line:   43,
													},
													File:   "labelReplace_sub_string_match_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 14,
														Line:   43,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 33,
														Line:   43,
													},
													File:   "labelReplace_sub_string_match_test.flux",
													Source: "loadStorage",
													Start: ast.Position{
														Column: 22,
														Line:   43,
													},
												},
											},
											Name: "loadStorage",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 83,
											Line:   43,
										},
										File:   "labelReplace_sub_string_match_test.flux",
										Source: "want: testing.loadMem(csv: outData)",
										Start: ast.Position{
											Column: 48,
											Line:   43,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 52,
												Line:   43,
											},
											File:   "labelReplace_sub_string_match_test.flux",
											Source: "want",
											Start: ast.Position{
												Column: 48,
												Line:   43,
											},
										},
									},
									Name: "want",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 82,
													Line:   43,
												},
												File:   "labelReplace_sub_string_match_test.flux",
												Source: "csv: outData",
												Start: ast.Position{
													Column: 70,
													Line:   43,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 82,
														Line:   43,
													},
													File:   "labelReplace_sub_string_match_test.flux",
													Source: "csv: outData",
													Start: ast.Position{
														Column: 70,
														Line:   43,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 73,
															Line:   43,
														},
														File:   "labelReplace_sub_string_match_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 70,
															Line:   43,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 82,
															Line:   43,
														},
														File:   "labelReplace_sub_string_match_test.flux",
														Source: "outData",
														Start: ast.Position{
															Column: 75,
															Line:   43,
														},
													},
												},
												Name: "outData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 83,
												Line:   43,
											},
											File:   "labelReplace_sub_string_match_test.flux",
											Source: "testing.loadMem(csv: outData)",
											Start: ast.Position{
												Column: 54,
												Line:   43,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 69,
													Line:   43,
												},
												File:   "labelReplace_sub_string_match_test.flux",
												Source: "testing.loadMem",
												Start: ast.Position{
													Column: 54,
													Line:   43,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 61,
														Line:   43,
													},
													File:   "labelReplace_sub_string_match_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 54,
														Line:   43,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 69,
														Line:   43,
													},
													File:   "labelReplace_sub_string_match_test.flux",
													Source: "loadMem",
													Start: ast.Position{
														Column: 62,
														Line:   43,
													},
												},
											},
											Name: "loadMem",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 103,
											Line:   43,
										},
										File:   "labelReplace_sub_string_match_test.flux",
										Source: "fn: t_labelReplace",
										Start: ast.Position{
											Column: 85,
											Line:   43,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 87,
												Line:   43,
											},
											File:   "labelReplace_sub_string_match_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 85,
												Line:   43,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 103,
												Line:   43,
											},
											File:   "labelReplace_sub_string_match_test.flux",
											Source: "t_labelReplace",
											Start: ast.Position{
												Column: 89,
												Line:   43,
											},
										},
									},
									Name: "t_labelReplace",
								},
							}},
							Rbrace: nil,
							With:   nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 105,
						Line:   43,
					},
					File:   "labelReplace_sub_string_match_test.flux",
					Source: "test _labelReplace = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_labelReplace})",
					Start: ast.Position{
						Column: 1,
						Line:   42,
					},
				},
			},
		}},
		Eof: nil,
		Imports: []*ast.ImportDeclaration{&ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 17,
						Line:   4,
					},
					File:   "labelReplace_sub_string_match_test.flux",
					Source: "import \"testing\"",
					Start: ast.Position{
						Column: 1,
						Line:   4,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 17,
							Line:   4,
						},
						File:   "labelReplace_sub_string_match_test.flux",
						Source: "\"testing\"",
						Start: ast.Position{
							Column: 8,
							Line:   4,
						},
					},
				},
				Value: "testing",
			},
		}, &ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 25,
						Line:   5,
					},
					File:   "labelReplace_sub_string_match_test.flux",
					Source: "import \"internal/promql\"",
					Start: ast.Position{
						Column: 1,
						Line:   5,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 25,
							Line:   5,
						},
						File:   "labelReplace_sub_string_match_test.flux",
						Source: "\"internal/promql\"",
						Start: ast.Position{
							Column: 8,
							Line:   5,
						},
					},
				},
				Value: "internal/promql",
			},
		}},
		Metadata: "parser-type=rust",
		Name:     "labelReplace_sub_string_match_test.flux",
		Package: &ast.PackageClause{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 20,
						Line:   1,
					},
					File:   "labelReplace_sub_string_match_test.flux",
					Source: "package promql_test",
					Start: ast.Position{
						Column: 1,
						Line:   1,
					},
				},
			},
			Name: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 20,
							Line:   1,
						},
						File:   "labelReplace_sub_string_match_test.flux",
						Source: "promql_test",
						Start: ast.Position{
							Column: 9,
							Line:   1,
						},
					},
				},
				Name: "promql_test",
			},
		},
	}, &ast.File{
		BaseNode: ast.BaseNode{
			Comments: nil,
			Errors:   nil,
			Loc: &ast.SourceLocation{
				End: ast.Position{
					Column: 109,
					Line:   68,
				},
				File:   "linearRegression_nopredict_test.flux",
				Source: "package promql_test\n\n\nimport \"testing\"\nimport \"internal/promql\"\nimport c \"csv\"\n\noption now = () => 2030-01-01T00:00:00Z\n\n// todo(faith): remove overload https://github.com/influxdata/flux/issues/3155\noption testing.loadStorage = (csv) =>\n    c.from(csv: csv)\n        |> map(\n            fn: (r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                }),\n        )\n\ninData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,100,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,100,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,400,prometheus\n,,3,2018-12-18T20:52:33Z,metric_name4,100,prometheus\n\"\noutData =\n    \"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name1,0,prometheus\n,,1,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name2,2.545714285714286,prometheus\n,,2,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name3,4.857142857142857,prometheus\n\"\nt_linearRegression = (table=<-) =>\n    table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)\n        |> promql.linearRegression(predict: false, fromNow: 0.0)\n\ntest _linearRegression = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_linearRegression})",
				Start: ast.Position{
					Column: 1,
					Line:   1,
				},
			},
		},
		Body: []ast.Statement{&ast.OptionStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 40,
							Line:   8,
						},
						File:   "linearRegression_nopredict_test.flux",
						Source: "now = () => 2030-01-01T00:00:00Z",
						Start: ast.Position{
							Column: 8,
							Line:   8,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 11,
								Line:   8,
							},
							File:   "linearRegression_nopredict_test.flux",
							Source: "now",
							Start: ast.Position{
								Column: 8,
								Line:   8,
							},
						},
					},
					Name: "now",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 40,
								Line:   8,
							},
							File:   "linearRegression_nopredict_test.flux",
							Source: "() => 2030-01-01T00:00:00Z",
							Start: ast.Position{
								Column: 14,
								Line:   8,
							},
						},
					},
					Body: &ast.DateTimeLiteral{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 40,
									Line:   8,
								},
								File:   "linearRegression_nopredict_test.flux",
								Source: "2030-01-01T00:00:00Z",
								Start: ast.Position{
									Column: 20,
									Line:   8,
								},
							},
						},
						Value: parser.MustParseTime("2030-01-01T00:00:00Z"),
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 40,
						Line:   8,
					},
					File:   "linearRegression_nopredict_test.flux",
					Source: "option now = () => 2030-01-01T00:00:00Z",
					Start: ast.Position{
						Column: 1,
						Line:   8,
					},
				},
			},
		}, &ast.OptionStatement{
			Assignment: &ast.MemberAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 10,
							Line:   24,
						},
						File:   "linearRegression_nopredict_test.flux",
						Source: "testing.loadStorage = (csv) =>\n    c.from(csv: csv)\n        |> map(\n            fn: (r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                }),\n        )",
						Start: ast.Position{
							Column: 8,
							Line:   11,
						},
					},
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 10,
								Line:   24,
							},
							File:   "linearRegression_nopredict_test.flux",
							Source: "(csv) =>\n    c.from(csv: csv)\n        |> map(\n            fn: (r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                }),\n        )",
							Start: ast.Position{
								Column: 30,
								Line:   11,
							},
						},
					},
					Body: &ast.PipeExpression{
						Argument: &ast.CallExpression{
							Arguments: []ast.Expression{&ast.ObjectExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 20,
											Line:   12,
										},
										File:   "linearRegression_nopredict_test.flux",
										Source: "csv: csv",
										Start: ast.Position{
											Column: 12,
											Line:   12,
										},
									},
								},
								Lbrace: nil,
								Properties: []*ast.Property{&ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 20,
												Line:   12,
											},
											File:   "linearRegression_nopredict_test.flux",
											Source: "csv: csv",
											Start: ast.Position{
												Column: 12,
												Line:   12,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 15,
													Line:   12,
												},
												File:   "linearRegression_nopredict_test.flux",
												Source: "csv",
												Start: ast.Position{
													Column: 12,
													Line:   12,
												},
											},
										},
										Name: "csv",
									},
									Separator: nil,
									Value: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 20,
													Line:   12,
												},
												File:   "linearRegression_nopredict_test.flux",
												Source: "csv",
												Start: ast.Position{
													Column: 17,
													Line:   12,
												},
											},
										},
										Name: "csv",
									},
								}},
								Rbrace: nil,
								With:   nil,
							}},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 21,
										Line:   12,
									},
									File:   "linearRegression_nopredict_test.flux",
									Source: "c.from(csv: csv)",
									Start: ast.Position{
										Column: 5,
										Line:   12,
									},
								},
							},
							Callee: &ast.MemberExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 11,
											Line:   12,
										},
										File:   "linearRegression_nopredict_test.flux",
										Source: "c.from",
										Start: ast.Position{
											Column: 5,
											Line:   12,
										},
									},
								},
								Lbrack: nil,
								Object: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 6,
												Line:   12,
											},
											File:   "linearRegression_nopredict_test.flux",
											Source: "c",
											Start: ast.Position{
												Column: 5,
												Line:   12,
											},
										},
									},
									Name: "c",
								},
								Property: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 11,
												Line:   12,
											},
											File:   "linearRegression_nopredict_test.flux",
											Source: "from",
											Start: ast.Position{
												Column: 7,
												Line:   12,
											},
										},
									},
									Name: "from",
								},
								Rbrack: nil,
							},
							Lparen: nil,
							Rparen: nil,
						},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 10,
									Line:   24,
								},
								File:   "linearRegression_nopredict_test.flux",
								Source: "c.from(csv: csv)\n        |> map(\n            fn: (r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                }),\n        )",
								Start: ast.Position{
									Column: 5,
									Line:   12,
								},
							},
						},
						Call: &ast.CallExpression{
							Arguments: []ast.Expression{&ast.ObjectExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 19,
											Line:   23,
										},
										File:   "linearRegression_nopredict_test.flux",
										Source: "fn: (r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                })",
										Start: ast.Position{
											Column: 13,
											Line:   14,
										},
									},
								},
								Lbrace: nil,
								Properties: []*ast.Property{&ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 19,
												Line:   23,
											},
											File:   "linearRegression_nopredict_test.flux",
											Source: "fn: (r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                })",
											Start: ast.Position{
												Column: 13,
												Line:   14,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 15,
													Line:   14,
												},
												File:   "linearRegression_nopredict_test.flux",
												Source: "fn",
												Start: ast.Position{
													Column: 13,
													Line:   14,
												},
											},
										},
										Name: "fn",
									},
									Separator: nil,
									Value: &ast.FunctionExpression{
										Arrow: nil,
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 19,
													Line:   23,
												},
												File:   "linearRegression_nopredict_test.flux",
												Source: "(r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                })",
												Start: ast.Position{
													Column: 17,
													Line:   14,
												},
											},
										},
										Body: &ast.ParenExpression{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 19,
														Line:   23,
													},
													File:   "linearRegression_nopredict_test.flux",
													Source: "({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                })",
													Start: ast.Position{
														Column: 17,
														Line:   15,
													},
												},
											},
											Expression: &ast.ObjectExpression{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 18,
															Line:   23,
														},
														File:   "linearRegression_nopredict_test.flux",
														Source: "{r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                }",
														Start: ast.Position{
															Column: 18,
															Line:   15,
														},
													},
												},
												Lbrace: nil,
												Properties: []*ast.Property{&ast.Property{
													BaseNode: ast.BaseNode{
														Comments: nil,
														Errors:   nil,
														Loc: &ast.SourceLocation{
															End: ast.Position{
																Column: 119,
																Line:   16,
															},
															File:   "linearRegression_nopredict_test.flux",
															Source: "_field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\")",
															Start: ast.Position{
																Column: 26,
																Line:   15,
															},
														},
													},
													Comma: nil,
													Key: &ast.Identifier{
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 32,
																	Line:   15,
																},
																File:   "linearRegression_nopredict_test.flux",
																Source: "_field",
																Start: ast.Position{
																	Column: 26,
																	Line:   15,
																},
															},
														},
														Name: "_field",
													},
													Separator: nil,
													Value: &ast.ConditionalExpression{
														Alternate: &ast.CallExpression{
															Arguments: []ast.Expression{&ast.ObjectExpression{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 118,
																			Line:   16,
																		},
																		File:   "linearRegression_nopredict_test.flux",
																		Source: "msg: \"test input table does not have _field column\"",
																		Start: ast.Position{
																			Column: 67,
																			Line:   16,
																		},
																	},
																},
																Lbrace: nil,
																Properties: []*ast.Property{&ast.Property{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 118,
																				Line:   16,
																			},
																			File:   "linearRegression_nopredict_test.flux",
																			Source: "msg: \"test input table does not have _field column\"",
																			Start: ast.Position{
																				Column: 67,
																				Line:   16,
																			},
																		},
																	},
																	Comma: nil,
																	Key: &ast.Identifier{
																		BaseNode: ast.BaseNode{
																			Comments: nil,
																			Errors:   nil,
																			Loc: &ast.SourceLocation{
																				End: ast.Position{
																					Column: 70,
																					Line:   16,
																				},
																				File:   "linearRegression_nopredict_test.flux",
																				Source: "msg",
																				Start: ast.Position{
																					Column: 67,
																					Line:   16,
																				},
																			},
																		},
																		Name: "msg",
																	},
																	Separator: nil,
																	Value: &ast.StringLiteral{
																		BaseNode: ast.BaseNode{
																			Comments: nil,
																			Errors:   nil,
																			Loc: &ast.SourceLocation{
																				End: ast.Position{
																					Column: 118,
																					Line:   16,
																				},
																				File:   "linearRegression_nopredict_test.flux",
																				Source: "\"test input table does not have _field column\"",
																				Start: ast.Position{
																					Column: 72,
																					Line:   16,
																				},
																			},
																		},
																		Value: "test input table does not have _field column",
																	},
																}},
																Rbrace: nil,
																With:   nil,
															}},
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 119,
																		Line:   16,
																	},
																	File:   "linearRegression_nopredict_test.flux",
																	Source: "die(msg: \"test input table does not have _field column\")",
																	Start: ast.Position{
																		Column: 63,
																		Line:   16,
																	},
																},
															},
															Callee: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 66,
																			Line:   16,
																		},
																		File:   "linearRegression_nopredict_test.flux",
																		Source: "die",
																		Start: ast.Position{
																			Column: 63,
																			Line:   16,
																		},
																	},
																},
																Name: "die",
															},
															Lparen: nil,
															Rparen: nil,
														},
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 119,
																	Line:   16,
																},
																File:   "linearRegression_nopredict_test.flux",
																Source: "if exists r._field then r._field else die(msg: \"test input table does not have _field column\")",
																Start: ast.Position{
																	Column: 25,
																	Line:   16,
																},
															},
														},
														Consequent: &ast.MemberExpression{
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 57,
																		Line:   16,
																	},
																	File:   "linearRegression_nopredict_test.flux",
																	Source: "r._field",
																	Start: ast.Position{
																		Column: 49,
																		Line:   16,
																	},
																},
															},
															Lbrack: nil,
															Object: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 50,
																			Line:   16,
																		},
																		File:   "linearRegression_nopredict_test.flux",
																		Source: "r",
																		Start: ast.Position{
																			Column: 49,
																			Line:   16,
																		},
																	},
																},
																Name: "r",
															},
															Property: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 57,
																			Line:   16,
																		},
																		File:   "linearRegression_nopredict_test.flux",
																		Source: "_field",
																		Start: ast.Position{
																			Column: 51,
																			Line:   16,
																		},
																	},
																},
																Name: "_field",
															},
															Rbrack: nil,
														},
														Test: &ast.UnaryExpression{
															Argument: &ast.MemberExpression{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 43,
																			Line:   16,
																		},
																		File:   "linearRegression_nopredict_test.flux",
																		Source: "r._field",
																		Start: ast.Position{
																			Column: 35,
																			Line:   16,
																		},
																	},
																},
																Lbrack: nil,
																Object: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 36,
																				Line:   16,
																			},
																			File:   "linearRegression_nopredict_test.flux",
																			Source: "r",
																			Start: ast.Position{
																				Column: 35,
																				Line:   16,
																			},
																		},
																	},
																	Name: "r",
																},
																Property: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 43,
																				Line:   16,
																			},
																			File:   "linearRegression_nopredict_test.flux",
																			Source: "_field",
																			Start: ast.Position{
																				Column: 37,
																				Line:   16,
																			},
																		},
																	},
																	Name: "_field",
																},
																Rbrack: nil,
															},
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 43,
																		Line:   16,
																	},
																	File:   "linearRegression_nopredict_test.flux",
																	Source: "exists r._field",
																	Start: ast.Position{
																		Column: 28,
																		Line:   16,
																	},
																},
															},
															Operator: 14,
														},
														Tk_else: nil,
														Tk_if:   nil,
														Tk_then: nil,
													},
												}, &ast.Property{
													BaseNode: ast.BaseNode{
														Comments: nil,
														Errors:   nil,
														Loc: &ast.SourceLocation{
															End: ast.Position{
																Column: 91,
																Line:   21,
															},
															File:   "linearRegression_nopredict_test.flux",
															Source: "_measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\")",
															Start: ast.Position{
																Column: 21,
																Line:   17,
															},
														},
													},
													Comma: nil,
													Key: &ast.Identifier{
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 33,
																	Line:   17,
																},
																File:   "linearRegression_nopredict_test.flux",
																Source: "_measurement",
																Start: ast.Position{
																	Column: 21,
																	Line:   17,
																},
															},
														},
														Name: "_measurement",
													},
													Separator: nil,
													Value: &ast.ConditionalExpression{
														Alternate: &ast.CallExpression{
															Arguments: []ast.Expression{&ast.ObjectExpression{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 90,
																			Line:   21,
																		},
																		File:   "linearRegression_nopredict_test.flux",
																		Source: "msg: \"test input table does not have _measurement column\"",
																		Start: ast.Position{
																			Column: 33,
																			Line:   21,
																		},
																	},
																},
																Lbrace: nil,
																Properties: []*ast.Property{&ast.Property{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 90,
																				Line:   21,
																			},
																			File:   "linearRegression_nopredict_test.flux",
																			Source: "msg: \"test input table does not have _measurement column\"",
																			Start: ast.Position{
																				Column: 33,
																				Line:   21,
																			},
																		},
																	},
																	Comma: nil,
																	Key: &ast.Identifier{
																		BaseNode: ast.BaseNode{
																			Comments: nil,
																			Errors:   nil,
																			Loc: &ast.SourceLocation{
																				End: ast.Position{
																					Column: 36,
																					Line:   21,
																				},
																				File:   "linearRegression_nopredict_test.flux",
																				Source: "msg",
																				Start: ast.Position{
																					Column: 33,
																					Line:   21,
																				},
																			},
																		},
																		Name: "msg",
																	},
																	Separator: nil,
																	Value: &ast.StringLiteral{
																		BaseNode: ast.BaseNode{
																			Comments: nil,
																			Errors:   nil,
																			Loc: &ast.SourceLocation{
																				End: ast.Position{
																					Column: 90,
																					Line:   21,
																				},
																				File:   "linearRegression_nopredict_test.flux",
																				Source: "\"test input table does not have _measurement column\"",
																				Start: ast.Position{
																					Column: 38,
																					Line:   21,
																				},
																			},
																		},
																		Value: "test input table does not have _measurement column",
																	},
																}},
																Rbrace: nil,
																With:   nil,
															}},
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 91,
																		Line:   21,
																	},
																	File:   "linearRegression_nopredict_test.flux",
																	Source: "die(msg: \"test input table does not have _measurement column\")",
																	Start: ast.Position{
																		Column: 29,
																		Line:   21,
																	},
																},
															},
															Callee: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 32,
																			Line:   21,
																		},
																		File:   "linearRegression_nopredict_test.flux",
																		Source: "die",
																		Start: ast.Position{
																			Column: 29,
																			Line:   21,
																		},
																	},
																},
																Name: "die",
															},
															Lparen: nil,
															Rparen: nil,
														},
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 91,
																	Line:   21,
																},
																File:   "linearRegression_nopredict_test.flux",
																Source: "if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\")",
																Start: ast.Position{
																	Column: 25,
																	Line:   18,
																},
															},
														},
														Consequent: &ast.MemberExpression{
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 43,
																		Line:   19,
																	},
																	File:   "linearRegression_nopredict_test.flux",
																	Source: "r._measurement",
																	Start: ast.Position{
																		Column: 29,
																		Line:   19,
																	},
																},
															},
															Lbrack: nil,
															Object: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 30,
																			Line:   19,
																		},
																		File:   "linearRegression_nopredict_test.flux",
																		Source: "r",
																		Start: ast.Position{
																			Column: 29,
																			Line:   19,
																		},
																	},
																},
																Name: "r",
															},
															Property: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 43,
																			Line:   19,
																		},
																		File:   "linearRegression_nopredict_test.flux",
																		Source: "_measurement",
																		Start: ast.Position{
																			Column: 31,
																			Line:   19,
																		},
																	},
																},
																Name: "_measurement",
															},
															Rbrack: nil,
														},
														Test: &ast.UnaryExpression{
															Argument: &ast.MemberExpression{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 49,
																			Line:   18,
																		},
																		File:   "linearRegression_nopredict_test.flux",
																		Source: "r._measurement",
																		Start: ast.Position{
																			Column: 35,
																			Line:   18,
																		},
																	},
																},
																Lbrack: nil,
																Object: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 36,
																				Line:   18,
																			},
																			File:   "linearRegression_nopredict_test.flux",
																			Source: "r",
																			Start: ast.Position{
																				Column: 35,
																				Line:   18,
																			},
																		},
																	},
																	Name: "r",
																},
																Property: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 49,
																				Line:   18,
																			},
																			File:   "linearRegression_nopredict_test.flux",
																			Source: "_measurement",
																			Start: ast.Position{
																				Column: 37,
																				Line:   18,
																			},
																		},
																	},
																	Name: "_measurement",
																},
																Rbrack: nil,
															},
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 49,
																		Line:   18,
																	},
																	File:   "linearRegression_nopredict_test.flux",
																	Source: "exists r._measurement",
																	Start: ast.Position{
																		Column: 28,
																		Line:   18,
																	},
																},
															},
															Operator: 14,
														},
														Tk_else: nil,
														Tk_if:   nil,
														Tk_then: nil,
													},
												}, &ast.Property{
													BaseNode: ast.BaseNode{
														Comments: nil,
														Errors:   nil,
														Loc: &ast.SourceLocation{
															End: ast.Position{
																Column: 119,
																Line:   22,
															},
															File:   "linearRegression_nopredict_test.flux",
															Source: "_time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\")",
															Start: ast.Position{
																Column: 21,
																Line:   22,
															},
														},
													},
													Comma: nil,
													Key: &ast.Identifier{
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 26,
																	Line:   22,
																},
																File:   "linearRegression_nopredict_test.flux",
																Source: "_time",
																Start: ast.Position{
																	Column: 21,
																	Line:   22,
																},
															},
														},
														Name: "_time",
													},
													Separator: nil,
													Value: &ast.ConditionalExpression{
														Alternate: &ast.CallExpression{
															Arguments: []ast.Expression{&ast.ObjectExpression{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 118,
																			Line:   22,
																		},
																		File:   "linearRegression_nopredict_test.flux",
																		Source: "msg: \"test input table does not have _time column\"",
																		Start: ast.Position{
																			Column: 68,
																			Line:   22,
																		},
																	},
																},
																Lbrace: nil,
																Properties: []*ast.Property{&ast.Property{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 118,
																				Line:   22,
																			},
																			File:   "linearRegression_nopredict_test.flux",
																			Source: "msg: \"test input table does not have _time column\"",
																			Start: ast.Position{
																				Column: 68,
																				Line:   22,
																			},
																		},
																	},
																	Comma: nil,
																	Key: &ast.Identifier{
																		BaseNode: ast.BaseNode{
																			Comments: nil,
																			Errors:   nil,
																			Loc: &ast.SourceLocation{
																				End: ast.Position{
																					Column: 71,
																					Line:   22,
																				},
																				File:   "linearRegression_nopredict_test.flux",
																				Source: "msg",
																				Start: ast.Position{
																					Column: 68,
																					Line:   22,
																				},
																			},
																		},
																		Name: "msg",
																	},
																	Separator: nil,
																	Value: &ast.StringLiteral{
																		BaseNode: ast.BaseNode{
																			Comments: nil,
																			Errors:   nil,
																			Loc: &ast.SourceLocation{
																				End: ast.Position{
																					Column: 118,
																					Line:   22,
																				},
																				File:   "linearRegression_nopredict_test.flux",
																				Source: "\"test input table does not have _time column\"",
																				Start: ast.Position{
																					Column: 73,
																					Line:   22,
																				},
																			},
																		},
																		Value: "test input table does not have _time column",
																	},
																}},
																Rbrace: nil,
																With:   nil,
															}},
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 119,
																		Line:   22,
																	},
																	File:   "linearRegression_nopredict_test.flux",
																	Source: "die(msg: \"test input table does not have _time column\")",
																	Start: ast.Position{
																		Column: 64,
																		Line:   22,
																	},
																},
															},
															Callee: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 67,
																			Line:   22,
																		},
																		File:   "linearRegression_nopredict_test.flux",
																		Source: "die",
																		Start: ast.Position{
																			Column: 64,
																			Line:   22,
																		},
																	},
																},
																Name: "die",
															},
															Lparen: nil,
															Rparen: nil,
														},
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 119,
																	Line:   22,
																},
																File:   "linearRegression_nopredict_test.flux",
																Source: "if exists r._time then r._time else die(msg: \"test input table does not have _time column\")",
																Start: ast.Position{
																	Column: 28,
																	Line:   22,
																},
															},
														},
														Consequent: &ast.MemberExpression{
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 58,
																		Line:   22,
																	},
																	File:   "linearRegression_nopredict_test.flux",
																	Source: "r._time",
																	Start: ast.Position{
																		Column: 51,
																		Line:   22,
																	},
																},
															},
															Lbrack: nil,
															Object: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 52,
																			Line:   22,
																		},
																		File:   "linearRegression_nopredict_test.flux",
																		Source: "r",
																		Start: ast.Position{
																			Column: 51,
																			Line:   22,
																		},
																	},
																},
																Name: "r",
															},
															Property: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 58,
																			Line:   22,
																		},
																		File:   "linearRegression_nopredict_test.flux",
																		Source: "_time",
																		Start: ast.Position{
																			Column: 53,
																			Line:   22,
																		},
																	},
																},
																Name: "_time",
															},
															Rbrack: nil,
														},
														Test: &ast.UnaryExpression{
															Argument: &ast.MemberExpression{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 45,
																			Line:   22,
																		},
																		File:   "linearRegression_nopredict_test.flux",
																		Source: "r._time",
																		Start: ast.Position{
																			Column: 38,
																			Line:   22,
																		},
																	},
																},
																Lbrack: nil,
																Object: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 39,
																				Line:   22,
																			},
																			File:   "linearRegression_nopredict_test.flux",
																			Source: "r",
																			Start: ast.Position{
																				Column: 38,
																				Line:   22,
																			},
																		},
																	},
																	Name: "r",
																},
																Property: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 45,
																				Line:   22,
																			},
																			File:   "linearRegression_nopredict_test.flux",
																			Source: "_time",
																			Start: ast.Position{
																				Column: 40,
																				Line:   22,
																			},
																		},
																	},
																	Name: "_time",
																},
																Rbrack: nil,
															},
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 45,
																		Line:   22,
																	},
																	File:   "linearRegression_nopredict_test.flux",
																	Source: "exists r._time",
																	Start: ast.Position{
																		Column: 31,
																		Line:   22,
																	},
																},
															},
															Operator: 14,
														},
														Tk_else: nil,
														Tk_if:   nil,
														Tk_then: nil,
													},
												}},
												Rbrace: nil,
												With: &ast.Identifier{
													BaseNode: ast.BaseNode{
														Comments: nil,
														Errors:   nil,
														Loc: &ast.SourceLocation{
															End: ast.Position{
																Column: 20,
																Line:   15,
															},
															File:   "linearRegression_nopredict_test.flux",
															Source: "r",
															Start: ast.Position{
																Column: 19,
																Line:   15,
															},
														},
													},
													Name: "r",
												},
											},
											Lparen: nil,
											Rparen: nil,
										},
										Lparen: nil,
										Params: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 19,
														Line:   14,
													},
													File:   "linearRegression_nopredict_test.flux",
													Source: "r",
													Start: ast.Position{
														Column: 18,
														Line:   14,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 19,
															Line:   14,
														},
														File:   "linearRegression_nopredict_test.flux",
														Source: "r",
														Start: ast.Position{
															Column: 18,
															Line:   14,
														},
													},
												},
												Name: "r",
											},
											Separator: nil,
											Value:     nil,
										}},
										Rparan: nil,
									},
								}},
								Rbrace: nil,
								With:   nil,
							}},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 10,
										Line:   24,
									},
									File:   "linearRegression_nopredict_test.flux",
									Source: "map(\n            fn: (r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                }),\n        )",
									Start: ast.Position{
										Column: 12,
										Line:   13,
									},
								},
							},
							Callee: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 15,
											Line:   13,
										},
										File:   "linearRegression_nopredict_test.flux",
										Source: "map",
										Start: ast.Position{
											Column: 12,
											Line:   13,
										},
									},
								},
								Name: "map",
							},
							Lparen: nil,
							Rparen: nil,
						},
					},
					Lparen: nil,
					Params: []*ast.Property{&ast.Property{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 34,
									Line:   11,
								},
								File:   "linearRegression_nopredict_test.flux",
								Source: "csv",
								Start: ast.Position{
									Column: 31,
									Line:   11,
								},
							},
						},
						Comma: nil,
						Key: &ast.Identifier{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 34,
										Line:   11,
									},
									File:   "linearRegression_nopredict_test.flux",
									Source: "csv",
									Start: ast.Position{
										Column: 31,
										Line:   11,
									},
								},
							},
							Name: "csv",
						},
						Separator: nil,
						Value:     nil,
					}},
					Rparan: nil,
				},
				Member: &ast.MemberExpression{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 27,
								Line:   11,
							},
							File:   "linearRegression_nopredict_test.flux",
							Source: "testing.loadStorage",
							Start: ast.Position{
								Column: 8,
								Line:   11,
							},
						},
					},
					Lbrack: nil,
					Object: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 15,
									Line:   11,
								},
								File:   "linearRegression_nopredict_test.flux",
								Source: "testing",
								Start: ast.Position{
									Column: 8,
									Line:   11,
								},
							},
						},
						Name: "testing",
					},
					Property: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 27,
									Line:   11,
								},
								File:   "linearRegression_nopredict_test.flux",
								Source: "loadStorage",
								Start: ast.Position{
									Column: 16,
									Line:   11,
								},
							},
						},
						Name: "loadStorage",
					},
					Rbrack: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: []ast.Comment{ast.Comment{Text: "// todo(faith): remove overload https://github.com/influxdata/flux/issues/3155\n"}},
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 10,
						Line:   24,
					},
					File:   "linearRegression_nopredict_test.flux",
					Source: "option testing.loadStorage = (csv) =>\n    c.from(csv: csv)\n        |> map(\n            fn: (r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                }),\n        )",
					Start: ast.Position{
						Column: 1,
						Line:   11,
					},
				},
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   51,
					},
					File:   "linearRegression_nopredict_test.flux",
					Source: "inData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,100,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,100,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,400,prometheus\n,,3,2018-12-18T20:52:33Z,metric_name4,100,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   26,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 7,
							Line:   26,
						},
						File:   "linearRegression_nopredict_test.flux",
						Source: "inData",
						Start: ast.Position{
							Column: 1,
							Line:   26,
						},
					},
				},
				Name: "inData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   51,
						},
						File:   "linearRegression_nopredict_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,100,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,100,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,400,prometheus\n,,3,2018-12-18T20:52:33Z,metric_name4,100,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   27,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,100,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,100,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,400,prometheus\n,,3,2018-12-18T20:52:33Z,metric_name4,100,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   61,
					},
					File:   "linearRegression_nopredict_test.flux",
					Source: "outData =\n    \"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name1,0,prometheus\n,,1,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name2,2.545714285714286,prometheus\n,,2,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name3,4.857142857142857,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   52,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 8,
							Line:   52,
						},
						File:   "linearRegression_nopredict_test.flux",
						Source: "outData",
						Start: ast.Position{
							Column: 1,
							Line:   52,
						},
					},
				},
				Name: "outData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   61,
						},
						File:   "linearRegression_nopredict_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name1,0,prometheus\n,,1,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name2,2.545714285714286,prometheus\n,,2,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name3,4.857142857142857,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   53,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name1,0,prometheus\n,,1,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name2,2.545714285714286,prometheus\n,,2,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name3,4.857142857142857,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 65,
						Line:   65,
					},
					File:   "linearRegression_nopredict_test.flux",
					Source: "t_linearRegression = (table=<-) =>\n    table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)\n        |> promql.linearRegression(predict: false, fromNow: 0.0)",
					Start: ast.Position{
						Column: 1,
						Line:   62,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 19,
							Line:   62,
						},
						File:   "linearRegression_nopredict_test.flux",
						Source: "t_linearRegression",
						Start: ast.Position{
							Column: 1,
							Line:   62,
						},
					},
				},
				Name: "t_linearRegression",
			},
			Init: &ast.FunctionExpression{
				Arrow: nil,
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 65,
							Line:   65,
						},
						File:   "linearRegression_nopredict_test.flux",
						Source: "(table=<-) =>\n    table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)\n        |> promql.linearRegression(predict: false, fromNow: 0.0)",
						Start: ast.Position{
							Column: 22,
							Line:   62,
						},
					},
				},
				Body: &ast.PipeExpression{
					Argument: &ast.PipeExpression{
						Argument: &ast.Identifier{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 10,
										Line:   63,
									},
									File:   "linearRegression_nopredict_test.flux",
									Source: "table",
									Start: ast.Position{
										Column: 5,
										Line:   63,
									},
								},
							},
							Name: "table",
						},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 74,
									Line:   64,
								},
								File:   "linearRegression_nopredict_test.flux",
								Source: "table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)",
								Start: ast.Position{
									Column: 5,
									Line:   63,
								},
							},
						},
						Call: &ast.CallExpression{
							Arguments: []ast.Expression{&ast.ObjectExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 73,
											Line:   64,
										},
										File:   "linearRegression_nopredict_test.flux",
										Source: "start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z",
										Start: ast.Position{
											Column: 18,
											Line:   64,
										},
									},
								},
								Lbrace: nil,
								Properties: []*ast.Property{&ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   64,
											},
											File:   "linearRegression_nopredict_test.flux",
											Source: "start: 2018-12-18T20:50:00Z",
											Start: ast.Position{
												Column: 18,
												Line:   64,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 23,
													Line:   64,
												},
												File:   "linearRegression_nopredict_test.flux",
												Source: "start",
												Start: ast.Position{
													Column: 18,
													Line:   64,
												},
											},
										},
										Name: "start",
									},
									Separator: nil,
									Value: &ast.DateTimeLiteral{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   64,
												},
												File:   "linearRegression_nopredict_test.flux",
												Source: "2018-12-18T20:50:00Z",
												Start: ast.Position{
													Column: 25,
													Line:   64,
												},
											},
										},
										Value: parser.MustParseTime("2018-12-18T20:50:00Z"),
									},
								}, &ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 73,
												Line:   64,
											},
											File:   "linearRegression_nopredict_test.flux",
											Source: "stop: 2018-12-18T20:55:00Z",
											Start: ast.Position{
												Column: 47,
												Line:   64,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 51,
													Line:   64,
												},
												File:   "linearRegression_nopredict_test.flux",
												Source: "stop",
												Start: ast.Position{
													Column: 47,
													Line:   64,
												},
											},
										},
										Name: "stop",
									},
									Separator: nil,
									Value: &ast.DateTimeLiteral{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 73,
													Line:   64,
												},
												File:   "linearRegression_nopredict_test.flux",
												Source: "2018-12-18T20:55:00Z",
												Start: ast.Position{
													Column: 53,
													Line:   64,
												},
											},
										},
										Value: parser.MustParseTime("2018-12-18T20:55:00Z"),
									},
								}},
								Rbrace: nil,
								With:   nil,
							}},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 74,
										Line:   64,
									},
									File:   "linearRegression_nopredict_test.flux",
									Source: "range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)",
									Start: ast.Position{
										Column: 12,
										Line:   64,
									},
								},
							},
							Callee: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 17,
											Line:   64,
										},
										File:   "linearRegression_nopredict_test.flux",
										Source: "range",
										Start: ast.Position{
											Column: 12,
											Line:   64,
										},
									},
								},
								Name: "range",
							},
							Lparen: nil,
							Rparen: nil,
						},
					},
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 65,
								Line:   65,
							},
							File:   "linearRegression_nopredict_test.flux",
							Source: "table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)\n        |> promql.linearRegression(predict: false, fromNow: 0.0)",
							Start: ast.Position{
								Column: 5,
								Line:   63,
							},
						},
					},
					Call: &ast.CallExpression{
						Arguments: []ast.Expression{&ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 64,
										Line:   65,
									},
									File:   "linearRegression_nopredict_test.flux",
									Source: "predict: false, fromNow: 0.0",
									Start: ast.Position{
										Column: 36,
										Line:   65,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 50,
											Line:   65,
										},
										File:   "linearRegression_nopredict_test.flux",
										Source: "predict: false",
										Start: ast.Position{
											Column: 36,
											Line:   65,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 43,
												Line:   65,
											},
											File:   "linearRegression_nopredict_test.flux",
											Source: "predict",
											Start: ast.Position{
												Column: 36,
												Line:   65,
											},
										},
									},
									Name: "predict",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 50,
												Line:   65,
											},
											File:   "linearRegression_nopredict_test.flux",
											Source: "false",
											Start: ast.Position{
												Column: 45,
												Line:   65,
											},
										},
									},
									Name: "false",
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 64,
											Line:   65,
										},
										File:   "linearRegression_nopredict_test.flux",
										Source: "fromNow: 0.0",
										Start: ast.Position{
											Column: 52,
											Line:   65,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 59,
												Line:   65,
											},
											File:   "linearRegression_nopredict_test.flux",
											Source: "fromNow",
											Start: ast.Position{
												Column: 52,
												Line:   65,
											},
										},
									},
									Name: "fromNow",
								},
								Separator: nil,
								Value: &ast.FloatLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 64,
												Line:   65,
											},
											File:   "linearRegression_nopredict_test.flux",
											Source: "0.0",
											Start: ast.Position{
												Column: 61,
												Line:   65,
											},
										},
									},
									Value: 0.0,
								},
							}},
							Rbrace: nil,
							With:   nil,
						}},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 65,
									Line:   65,
								},
								File:   "linearRegression_nopredict_test.flux",
								Source: "promql.linearRegression(predict: false, fromNow: 0.0)",
								Start: ast.Position{
									Column: 12,
									Line:   65,
								},
							},
						},
						Callee: &ast.MemberExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 35,
										Line:   65,
									},
									File:   "linearRegression_nopredict_test.flux",
									Source: "promql.linearRegression",
									Start: ast.Position{
										Column: 12,
										Line:   65,
									},
								},
							},
							Lbrack: nil,
							Object: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 18,
											Line:   65,
										},
										File:   "linearRegression_nopredict_test.flux",
										Source: "promql",
										Start: ast.Position{
											Column: 12,
											Line:   65,
										},
									},
								},
								Name: "promql",
							},
							Property: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 35,
											Line:   65,
										},
										File:   "linearRegression_nopredict_test.flux",
										Source: "linearRegression",
										Start: ast.Position{
											Column: 19,
											Line:   65,
										},
									},
								},
								Name: "linearRegression",
							},
							Rbrack: nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
				},
				Lparen: nil,
				Params: []*ast.Property{&ast.Property{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 31,
								Line:   62,
							},
							File:   "linearRegression_nopredict_test.flux",
							Source: "table=<-",
							Start: ast.Position{
								Column: 23,
								Line:   62,
							},
						},
					},
					Comma: nil,
					Key: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 28,
									Line:   62,
								},
								File:   "linearRegression_nopredict_test.flux",
								Source: "table",
								Start: ast.Position{
									Column: 23,
									Line:   62,
								},
							},
						},
						Name: "table",
					},
					Separator: nil,
					Value: &ast.PipeLiteral{BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 31,
								Line:   62,
							},
							File:   "linearRegression_nopredict_test.flux",
							Source: "<-",
							Start: ast.Position{
								Column: 29,
								Line:   62,
							},
						},
					}},
				}},
				Rparan: nil,
			},
		}, &ast.TestStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 109,
							Line:   68,
						},
						File:   "linearRegression_nopredict_test.flux",
						Source: "_linearRegression = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_linearRegression})",
						Start: ast.Position{
							Column: 6,
							Line:   67,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 23,
								Line:   67,
							},
							File:   "linearRegression_nopredict_test.flux",
							Source: "_linearRegression",
							Start: ast.Position{
								Column: 6,
								Line:   67,
							},
						},
					},
					Name: "_linearRegression",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 109,
								Line:   68,
							},
							File:   "linearRegression_nopredict_test.flux",
							Source: "() =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_linearRegression})",
							Start: ast.Position{
								Column: 26,
								Line:   67,
							},
						},
					},
					Body: &ast.ParenExpression{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 109,
									Line:   68,
								},
								File:   "linearRegression_nopredict_test.flux",
								Source: "({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_linearRegression})",
								Start: ast.Position{
									Column: 5,
									Line:   68,
								},
							},
						},
						Expression: &ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 108,
										Line:   68,
									},
									File:   "linearRegression_nopredict_test.flux",
									Source: "{input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_linearRegression}",
									Start: ast.Position{
										Column: 6,
										Line:   68,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   68,
										},
										File:   "linearRegression_nopredict_test.flux",
										Source: "input: testing.loadStorage(csv: inData)",
										Start: ast.Position{
											Column: 7,
											Line:   68,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 12,
												Line:   68,
											},
											File:   "linearRegression_nopredict_test.flux",
											Source: "input",
											Start: ast.Position{
												Column: 7,
												Line:   68,
											},
										},
									},
									Name: "input",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   68,
												},
												File:   "linearRegression_nopredict_test.flux",
												Source: "csv: inData",
												Start: ast.Position{
													Column: 34,
													Line:   68,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   68,
													},
													File:   "linearRegression_nopredict_test.flux",
													Source: "csv: inData",
													Start: ast.Position{
														Column: 34,
														Line:   68,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 37,
															Line:   68,
														},
														File:   "linearRegression_nopredict_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 34,
															Line:   68,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 45,
															Line:   68,
														},
														File:   "linearRegression_nopredict_test.flux",
														Source: "inData",
														Start: ast.Position{
															Column: 39,
															Line:   68,
														},
													},
												},
												Name: "inData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 46,
												Line:   68,
											},
											File:   "linearRegression_nopredict_test.flux",
											Source: "testing.loadStorage(csv: inData)",
											Start: ast.Position{
												Column: 14,
												Line:   68,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 33,
													Line:   68,
												},
												File:   "linearRegression_nopredict_test.flux",
												Source: "testing.loadStorage",
												Start: ast.Position{
													Column: 14,
													Line:   68,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 21,
														Line:   68,
													},
													File:   "linearRegression_nopredict_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 14,
														Line:   68,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 33,
														Line:   68,
													},
													File:   "linearRegression_nopredict_test.flux",
													Source: "loadStorage",
													Start: ast.Position{
														Column: 22,
														Line:   68,
													},
												},
											},
											Name: "loadStorage",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 83,
											Line:   68,
										},
										File:   "linearRegression_nopredict_test.flux",
										Source: "want: testing.loadMem(csv: outData)",
										Start: ast.Position{
											Column: 48,
											Line:   68,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 52,
												Line:   68,
											},
											File:   "linearRegression_nopredict_test.flux",
											Source: "want",
											Start: ast.Position{
												Column: 48,
												Line:   68,
											},
										},
									},
									Name: "want",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 82,
													Line:   68,
												},
												File:   "linearRegression_nopredict_test.flux",
												Source: "csv: outData",
												Start: ast.Position{
													Column: 70,
													Line:   68,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 82,
														Line:   68,
													},
													File:   "linearRegression_nopredict_test.flux",
													Source: "csv: outData",
													Start: ast.Position{
														Column: 70,
														Line:   68,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 73,
															Line:   68,
														},
														File:   "linearRegression_nopredict_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 70,
															Line:   68,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 82,
															Line:   68,
														},
														File:   "linearRegression_nopredict_test.flux",
														Source: "outData",
														Start: ast.Position{
															Column: 75,
															Line:   68,
														},
													},
												},
												Name: "outData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 83,
												Line:   68,
											},
											File:   "linearRegression_nopredict_test.flux",
											Source: "testing.loadMem(csv: outData)",
											Start: ast.Position{
												Column: 54,
												Line:   68,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 69,
													Line:   68,
												},
												File:   "linearRegression_nopredict_test.flux",
												Source: "testing.loadMem",
												Start: ast.Position{
													Column: 54,
													Line:   68,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 61,
														Line:   68,
													},
													File:   "linearRegression_nopredict_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 54,
														Line:   68,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 69,
														Line:   68,
													},
													File:   "linearRegression_nopredict_test.flux",
													Source: "loadMem",
													Start: ast.Position{
														Column: 62,
														Line:   68,
													},
												},
											},
											Name: "loadMem",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 107,
											Line:   68,
										},
										File:   "linearRegression_nopredict_test.flux",
										Source: "fn: t_linearRegression",
										Start: ast.Position{
											Column: 85,
											Line:   68,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 87,
												Line:   68,
											},
											File:   "linearRegression_nopredict_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 85,
												Line:   68,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 107,
												Line:   68,
											},
											File:   "linearRegression_nopredict_test.flux",
											Source: "t_linearRegression",
											Start: ast.Position{
												Column: 89,
												Line:   68,
											},
										},
									},
									Name: "t_linearRegression",
								},
							}},
							Rbrace: nil,
							With:   nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 109,
						Line:   68,
					},
					File:   "linearRegression_nopredict_test.flux",
					Source: "test _linearRegression = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_linearRegression})",
					Start: ast.Position{
						Column: 1,
						Line:   67,
					},
				},
			},
		}},
		Eof: nil,
		Imports: []*ast.ImportDeclaration{&ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 17,
						Line:   4,
					},
					File:   "linearRegression_nopredict_test.flux",
					Source: "import \"testing\"",
					Start: ast.Position{
						Column: 1,
						Line:   4,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 17,
							Line:   4,
						},
						File:   "linearRegression_nopredict_test.flux",
						Source: "\"testing\"",
						Start: ast.Position{
							Column: 8,
							Line:   4,
						},
					},
				},
				Value: "testing",
			},
		}, &ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 25,
						Line:   5,
					},
					File:   "linearRegression_nopredict_test.flux",
					Source: "import \"internal/promql\"",
					Start: ast.Position{
						Column: 1,
						Line:   5,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 25,
							Line:   5,
						},
						File:   "linearRegression_nopredict_test.flux",
						Source: "\"internal/promql\"",
						Start: ast.Position{
							Column: 8,
							Line:   5,
						},
					},
				},
				Value: "internal/promql",
			},
		}, &ast.ImportDeclaration{
			As: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 9,
							Line:   6,
						},
						File:   "linearRegression_nopredict_test.flux",
						Source: "c",
						Start: ast.Position{
							Column: 8,
							Line:   6,
						},
					},
				},
				Name: "c",
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 15,
						Line:   6,
					},
					File:   "linearRegression_nopredict_test.flux",
					Source: "import c \"csv\"",
					Start: ast.Position{
						Column: 1,
						Line:   6,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 15,
							Line:   6,
						},
						File:   "linearRegression_nopredict_test.flux",
						Source: "\"csv\"",
						Start: ast.Position{
							Column: 10,
							Line:   6,
						},
					},
				},
				Value: "csv",
			},
		}},
		Metadata: "parser-type=rust",
		Name:     "linearRegression_nopredict_test.flux",
		Package: &ast.PackageClause{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 20,
						Line:   1,
					},
					File:   "linearRegression_nopredict_test.flux",
					Source: "package promql_test",
					Start: ast.Position{
						Column: 1,
						Line:   1,
					},
				},
			},
			Name: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 20,
							Line:   1,
						},
						File:   "linearRegression_nopredict_test.flux",
						Source: "promql_test",
						Start: ast.Position{
							Column: 9,
							Line:   1,
						},
					},
				},
				Name: "promql_test",
			},
		},
	}, &ast.File{
		BaseNode: ast.BaseNode{
			Comments: nil,
			Errors:   nil,
			Loc: &ast.SourceLocation{
				End: ast.Position{
					Column: 109,
					Line:   68,
				},
				File:   "linearRegression_predict_test.flux",
				Source: "package promql_test\n\n\nimport \"testing\"\nimport \"internal/promql\"\nimport c \"csv\"\n\noption now = () => 2030-01-01T00:00:00Z\n\n// todo(faith): remove overload https://github.com/influxdata/flux/issues/3155\noption testing.loadStorage = (csv) =>\n    c.from(csv: csv)\n        |> map(\n            fn: (r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                }),\n        )\n\ninData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,100,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,100,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,400,prometheus\n,,3,2018-12-18T20:52:33Z,metric_name4,100,prometheus\n\"\noutData =\n    \"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name2,1888.5057142857145,prometheus\n,,2,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name3,3756.8571428571427,prometheus\n\"\nt_linearRegression = (table=<-) =>\n    table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)\n        |> promql.linearRegression(predict: true, fromNow: 600.0)\n\ntest _linearRegression = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_linearRegression})",
				Start: ast.Position{
					Column: 1,
					Line:   1,
				},
			},
		},
		Body: []ast.Statement{&ast.OptionStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 40,
							Line:   8,
						},
						File:   "linearRegression_predict_test.flux",
						Source: "now = () => 2030-01-01T00:00:00Z",
						Start: ast.Position{
							Column: 8,
							Line:   8,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 11,
								Line:   8,
							},
							File:   "linearRegression_predict_test.flux",
							Source: "now",
							Start: ast.Position{
								Column: 8,
								Line:   8,
							},
						},
					},
					Name: "now",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 40,
								Line:   8,
							},
							File:   "linearRegression_predict_test.flux",
							Source: "() => 2030-01-01T00:00:00Z",
							Start: ast.Position{
								Column: 14,
								Line:   8,
							},
						},
					},
					Body: &ast.DateTimeLiteral{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 40,
									Line:   8,
								},
								File:   "linearRegression_predict_test.flux",
								Source: "2030-01-01T00:00:00Z",
								Start: ast.Position{
									Column: 20,
									Line:   8,
								},
							},
						},
						Value: parser.MustParseTime("2030-01-01T00:00:00Z"),
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 40,
						Line:   8,
					},
					File:   "linearRegression_predict_test.flux",
					Source: "option now = () => 2030-01-01T00:00:00Z",
					Start: ast.Position{
						Column: 1,
						Line:   8,
					},
				},
			},
		}, &ast.OptionStatement{
			Assignment: &ast.MemberAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 10,
							Line:   24,
						},
						File:   "linearRegression_predict_test.flux",
						Source: "testing.loadStorage = (csv) =>\n    c.from(csv: csv)\n        |> map(\n            fn: (r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                }),\n        )",
						Start: ast.Position{
							Column: 8,
							Line:   11,
						},
					},
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 10,
								Line:   24,
							},
							File:   "linearRegression_predict_test.flux",
							Source: "(csv) =>\n    c.from(csv: csv)\n        |> map(\n            fn: (r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                }),\n        )",
							Start: ast.Position{
								Column: 30,
								Line:   11,
							},
						},
					},
					Body: &ast.PipeExpression{
						Argument: &ast.CallExpression{
							Arguments: []ast.Expression{&ast.ObjectExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 20,
											Line:   12,
										},
										File:   "linearRegression_predict_test.flux",
										Source: "csv: csv",
										Start: ast.Position{
											Column: 12,
											Line:   12,
										},
									},
								},
								Lbrace: nil,
								Properties: []*ast.Property{&ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 20,
												Line:   12,
											},
											File:   "linearRegression_predict_test.flux",
											Source: "csv: csv",
											Start: ast.Position{
												Column: 12,
												Line:   12,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 15,
													Line:   12,
												},
												File:   "linearRegression_predict_test.flux",
												Source: "csv",
												Start: ast.Position{
													Column: 12,
													Line:   12,
												},
											},
										},
										Name: "csv",
									},
									Separator: nil,
									Value: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 20,
													Line:   12,
												},
												File:   "linearRegression_predict_test.flux",
												Source: "csv",
												Start: ast.Position{
													Column: 17,
													Line:   12,
												},
											},
										},
										Name: "csv",
									},
								}},
								Rbrace: nil,
								With:   nil,
							}},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 21,
										Line:   12,
									},
									File:   "linearRegression_predict_test.flux",
									Source: "c.from(csv: csv)",
									Start: ast.Position{
										Column: 5,
										Line:   12,
									},
								},
							},
							Callee: &ast.MemberExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 11,
											Line:   12,
										},
										File:   "linearRegression_predict_test.flux",
										Source: "c.from",
										Start: ast.Position{
											Column: 5,
											Line:   12,
										},
									},
								},
								Lbrack: nil,
								Object: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 6,
												Line:   12,
											},
											File:   "linearRegression_predict_test.flux",
											Source: "c",
											Start: ast.Position{
												Column: 5,
												Line:   12,
											},
										},
									},
									Name: "c",
								},
								Property: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 11,
												Line:   12,
											},
											File:   "linearRegression_predict_test.flux",
											Source: "from",
											Start: ast.Position{
												Column: 7,
												Line:   12,
											},
										},
									},
									Name: "from",
								},
								Rbrack: nil,
							},
							Lparen: nil,
							Rparen: nil,
						},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 10,
									Line:   24,
								},
								File:   "linearRegression_predict_test.flux",
								Source: "c.from(csv: csv)\n        |> map(\n            fn: (r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                }),\n        )",
								Start: ast.Position{
									Column: 5,
									Line:   12,
								},
							},
						},
						Call: &ast.CallExpression{
							Arguments: []ast.Expression{&ast.ObjectExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 19,
											Line:   23,
										},
										File:   "linearRegression_predict_test.flux",
										Source: "fn: (r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                })",
										Start: ast.Position{
											Column: 13,
											Line:   14,
										},
									},
								},
								Lbrace: nil,
								Properties: []*ast.Property{&ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 19,
												Line:   23,
											},
											File:   "linearRegression_predict_test.flux",
											Source: "fn: (r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                })",
											Start: ast.Position{
												Column: 13,
												Line:   14,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 15,
													Line:   14,
												},
												File:   "linearRegression_predict_test.flux",
												Source: "fn",
												Start: ast.Position{
													Column: 13,
													Line:   14,
												},
											},
										},
										Name: "fn",
									},
									Separator: nil,
									Value: &ast.FunctionExpression{
										Arrow: nil,
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 19,
													Line:   23,
												},
												File:   "linearRegression_predict_test.flux",
												Source: "(r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                })",
												Start: ast.Position{
													Column: 17,
													Line:   14,
												},
											},
										},
										Body: &ast.ParenExpression{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 19,
														Line:   23,
													},
													File:   "linearRegression_predict_test.flux",
													Source: "({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                })",
													Start: ast.Position{
														Column: 17,
														Line:   15,
													},
												},
											},
											Expression: &ast.ObjectExpression{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 18,
															Line:   23,
														},
														File:   "linearRegression_predict_test.flux",
														Source: "{r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                }",
														Start: ast.Position{
															Column: 18,
															Line:   15,
														},
													},
												},
												Lbrace: nil,
												Properties: []*ast.Property{&ast.Property{
													BaseNode: ast.BaseNode{
														Comments: nil,
														Errors:   nil,
														Loc: &ast.SourceLocation{
															End: ast.Position{
																Column: 119,
																Line:   16,
															},
															File:   "linearRegression_predict_test.flux",
															Source: "_field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\")",
															Start: ast.Position{
																Column: 26,
																Line:   15,
															},
														},
													},
													Comma: nil,
													Key: &ast.Identifier{
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 32,
																	Line:   15,
																},
																File:   "linearRegression_predict_test.flux",
																Source: "_field",
																Start: ast.Position{
																	Column: 26,
																	Line:   15,
																},
															},
														},
														Name: "_field",
													},
													Separator: nil,
													Value: &ast.ConditionalExpression{
														Alternate: &ast.CallExpression{
															Arguments: []ast.Expression{&ast.ObjectExpression{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 118,
																			Line:   16,
																		},
																		File:   "linearRegression_predict_test.flux",
																		Source: "msg: \"test input table does not have _field column\"",
																		Start: ast.Position{
																			Column: 67,
																			Line:   16,
																		},
																	},
																},
																Lbrace: nil,
																Properties: []*ast.Property{&ast.Property{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 118,
																				Line:   16,
																			},
																			File:   "linearRegression_predict_test.flux",
																			Source: "msg: \"test input table does not have _field column\"",
																			Start: ast.Position{
																				Column: 67,
																				Line:   16,
																			},
																		},
																	},
																	Comma: nil,
																	Key: &ast.Identifier{
																		BaseNode: ast.BaseNode{
																			Comments: nil,
																			Errors:   nil,
																			Loc: &ast.SourceLocation{
																				End: ast.Position{
																					Column: 70,
																					Line:   16,
																				},
																				File:   "linearRegression_predict_test.flux",
																				Source: "msg",
																				Start: ast.Position{
																					Column: 67,
																					Line:   16,
																				},
																			},
																		},
																		Name: "msg",
																	},
																	Separator: nil,
																	Value: &ast.StringLiteral{
																		BaseNode: ast.BaseNode{
																			Comments: nil,
																			Errors:   nil,
																			Loc: &ast.SourceLocation{
																				End: ast.Position{
																					Column: 118,
																					Line:   16,
																				},
																				File:   "linearRegression_predict_test.flux",
																				Source: "\"test input table does not have _field column\"",
																				Start: ast.Position{
																					Column: 72,
																					Line:   16,
																				},
																			},
																		},
																		Value: "test input table does not have _field column",
																	},
																}},
																Rbrace: nil,
																With:   nil,
															}},
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 119,
																		Line:   16,
																	},
																	File:   "linearRegression_predict_test.flux",
																	Source: "die(msg: \"test input table does not have _field column\")",
																	Start: ast.Position{
																		Column: 63,
																		Line:   16,
																	},
																},
															},
															Callee: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 66,
																			Line:   16,
																		},
																		File:   "linearRegression_predict_test.flux",
																		Source: "die",
																		Start: ast.Position{
																			Column: 63,
																			Line:   16,
																		},
																	},
																},
																Name: "die",
															},
															Lparen: nil,
															Rparen: nil,
														},
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 119,
																	Line:   16,
																},
																File:   "linearRegression_predict_test.flux",
																Source: "if exists r._field then r._field else die(msg: \"test input table does not have _field column\")",
																Start: ast.Position{
																	Column: 25,
																	Line:   16,
																},
															},
														},
														Consequent: &ast.MemberExpression{
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 57,
																		Line:   16,
																	},
																	File:   "linearRegression_predict_test.flux",
																	Source: "r._field",
																	Start: ast.Position{
																		Column: 49,
																		Line:   16,
																	},
																},
															},
															Lbrack: nil,
															Object: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 50,
																			Line:   16,
																		},
																		File:   "linearRegression_predict_test.flux",
																		Source: "r",
																		Start: ast.Position{
																			Column: 49,
																			Line:   16,
																		},
																	},
																},
																Name: "r",
															},
															Property: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 57,
																			Line:   16,
																		},
																		File:   "linearRegression_predict_test.flux",
																		Source: "_field",
																		Start: ast.Position{
																			Column: 51,
																			Line:   16,
																		},
																	},
																},
																Name: "_field",
															},
															Rbrack: nil,
														},
														Test: &ast.UnaryExpression{
															Argument: &ast.MemberExpression{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 43,
																			Line:   16,
																		},
																		File:   "linearRegression_predict_test.flux",
																		Source: "r._field",
																		Start: ast.Position{
																			Column: 35,
																			Line:   16,
																		},
																	},
																},
																Lbrack: nil,
																Object: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 36,
																				Line:   16,
																			},
																			File:   "linearRegression_predict_test.flux",
																			Source: "r",
																			Start: ast.Position{
																				Column: 35,
																				Line:   16,
																			},
																		},
																	},
																	Name: "r",
																},
																Property: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 43,
																				Line:   16,
																			},
																			File:   "linearRegression_predict_test.flux",
																			Source: "_field",
																			Start: ast.Position{
																				Column: 37,
																				Line:   16,
																			},
																		},
																	},
																	Name: "_field",
																},
																Rbrack: nil,
															},
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 43,
																		Line:   16,
																	},
																	File:   "linearRegression_predict_test.flux",
																	Source: "exists r._field",
																	Start: ast.Position{
																		Column: 28,
																		Line:   16,
																	},
																},
															},
															Operator: 14,
														},
														Tk_else: nil,
														Tk_if:   nil,
														Tk_then: nil,
													},
												}, &ast.Property{
													BaseNode: ast.BaseNode{
														Comments: nil,
														Errors:   nil,
														Loc: &ast.SourceLocation{
															End: ast.Position{
																Column: 91,
																Line:   21,
															},
															File:   "linearRegression_predict_test.flux",
															Source: "_measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\")",
															Start: ast.Position{
																Column: 21,
																Line:   17,
															},
														},
													},
													Comma: nil,
													Key: &ast.Identifier{
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 33,
																	Line:   17,
																},
																File:   "linearRegression_predict_test.flux",
																Source: "_measurement",
																Start: ast.Position{
																	Column: 21,
																	Line:   17,
																},
															},
														},
														Name: "_measurement",
													},
													Separator: nil,
													Value: &ast.ConditionalExpression{
														Alternate: &ast.CallExpression{
															Arguments: []ast.Expression{&ast.ObjectExpression{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 90,
																			Line:   21,
																		},
																		File:   "linearRegression_predict_test.flux",
																		Source: "msg: \"test input table does not have _measurement column\"",
																		Start: ast.Position{
																			Column: 33,
																			Line:   21,
																		},
																	},
																},
																Lbrace: nil,
																Properties: []*ast.Property{&ast.Property{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 90,
																				Line:   21,
																			},
																			File:   "linearRegression_predict_test.flux",
																			Source: "msg: \"test input table does not have _measurement column\"",
																			Start: ast.Position{
																				Column: 33,
																				Line:   21,
																			},
																		},
																	},
																	Comma: nil,
																	Key: &ast.Identifier{
																		BaseNode: ast.BaseNode{
																			Comments: nil,
																			Errors:   nil,
																			Loc: &ast.SourceLocation{
																				End: ast.Position{
																					Column: 36,
																					Line:   21,
																				},
																				File:   "linearRegression_predict_test.flux",
																				Source: "msg",
																				Start: ast.Position{
																					Column: 33,
																					Line:   21,
																				},
																			},
																		},
																		Name: "msg",
																	},
																	Separator: nil,
																	Value: &ast.StringLiteral{
																		BaseNode: ast.BaseNode{
																			Comments: nil,
																			Errors:   nil,
																			Loc: &ast.SourceLocation{
																				End: ast.Position{
																					Column: 90,
																					Line:   21,
																				},
																				File:   "linearRegression_predict_test.flux",
																				Source: "\"test input table does not have _measurement column\"",
																				Start: ast.Position{
																					Column: 38,
																					Line:   21,
																				},
																			},
																		},
																		Value: "test input table does not have _measurement column",
																	},
																}},
																Rbrace: nil,
																With:   nil,
															}},
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 91,
																		Line:   21,
																	},
																	File:   "linearRegression_predict_test.flux",
																	Source: "die(msg: \"test input table does not have _measurement column\")",
																	Start: ast.Position{
																		Column: 29,
																		Line:   21,
																	},
																},
															},
															Callee: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 32,
																			Line:   21,
																		},
																		File:   "linearRegression_predict_test.flux",
																		Source: "die",
																		Start: ast.Position{
																			Column: 29,
																			Line:   21,
																		},
																	},
																},
																Name: "die",
															},
															Lparen: nil,
															Rparen: nil,
														},
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 91,
																	Line:   21,
																},
																File:   "linearRegression_predict_test.flux",
																Source: "if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\")",
																Start: ast.Position{
																	Column: 25,
																	Line:   18,
																},
															},
														},
														Consequent: &ast.MemberExpression{
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 43,
																		Line:   19,
																	},
																	File:   "linearRegression_predict_test.flux",
																	Source: "r._measurement",
																	Start: ast.Position{
																		Column: 29,
																		Line:   19,
																	},
																},
															},
															Lbrack: nil,
															Object: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 30,
																			Line:   19,
																		},
																		File:   "linearRegression_predict_test.flux",
																		Source: "r",
																		Start: ast.Position{
																			Column: 29,
																			Line:   19,
																		},
																	},
																},
																Name: "r",
															},
															Property: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 43,
																			Line:   19,
																		},
																		File:   "linearRegression_predict_test.flux",
																		Source: "_measurement",
																		Start: ast.Position{
																			Column: 31,
																			Line:   19,
																		},
																	},
																},
																Name: "_measurement",
															},
															Rbrack: nil,
														},
														Test: &ast.UnaryExpression{
															Argument: &ast.MemberExpression{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 49,
																			Line:   18,
																		},
																		File:   "linearRegression_predict_test.flux",
																		Source: "r._measurement",
																		Start: ast.Position{
																			Column: 35,
																			Line:   18,
																		},
																	},
																},
																Lbrack: nil,
																Object: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 36,
																				Line:   18,
																			},
																			File:   "linearRegression_predict_test.flux",
																			Source: "r",
																			Start: ast.Position{
																				Column: 35,
																				Line:   18,
																			},
																		},
																	},
																	Name: "r",
																},
																Property: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 49,
																				Line:   18,
																			},
																			File:   "linearRegression_predict_test.flux",
																			Source: "_measurement",
																			Start: ast.Position{
																				Column: 37,
																				Line:   18,
																			},
																		},
																	},
																	Name: "_measurement",
																},
																Rbrack: nil,
															},
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 49,
																		Line:   18,
																	},
																	File:   "linearRegression_predict_test.flux",
																	Source: "exists r._measurement",
																	Start: ast.Position{
																		Column: 28,
																		Line:   18,
																	},
																},
															},
															Operator: 14,
														},
														Tk_else: nil,
														Tk_if:   nil,
														Tk_then: nil,
													},
												}, &ast.Property{
													BaseNode: ast.BaseNode{
														Comments: nil,
														Errors:   nil,
														Loc: &ast.SourceLocation{
															End: ast.Position{
																Column: 119,
																Line:   22,
															},
															File:   "linearRegression_predict_test.flux",
															Source: "_time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\")",
															Start: ast.Position{
																Column: 21,
																Line:   22,
															},
														},
													},
													Comma: nil,
													Key: &ast.Identifier{
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 26,
																	Line:   22,
																},
																File:   "linearRegression_predict_test.flux",
																Source: "_time",
																Start: ast.Position{
																	Column: 21,
																	Line:   22,
																},
															},
														},
														Name: "_time",
													},
													Separator: nil,
													Value: &ast.ConditionalExpression{
														Alternate: &ast.CallExpression{
															Arguments: []ast.Expression{&ast.ObjectExpression{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 118,
																			Line:   22,
																		},
																		File:   "linearRegression_predict_test.flux",
																		Source: "msg: \"test input table does not have _time column\"",
																		Start: ast.Position{
																			Column: 68,
																			Line:   22,
																		},
																	},
																},
																Lbrace: nil,
																Properties: []*ast.Property{&ast.Property{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 118,
																				Line:   22,
																			},
																			File:   "linearRegression_predict_test.flux",
																			Source: "msg: \"test input table does not have _time column\"",
																			Start: ast.Position{
																				Column: 68,
																				Line:   22,
																			},
																		},
																	},
																	Comma: nil,
																	Key: &ast.Identifier{
																		BaseNode: ast.BaseNode{
																			Comments: nil,
																			Errors:   nil,
																			Loc: &ast.SourceLocation{
																				End: ast.Position{
																					Column: 71,
																					Line:   22,
																				},
																				File:   "linearRegression_predict_test.flux",
																				Source: "msg",
																				Start: ast.Position{
																					Column: 68,
																					Line:   22,
																				},
																			},
																		},
																		Name: "msg",
																	},
																	Separator: nil,
																	Value: &ast.StringLiteral{
																		BaseNode: ast.BaseNode{
																			Comments: nil,
																			Errors:   nil,
																			Loc: &ast.SourceLocation{
																				End: ast.Position{
																					Column: 118,
																					Line:   22,
																				},
																				File:   "linearRegression_predict_test.flux",
																				Source: "\"test input table does not have _time column\"",
																				Start: ast.Position{
																					Column: 73,
																					Line:   22,
																				},
																			},
																		},
																		Value: "test input table does not have _time column",
																	},
																}},
																Rbrace: nil,
																With:   nil,
															}},
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 119,
																		Line:   22,
																	},
																	File:   "linearRegression_predict_test.flux",
																	Source: "die(msg: \"test input table does not have _time column\")",
																	Start: ast.Position{
																		Column: 64,
																		Line:   22,
																	},
																},
															},
															Callee: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 67,
																			Line:   22,
																		},
																		File:   "linearRegression_predict_test.flux",
																		Source: "die",
																		Start: ast.Position{
																			Column: 64,
																			Line:   22,
																		},
																	},
																},
																Name: "die",
															},
															Lparen: nil,
															Rparen: nil,
														},
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 119,
																	Line:   22,
																},
																File:   "linearRegression_predict_test.flux",
																Source: "if exists r._time then r._time else die(msg: \"test input table does not have _time column\")",
																Start: ast.Position{
																	Column: 28,
																	Line:   22,
																},
															},
														},
														Consequent: &ast.MemberExpression{
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 58,
																		Line:   22,
																	},
																	File:   "linearRegression_predict_test.flux",
																	Source: "r._time",
																	Start: ast.Position{
																		Column: 51,
																		Line:   22,
																	},
																},
															},
															Lbrack: nil,
															Object: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 52,
																			Line:   22,
																		},
																		File:   "linearRegression_predict_test.flux",
																		Source: "r",
																		Start: ast.Position{
																			Column: 51,
																			Line:   22,
																		},
																	},
																},
																Name: "r",
															},
															Property: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 58,
																			Line:   22,
																		},
																		File:   "linearRegression_predict_test.flux",
																		Source: "_time",
																		Start: ast.Position{
																			Column: 53,
																			Line:   22,
																		},
																	},
																},
																Name: "_time",
															},
															Rbrack: nil,
														},
														Test: &ast.UnaryExpression{
															Argument: &ast.MemberExpression{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 45,
																			Line:   22,
																		},
																		File:   "linearRegression_predict_test.flux",
																		Source: "r._time",
																		Start: ast.Position{
																			Column: 38,
																			Line:   22,
																		},
																	},
																},
																Lbrack: nil,
																Object: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 39,
																				Line:   22,
																			},
																			File:   "linearRegression_predict_test.flux",
																			Source: "r",
																			Start: ast.Position{
																				Column: 38,
																				Line:   22,
																			},
																		},
																	},
																	Name: "r",
																},
																Property: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 45,
																				Line:   22,
																			},
																			File:   "linearRegression_predict_test.flux",
																			Source: "_time",
																			Start: ast.Position{
																				Column: 40,
																				Line:   22,
																			},
																		},
																	},
																	Name: "_time",
																},
																Rbrack: nil,
															},
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 45,
																		Line:   22,
																	},
																	File:   "linearRegression_predict_test.flux",
																	Source: "exists r._time",
																	Start: ast.Position{
																		Column: 31,
																		Line:   22,
																	},
																},
															},
															Operator: 14,
														},
														Tk_else: nil,
														Tk_if:   nil,
														Tk_then: nil,
													},
												}},
												Rbrace: nil,
												With: &ast.Identifier{
													BaseNode: ast.BaseNode{
														Comments: nil,
														Errors:   nil,
														Loc: &ast.SourceLocation{
															End: ast.Position{
																Column: 20,
																Line:   15,
															},
															File:   "linearRegression_predict_test.flux",
															Source: "r",
															Start: ast.Position{
																Column: 19,
																Line:   15,
															},
														},
													},
													Name: "r",
												},
											},
											Lparen: nil,
											Rparen: nil,
										},
										Lparen: nil,
										Params: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 19,
														Line:   14,
													},
													File:   "linearRegression_predict_test.flux",
													Source: "r",
													Start: ast.Position{
														Column: 18,
														Line:   14,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 19,
															Line:   14,
														},
														File:   "linearRegression_predict_test.flux",
														Source: "r",
														Start: ast.Position{
															Column: 18,
															Line:   14,
														},
													},
												},
												Name: "r",
											},
											Separator: nil,
											Value:     nil,
										}},
										Rparan: nil,
									},
								}},
								Rbrace: nil,
								With:   nil,
							}},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 10,
										Line:   24,
									},
									File:   "linearRegression_predict_test.flux",
									Source: "map(\n            fn: (r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                }),\n        )",
									Start: ast.Position{
										Column: 12,
										Line:   13,
									},
								},
							},
							Callee: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 15,
											Line:   13,
										},
										File:   "linearRegression_predict_test.flux",
										Source: "map",
										Start: ast.Position{
											Column: 12,
											Line:   13,
										},
									},
								},
								Name: "map",
							},
							Lparen: nil,
							Rparen: nil,
						},
					},
					Lparen: nil,
					Params: []*ast.Property{&ast.Property{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 34,
									Line:   11,
								},
								File:   "linearRegression_predict_test.flux",
								Source: "csv",
								Start: ast.Position{
									Column: 31,
									Line:   11,
								},
							},
						},
						Comma: nil,
						Key: &ast.Identifier{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 34,
										Line:   11,
									},
									File:   "linearRegression_predict_test.flux",
									Source: "csv",
									Start: ast.Position{
										Column: 31,
										Line:   11,
									},
								},
							},
							Name: "csv",
						},
						Separator: nil,
						Value:     nil,
					}},
					Rparan: nil,
				},
				Member: &ast.MemberExpression{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 27,
								Line:   11,
							},
							File:   "linearRegression_predict_test.flux",
							Source: "testing.loadStorage",
							Start: ast.Position{
								Column: 8,
								Line:   11,
							},
						},
					},
					Lbrack: nil,
					Object: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 15,
									Line:   11,
								},
								File:   "linearRegression_predict_test.flux",
								Source: "testing",
								Start: ast.Position{
									Column: 8,
									Line:   11,
								},
							},
						},
						Name: "testing",
					},
					Property: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 27,
									Line:   11,
								},
								File:   "linearRegression_predict_test.flux",
								Source: "loadStorage",
								Start: ast.Position{
									Column: 16,
									Line:   11,
								},
							},
						},
						Name: "loadStorage",
					},
					Rbrack: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: []ast.Comment{ast.Comment{Text: "// todo(faith): remove overload https://github.com/influxdata/flux/issues/3155\n"}},
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 10,
						Line:   24,
					},
					File:   "linearRegression_predict_test.flux",
					Source: "option testing.loadStorage = (csv) =>\n    c.from(csv: csv)\n        |> map(\n            fn: (r) =>\n                ({r with _field:\n                        if exists r._field then r._field else die(msg: \"test input table does not have _field column\"),\n                    _measurement:\n                        if exists r._measurement then\n                            r._measurement\n                        else\n                            die(msg: \"test input table does not have _measurement column\"),\n                    _time: if exists r._time then r._time else die(msg: \"test input table does not have _time column\"),\n                }),\n        )",
					Start: ast.Position{
						Column: 1,
						Line:   11,
					},
				},
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   51,
					},
					File:   "linearRegression_predict_test.flux",
					Source: "inData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,100,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,100,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,400,prometheus\n,,3,2018-12-18T20:52:33Z,metric_name4,100,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   26,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 7,
							Line:   26,
						},
						File:   "linearRegression_predict_test.flux",
						Source: "inData",
						Start: ast.Position{
							Column: 1,
							Line:   26,
						},
					},
				},
				Name: "inData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   51,
						},
						File:   "linearRegression_predict_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,100,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,100,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,400,prometheus\n,,3,2018-12-18T20:52:33Z,metric_name4,100,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   27,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,100,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,100,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,100,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,200,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,300,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,400,prometheus\n,,3,2018-12-18T20:52:33Z,metric_name4,100,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   61,
					},
					File:   "linearRegression_predict_test.flux",
					Source: "outData =\n    \"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name2,1888.5057142857145,prometheus\n,,2,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name3,3756.8571428571427,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   52,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 8,
							Line:   52,
						},
						File:   "linearRegression_predict_test.flux",
						Source: "outData",
						Start: ast.Position{
							Column: 1,
							Line:   52,
						},
					},
				},
				Name: "outData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   61,
						},
						File:   "linearRegression_predict_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name2,1888.5057142857145,prometheus\n,,2,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name3,3756.8571428571427,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   53,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name2,1888.5057142857145,prometheus\n,,2,2018-12-18T20:50:00Z,2018-12-18T20:55:00Z,metric_name3,3756.8571428571427,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 66,
						Line:   65,
					},
					File:   "linearRegression_predict_test.flux",
					Source: "t_linearRegression = (table=<-) =>\n    table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)\n        |> promql.linearRegression(predict: true, fromNow: 600.0)",
					Start: ast.Position{
						Column: 1,
						Line:   62,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 19,
							Line:   62,
						},
						File:   "linearRegression_predict_test.flux",
						Source: "t_linearRegression",
						Start: ast.Position{
							Column: 1,
							Line:   62,
						},
					},
				},
				Name: "t_linearRegression",
			},
			Init: &ast.FunctionExpression{
				Arrow: nil,
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 66,
							Line:   65,
						},
						File:   "linearRegression_predict_test.flux",
						Source: "(table=<-) =>\n    table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)\n        |> promql.linearRegression(predict: true, fromNow: 600.0)",
						Start: ast.Position{
							Column: 22,
							Line:   62,
						},
					},
				},
				Body: &ast.PipeExpression{
					Argument: &ast.PipeExpression{
						Argument: &ast.Identifier{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 10,
										Line:   63,
									},
									File:   "linearRegression_predict_test.flux",
									Source: "table",
									Start: ast.Position{
										Column: 5,
										Line:   63,
									},
								},
							},
							Name: "table",
						},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 74,
									Line:   64,
								},
								File:   "linearRegression_predict_test.flux",
								Source: "table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)",
								Start: ast.Position{
									Column: 5,
									Line:   63,
								},
							},
						},
						Call: &ast.CallExpression{
							Arguments: []ast.Expression{&ast.ObjectExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 73,
											Line:   64,
										},
										File:   "linearRegression_predict_test.flux",
										Source: "start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z",
										Start: ast.Position{
											Column: 18,
											Line:   64,
										},
									},
								},
								Lbrace: nil,
								Properties: []*ast.Property{&ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   64,
											},
											File:   "linearRegression_predict_test.flux",
											Source: "start: 2018-12-18T20:50:00Z",
											Start: ast.Position{
												Column: 18,
												Line:   64,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 23,
													Line:   64,
												},
												File:   "linearRegression_predict_test.flux",
												Source: "start",
												Start: ast.Position{
													Column: 18,
													Line:   64,
												},
											},
										},
										Name: "start",
									},
									Separator: nil,
									Value: &ast.DateTimeLiteral{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   64,
												},
												File:   "linearRegression_predict_test.flux",
												Source: "2018-12-18T20:50:00Z",
												Start: ast.Position{
													Column: 25,
													Line:   64,
												},
											},
										},
										Value: parser.MustParseTime("2018-12-18T20:50:00Z"),
									},
								}, &ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 73,
												Line:   64,
											},
											File:   "linearRegression_predict_test.flux",
											Source: "stop: 2018-12-18T20:55:00Z",
											Start: ast.Position{
												Column: 47,
												Line:   64,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 51,
													Line:   64,
												},
												File:   "linearRegression_predict_test.flux",
												Source: "stop",
												Start: ast.Position{
													Column: 47,
													Line:   64,
												},
											},
										},
										Name: "stop",
									},
									Separator: nil,
									Value: &ast.DateTimeLiteral{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 73,
													Line:   64,
												},
												File:   "linearRegression_predict_test.flux",
												Source: "2018-12-18T20:55:00Z",
												Start: ast.Position{
													Column: 53,
													Line:   64,
												},
											},
										},
										Value: parser.MustParseTime("2018-12-18T20:55:00Z"),
									},
								}},
								Rbrace: nil,
								With:   nil,
							}},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 74,
										Line:   64,
									},
									File:   "linearRegression_predict_test.flux",
									Source: "range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)",
									Start: ast.Position{
										Column: 12,
										Line:   64,
									},
								},
							},
							Callee: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 17,
											Line:   64,
										},
										File:   "linearRegression_predict_test.flux",
										Source: "range",
										Start: ast.Position{
											Column: 12,
											Line:   64,
										},
									},
								},
								Name: "range",
							},
							Lparen: nil,
							Rparen: nil,
						},
					},
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 66,
								Line:   65,
							},
							File:   "linearRegression_predict_test.flux",
							Source: "table\n        |> range(start: 2018-12-18T20:50:00Z, stop: 2018-12-18T20:55:00Z)\n        |> promql.linearRegression(predict: true, fromNow: 600.0)",
							Start: ast.Position{
								Column: 5,
								Line:   63,
							},
						},
					},
					Call: &ast.CallExpression{
						Arguments: []ast.Expression{&ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 65,
										Line:   65,
									},
									File:   "linearRegression_predict_test.flux",
									Source: "predict: true, fromNow: 600.0",
									Start: ast.Position{
										Column: 36,
										Line:   65,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 49,
											Line:   65,
										},
										File:   "linearRegression_predict_test.flux",
										Source: "predict: true",
										Start: ast.Position{
											Column: 36,
											Line:   65,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 43,
												Line:   65,
											},
											File:   "linearRegression_predict_test.flux",
											Source: "predict",
											Start: ast.Position{
												Column: 36,
												Line:   65,
											},
										},
									},
									Name: "predict",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 49,
												Line:   65,
											},
											File:   "linearRegression_predict_test.flux",
											Source: "true",
											Start: ast.Position{
												Column: 45,
												Line:   65,
											},
										},
									},
									Name: "true",
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 65,
											Line:   65,
										},
										File:   "linearRegression_predict_test.flux",
										Source: "fromNow: 600.0",
										Start: ast.Position{
											Column: 51,
											Line:   65,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 58,
												Line:   65,
											},
											File:   "linearRegression_predict_test.flux",
											Source: "fromNow",
											Start: ast.Position{
												Column: 51,
												Line:   65,
											},
										},
									},
									Name: "fromNow",
								},
								Separator: nil,
								Value: &ast.FloatLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 65,
												Line:   65,
											},
											File:   "linearRegression_predict_test.flux",
											Source: "600.0",
											Start: ast.Position{
												Column: 60,
												Line:   65,
											},
										},
									},
									Value: 600.0,
								},
							}},
							Rbrace: nil,
							With:   nil,
						}},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 66,
									Line:   65,
								},
								File:   "linearRegression_predict_test.flux",
								Source: "promql.linearRegression(predict: true, fromNow: 600.0)",
								Start: ast.Position{
									Column: 12,
									Line:   65,
								},
							},
						},
						Callee: &ast.MemberExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 35,
										Line:   65,
									},
									File:   "linearRegression_predict_test.flux",
									Source: "promql.linearRegression",
									Start: ast.Position{
										Column: 12,
										Line:   65,
									},
								},
							},
							Lbrack: nil,
							Object: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 18,
											Line:   65,
										},
										File:   "linearRegression_predict_test.flux",
										Source: "promql",
										Start: ast.Position{
											Column: 12,
											Line:   65,
										},
									},
								},
								Name: "promql",
							},
							Property: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 35,
											Line:   65,
										},
										File:   "linearRegression_predict_test.flux",
										Source: "linearRegression",
										Start: ast.Position{
											Column: 19,
											Line:   65,
										},
									},
								},
								Name: "linearRegression",
							},
							Rbrack: nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
				},
				Lparen: nil,
				Params: []*ast.Property{&ast.Property{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 31,
								Line:   62,
							},
							File:   "linearRegression_predict_test.flux",
							Source: "table=<-",
							Start: ast.Position{
								Column: 23,
								Line:   62,
							},
						},
					},
					Comma: nil,
					Key: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 28,
									Line:   62,
								},
								File:   "linearRegression_predict_test.flux",
								Source: "table",
								Start: ast.Position{
									Column: 23,
									Line:   62,
								},
							},
						},
						Name: "table",
					},
					Separator: nil,
					Value: &ast.PipeLiteral{BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 31,
								Line:   62,
							},
							File:   "linearRegression_predict_test.flux",
							Source: "<-",
							Start: ast.Position{
								Column: 29,
								Line:   62,
							},
						},
					}},
				}},
				Rparan: nil,
			},
		}, &ast.TestStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 109,
							Line:   68,
						},
						File:   "linearRegression_predict_test.flux",
						Source: "_linearRegression = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_linearRegression})",
						Start: ast.Position{
							Column: 6,
							Line:   67,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 23,
								Line:   67,
							},
							File:   "linearRegression_predict_test.flux",
							Source: "_linearRegression",
							Start: ast.Position{
								Column: 6,
								Line:   67,
							},
						},
					},
					Name: "_linearRegression",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 109,
								Line:   68,
							},
							File:   "linearRegression_predict_test.flux",
							Source: "() =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_linearRegression})",
							Start: ast.Position{
								Column: 26,
								Line:   67,
							},
						},
					},
					Body: &ast.ParenExpression{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 109,
									Line:   68,
								},
								File:   "linearRegression_predict_test.flux",
								Source: "({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_linearRegression})",
								Start: ast.Position{
									Column: 5,
									Line:   68,
								},
							},
						},
						Expression: &ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 108,
										Line:   68,
									},
									File:   "linearRegression_predict_test.flux",
									Source: "{input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_linearRegression}",
									Start: ast.Position{
										Column: 6,
										Line:   68,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   68,
										},
										File:   "linearRegression_predict_test.flux",
										Source: "input: testing.loadStorage(csv: inData)",
										Start: ast.Position{
											Column: 7,
											Line:   68,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 12,
												Line:   68,
											},
											File:   "linearRegression_predict_test.flux",
											Source: "input",
											Start: ast.Position{
												Column: 7,
												Line:   68,
											},
										},
									},
									Name: "input",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   68,
												},
												File:   "linearRegression_predict_test.flux",
												Source: "csv: inData",
												Start: ast.Position{
													Column: 34,
													Line:   68,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   68,
													},
													File:   "linearRegression_predict_test.flux",
													Source: "csv: inData",
													Start: ast.Position{
														Column: 34,
														Line:   68,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 37,
															Line:   68,
														},
														File:   "linearRegression_predict_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 34,
															Line:   68,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 45,
															Line:   68,
														},
														File:   "linearRegression_predict_test.flux",
														Source: "inData",
														Start: ast.Position{
															Column: 39,
															Line:   68,
														},
													},
												},
												Name: "inData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 46,
												Line:   68,
											},
											File:   "linearRegression_predict_test.flux",
											Source: "testing.loadStorage(csv: inData)",
											Start: ast.Position{
												Column: 14,
												Line:   68,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 33,
													Line:   68,
												},
												File:   "linearRegression_predict_test.flux",
												Source: "testing.loadStorage",
												Start: ast.Position{
													Column: 14,
													Line:   68,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 21,
														Line:   68,
													},
													File:   "linearRegression_predict_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 14,
														Line:   68,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 33,
														Line:   68,
													},
													File:   "linearRegression_predict_test.flux",
													Source: "loadStorage",
													Start: ast.Position{
														Column: 22,
														Line:   68,
													},
												},
											},
											Name: "loadStorage",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 83,
											Line:   68,
										},
										File:   "linearRegression_predict_test.flux",
										Source: "want: testing.loadMem(csv: outData)",
										Start: ast.Position{
											Column: 48,
											Line:   68,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 52,
												Line:   68,
											},
											File:   "linearRegression_predict_test.flux",
											Source: "want",
											Start: ast.Position{
												Column: 48,
												Line:   68,
											},
										},
									},
									Name: "want",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 82,
													Line:   68,
												},
												File:   "linearRegression_predict_test.flux",
												Source: "csv: outData",
												Start: ast.Position{
													Column: 70,
													Line:   68,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 82,
														Line:   68,
													},
													File:   "linearRegression_predict_test.flux",
													Source: "csv: outData",
													Start: ast.Position{
														Column: 70,
														Line:   68,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 73,
															Line:   68,
														},
														File:   "linearRegression_predict_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 70,
															Line:   68,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 82,
															Line:   68,
														},
														File:   "linearRegression_predict_test.flux",
														Source: "outData",
														Start: ast.Position{
															Column: 75,
															Line:   68,
														},
													},
												},
												Name: "outData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 83,
												Line:   68,
											},
											File:   "linearRegression_predict_test.flux",
											Source: "testing.loadMem(csv: outData)",
											Start: ast.Position{
												Column: 54,
												Line:   68,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 69,
													Line:   68,
												},
												File:   "linearRegression_predict_test.flux",
												Source: "testing.loadMem",
												Start: ast.Position{
													Column: 54,
													Line:   68,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 61,
														Line:   68,
													},
													File:   "linearRegression_predict_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 54,
														Line:   68,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 69,
														Line:   68,
													},
													File:   "linearRegression_predict_test.flux",
													Source: "loadMem",
													Start: ast.Position{
														Column: 62,
														Line:   68,
													},
												},
											},
											Name: "loadMem",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 107,
											Line:   68,
										},
										File:   "linearRegression_predict_test.flux",
										Source: "fn: t_linearRegression",
										Start: ast.Position{
											Column: 85,
											Line:   68,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 87,
												Line:   68,
											},
											File:   "linearRegression_predict_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 85,
												Line:   68,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 107,
												Line:   68,
											},
											File:   "linearRegression_predict_test.flux",
											Source: "t_linearRegression",
											Start: ast.Position{
												Column: 89,
												Line:   68,
											},
										},
									},
									Name: "t_linearRegression",
								},
							}},
							Rbrace: nil,
							With:   nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 109,
						Line:   68,
					},
					File:   "linearRegression_predict_test.flux",
					Source: "test _linearRegression = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_linearRegression})",
					Start: ast.Position{
						Column: 1,
						Line:   67,
					},
				},
			},
		}},
		Eof: nil,
		Imports: []*ast.ImportDeclaration{&ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 17,
						Line:   4,
					},
					File:   "linearRegression_predict_test.flux",
					Source: "import \"testing\"",
					Start: ast.Position{
						Column: 1,
						Line:   4,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 17,
							Line:   4,
						},
						File:   "linearRegression_predict_test.flux",
						Source: "\"testing\"",
						Start: ast.Position{
							Column: 8,
							Line:   4,
						},
					},
				},
				Value: "testing",
			},
		}, &ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 25,
						Line:   5,
					},
					File:   "linearRegression_predict_test.flux",
					Source: "import \"internal/promql\"",
					Start: ast.Position{
						Column: 1,
						Line:   5,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 25,
							Line:   5,
						},
						File:   "linearRegression_predict_test.flux",
						Source: "\"internal/promql\"",
						Start: ast.Position{
							Column: 8,
							Line:   5,
						},
					},
				},
				Value: "internal/promql",
			},
		}, &ast.ImportDeclaration{
			As: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 9,
							Line:   6,
						},
						File:   "linearRegression_predict_test.flux",
						Source: "c",
						Start: ast.Position{
							Column: 8,
							Line:   6,
						},
					},
				},
				Name: "c",
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 15,
						Line:   6,
					},
					File:   "linearRegression_predict_test.flux",
					Source: "import c \"csv\"",
					Start: ast.Position{
						Column: 1,
						Line:   6,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 15,
							Line:   6,
						},
						File:   "linearRegression_predict_test.flux",
						Source: "\"csv\"",
						Start: ast.Position{
							Column: 10,
							Line:   6,
						},
					},
				},
				Value: "csv",
			},
		}},
		Metadata: "parser-type=rust",
		Name:     "linearRegression_predict_test.flux",
		Package: &ast.PackageClause{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 20,
						Line:   1,
					},
					File:   "linearRegression_predict_test.flux",
					Source: "package promql_test",
					Start: ast.Position{
						Column: 1,
						Line:   1,
					},
				},
			},
			Name: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 20,
							Line:   1,
						},
						File:   "linearRegression_predict_test.flux",
						Source: "promql_test",
						Start: ast.Position{
							Column: 9,
							Line:   1,
						},
					},
				},
				Name: "promql_test",
			},
		},
	}, &ast.File{
		BaseNode: ast.BaseNode{
			Comments: nil,
			Errors:   nil,
			Loc: &ast.SourceLocation{
				End: ast.Position{
					Column: 105,
					Line:   43,
				},
				File:   "minute_test.flux",
				Source: "package promql_test\n\n\nimport \"testing\"\nimport \"internal/promql\"\n\noption now = () => 2030-01-01T00:00:00Z\n\ninData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T00:00:00Z,metric_name,0,prometheus\n,,0,2018-02-04T00:01:00Z,metric_name,0,prometheus\n,,0,2018-03-05T00:02:00Z,metric_name,0,prometheus\n,,0,2018-10-06T00:57:00Z,metric_name,0,prometheus\n,,0,2018-11-07T00:58:00Z,metric_name,0,prometheus\n,,0,2018-12-08T00:59:00Z,metric_name,0,prometheus\n\"\noutData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,outData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T00:00:00Z,metric_name,0,prometheus\n,,0,2018-02-04T00:01:00Z,metric_name,1,prometheus\n,,0,2018-03-05T00:02:00Z,metric_name,2,prometheus\n,,0,2018-10-06T00:57:00Z,metric_name,57,prometheus\n,,0,2018-11-07T00:58:00Z,metric_name,58,prometheus\n,,0,2018-12-08T00:59:00Z,metric_name,59,prometheus\n\"\nt_promqlMinute = (table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()\n        |> map(fn: (r) => ({r with _value: promql.promqlMinute(timestamp: r._value)}))\n\ntest _promqlMinute = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlMinute})",
				Start: ast.Position{
					Column: 1,
					Line:   1,
				},
			},
		},
		Body: []ast.Statement{&ast.OptionStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 40,
							Line:   7,
						},
						File:   "minute_test.flux",
						Source: "now = () => 2030-01-01T00:00:00Z",
						Start: ast.Position{
							Column: 8,
							Line:   7,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 11,
								Line:   7,
							},
							File:   "minute_test.flux",
							Source: "now",
							Start: ast.Position{
								Column: 8,
								Line:   7,
							},
						},
					},
					Name: "now",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 40,
								Line:   7,
							},
							File:   "minute_test.flux",
							Source: "() => 2030-01-01T00:00:00Z",
							Start: ast.Position{
								Column: 14,
								Line:   7,
							},
						},
					},
					Body: &ast.DateTimeLiteral{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 40,
									Line:   7,
								},
								File:   "minute_test.flux",
								Source: "2030-01-01T00:00:00Z",
								Start: ast.Position{
									Column: 20,
									Line:   7,
								},
							},
						},
						Value: parser.MustParseTime("2030-01-01T00:00:00Z"),
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 40,
						Line:   7,
					},
					File:   "minute_test.flux",
					Source: "option now = () => 2030-01-01T00:00:00Z",
					Start: ast.Position{
						Column: 1,
						Line:   7,
					},
				},
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   21,
					},
					File:   "minute_test.flux",
					Source: "inData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T00:00:00Z,metric_name,0,prometheus\n,,0,2018-02-04T00:01:00Z,metric_name,0,prometheus\n,,0,2018-03-05T00:02:00Z,metric_name,0,prometheus\n,,0,2018-10-06T00:57:00Z,metric_name,0,prometheus\n,,0,2018-11-07T00:58:00Z,metric_name,0,prometheus\n,,0,2018-12-08T00:59:00Z,metric_name,0,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   9,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 7,
							Line:   9,
						},
						File:   "minute_test.flux",
						Source: "inData",
						Start: ast.Position{
							Column: 1,
							Line:   9,
						},
					},
				},
				Name: "inData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   21,
						},
						File:   "minute_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T00:00:00Z,metric_name,0,prometheus\n,,0,2018-02-04T00:01:00Z,metric_name,0,prometheus\n,,0,2018-03-05T00:02:00Z,metric_name,0,prometheus\n,,0,2018-10-06T00:57:00Z,metric_name,0,prometheus\n,,0,2018-11-07T00:58:00Z,metric_name,0,prometheus\n,,0,2018-12-08T00:59:00Z,metric_name,0,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   10,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T00:00:00Z,metric_name,0,prometheus\n,,0,2018-02-04T00:01:00Z,metric_name,0,prometheus\n,,0,2018-03-05T00:02:00Z,metric_name,0,prometheus\n,,0,2018-10-06T00:57:00Z,metric_name,0,prometheus\n,,0,2018-11-07T00:58:00Z,metric_name,0,prometheus\n,,0,2018-12-08T00:59:00Z,metric_name,0,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   34,
					},
					File:   "minute_test.flux",
					Source: "outData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,outData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T00:00:00Z,metric_name,0,prometheus\n,,0,2018-02-04T00:01:00Z,metric_name,1,prometheus\n,,0,2018-03-05T00:02:00Z,metric_name,2,prometheus\n,,0,2018-10-06T00:57:00Z,metric_name,57,prometheus\n,,0,2018-11-07T00:58:00Z,metric_name,58,prometheus\n,,0,2018-12-08T00:59:00Z,metric_name,59,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   22,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 8,
							Line:   22,
						},
						File:   "minute_test.flux",
						Source: "outData",
						Start: ast.Position{
							Column: 1,
							Line:   22,
						},
					},
				},
				Name: "outData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   34,
						},
						File:   "minute_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,outData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T00:00:00Z,metric_name,0,prometheus\n,,0,2018-02-04T00:01:00Z,metric_name,1,prometheus\n,,0,2018-03-05T00:02:00Z,metric_name,2,prometheus\n,,0,2018-10-06T00:57:00Z,metric_name,57,prometheus\n,,0,2018-11-07T00:58:00Z,metric_name,58,prometheus\n,,0,2018-12-08T00:59:00Z,metric_name,59,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   23,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,outData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T00:00:00Z,metric_name,0,prometheus\n,,0,2018-02-04T00:01:00Z,metric_name,1,prometheus\n,,0,2018-03-05T00:02:00Z,metric_name,2,prometheus\n,,0,2018-10-06T00:57:00Z,metric_name,57,prometheus\n,,0,2018-11-07T00:58:00Z,metric_name,58,prometheus\n,,0,2018-12-08T00:59:00Z,metric_name,59,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 87,
						Line:   40,
					},
					File:   "minute_test.flux",
					Source: "t_promqlMinute = (table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()\n        |> map(fn: (r) => ({r with _value: promql.promqlMinute(timestamp: r._value)}))",
					Start: ast.Position{
						Column: 1,
						Line:   35,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 15,
							Line:   35,
						},
						File:   "minute_test.flux",
						Source: "t_promqlMinute",
						Start: ast.Position{
							Column: 1,
							Line:   35,
						},
					},
				},
				Name: "t_promqlMinute",
			},
			Init: &ast.FunctionExpression{
				Arrow: nil,
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 87,
							Line:   40,
						},
						File:   "minute_test.flux",
						Source: "(table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()\n        |> map(fn: (r) => ({r with _value: promql.promqlMinute(timestamp: r._value)}))",
						Start: ast.Position{
							Column: 18,
							Line:   35,
						},
					},
				},
				Body: &ast.PipeExpression{
					Argument: &ast.PipeExpression{
						Argument: &ast.PipeExpression{
							Argument: &ast.PipeExpression{
								Argument: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 10,
												Line:   36,
											},
											File:   "minute_test.flux",
											Source: "table",
											Start: ast.Position{
												Column: 5,
												Line:   36,
											},
										},
									},
									Name: "table",
								},
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   37,
										},
										File:   "minute_test.flux",
										Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)",
										Start: ast.Position{
											Column: 5,
											Line:   36,
										},
									},
								},
								Call: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   37,
												},
												File:   "minute_test.flux",
												Source: "start: 1980-01-01T00:00:00Z",
												Start: ast.Position{
													Column: 18,
													Line:   37,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   37,
													},
													File:   "minute_test.flux",
													Source: "start: 1980-01-01T00:00:00Z",
													Start: ast.Position{
														Column: 18,
														Line:   37,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 23,
															Line:   37,
														},
														File:   "minute_test.flux",
														Source: "start",
														Start: ast.Position{
															Column: 18,
															Line:   37,
														},
													},
												},
												Name: "start",
											},
											Separator: nil,
											Value: &ast.DateTimeLiteral{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 45,
															Line:   37,
														},
														File:   "minute_test.flux",
														Source: "1980-01-01T00:00:00Z",
														Start: ast.Position{
															Column: 25,
															Line:   37,
														},
													},
												},
												Value: parser.MustParseTime("1980-01-01T00:00:00Z"),
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 46,
												Line:   37,
											},
											File:   "minute_test.flux",
											Source: "range(start: 1980-01-01T00:00:00Z)",
											Start: ast.Position{
												Column: 12,
												Line:   37,
											},
										},
									},
									Callee: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 17,
													Line:   37,
												},
												File:   "minute_test.flux",
												Source: "range",
												Start: ast.Position{
													Column: 12,
													Line:   37,
												},
											},
										},
										Name: "range",
									},
									Lparen: nil,
									Rparen: nil,
								},
							},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 46,
										Line:   38,
									},
									File:   "minute_test.flux",
									Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])",
									Start: ast.Position{
										Column: 5,
										Line:   36,
									},
								},
							},
							Call: &ast.CallExpression{
								Arguments: []ast.Expression{&ast.ObjectExpression{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   38,
											},
											File:   "minute_test.flux",
											Source: "columns: [\"_start\", \"_stop\"]",
											Start: ast.Position{
												Column: 17,
												Line:   38,
											},
										},
									},
									Lbrace: nil,
									Properties: []*ast.Property{&ast.Property{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   38,
												},
												File:   "minute_test.flux",
												Source: "columns: [\"_start\", \"_stop\"]",
												Start: ast.Position{
													Column: 17,
													Line:   38,
												},
											},
										},
										Comma: nil,
										Key: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 24,
														Line:   38,
													},
													File:   "minute_test.flux",
													Source: "columns",
													Start: ast.Position{
														Column: 17,
														Line:   38,
													},
												},
											},
											Name: "columns",
										},
										Separator: nil,
										Value: &ast.ArrayExpression{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   38,
													},
													File:   "minute_test.flux",
													Source: "[\"_start\", \"_stop\"]",
													Start: ast.Position{
														Column: 26,
														Line:   38,
													},
												},
											},
											Elements: []ast.Expression{&ast.StringLiteral{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 35,
															Line:   38,
														},
														File:   "minute_test.flux",
														Source: "\"_start\"",
														Start: ast.Position{
															Column: 27,
															Line:   38,
														},
													},
												},
												Value: "_start",
											}, &ast.StringLiteral{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 44,
															Line:   38,
														},
														File:   "minute_test.flux",
														Source: "\"_stop\"",
														Start: ast.Position{
															Column: 37,
															Line:   38,
														},
													},
												},
												Value: "_stop",
											}},
											Lbrack: nil,
											Rbrack: nil,
										},
									}},
									Rbrace: nil,
									With:   nil,
								}},
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   38,
										},
										File:   "minute_test.flux",
										Source: "drop(columns: [\"_start\", \"_stop\"])",
										Start: ast.Position{
											Column: 12,
											Line:   38,
										},
									},
								},
								Callee: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 16,
												Line:   38,
											},
											File:   "minute_test.flux",
											Source: "drop",
											Start: ast.Position{
												Column: 12,
												Line:   38,
											},
										},
									},
									Name: "drop",
								},
								Lparen: nil,
								Rparen: nil,
							},
						},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 30,
									Line:   39,
								},
								File:   "minute_test.flux",
								Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()",
								Start: ast.Position{
									Column: 5,
									Line:   36,
								},
							},
						},
						Call: &ast.CallExpression{
							Arguments: nil,
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 30,
										Line:   39,
									},
									File:   "minute_test.flux",
									Source: "promql.timestamp()",
									Start: ast.Position{
										Column: 12,
										Line:   39,
									},
								},
							},
							Callee: &ast.MemberExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 28,
											Line:   39,
										},
										File:   "minute_test.flux",
										Source: "promql.timestamp",
										Start: ast.Position{
											Column: 12,
											Line:   39,
										},
									},
								},
								Lbrack: nil,
								Object: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 18,
												Line:   39,
											},
											File:   "minute_test.flux",
											Source: "promql",
											Start: ast.Position{
												Column: 12,
												Line:   39,
											},
										},
									},
									Name: "promql",
								},
								Property: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 28,
												Line:   39,
											},
											File:   "minute_test.flux",
											Source: "timestamp",
											Start: ast.Position{
												Column: 19,
												Line:   39,
											},
										},
									},
									Name: "timestamp",
								},
								Rbrack: nil,
							},
							Lparen: nil,
							Rparen: nil,
						},
					},
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 87,
								Line:   40,
							},
							File:   "minute_test.flux",
							Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()\n        |> map(fn: (r) => ({r with _value: promql.promqlMinute(timestamp: r._value)}))",
							Start: ast.Position{
								Column: 5,
								Line:   36,
							},
						},
					},
					Call: &ast.CallExpression{
						Arguments: []ast.Expression{&ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 86,
										Line:   40,
									},
									File:   "minute_test.flux",
									Source: "fn: (r) => ({r with _value: promql.promqlMinute(timestamp: r._value)})",
									Start: ast.Position{
										Column: 16,
										Line:   40,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 86,
											Line:   40,
										},
										File:   "minute_test.flux",
										Source: "fn: (r) => ({r with _value: promql.promqlMinute(timestamp: r._value)})",
										Start: ast.Position{
											Column: 16,
											Line:   40,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 18,
												Line:   40,
											},
											File:   "minute_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 16,
												Line:   40,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.FunctionExpression{
									Arrow: nil,
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 86,
												Line:   40,
											},
											File:   "minute_test.flux",
											Source: "(r) => ({r with _value: promql.promqlMinute(timestamp: r._value)})",
											Start: ast.Position{
												Column: 20,
												Line:   40,
											},
										},
									},
									Body: &ast.ParenExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 86,
													Line:   40,
												},
												File:   "minute_test.flux",
												Source: "({r with _value: promql.promqlMinute(timestamp: r._value)})",
												Start: ast.Position{
													Column: 27,
													Line:   40,
												},
											},
										},
										Expression: &ast.ObjectExpression{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 85,
														Line:   40,
													},
													File:   "minute_test.flux",
													Source: "{r with _value: promql.promqlMinute(timestamp: r._value)}",
													Start: ast.Position{
														Column: 28,
														Line:   40,
													},
												},
											},
											Lbrace: nil,
											Properties: []*ast.Property{&ast.Property{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 84,
															Line:   40,
														},
														File:   "minute_test.flux",
														Source: "_value: promql.promqlMinute(timestamp: r._value)",
														Start: ast.Position{
															Column: 36,
															Line:   40,
														},
													},
												},
												Comma: nil,
												Key: &ast.Identifier{
													BaseNode: ast.BaseNode{
														Comments: nil,
														Errors:   nil,
														Loc: &ast.SourceLocation{
															End: ast.Position{
																Column: 42,
																Line:   40,
															},
															File:   "minute_test.flux",
															Source: "_value",
															Start: ast.Position{
																Column: 36,
																Line:   40,
															},
														},
													},
													Name: "_value",
												},
												Separator: nil,
												Value: &ast.CallExpression{
													Arguments: []ast.Expression{&ast.ObjectExpression{
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 83,
																	Line:   40,
																},
																File:   "minute_test.flux",
																Source: "timestamp: r._value",
																Start: ast.Position{
																	Column: 64,
																	Line:   40,
																},
															},
														},
														Lbrace: nil,
														Properties: []*ast.Property{&ast.Property{
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 83,
																		Line:   40,
																	},
																	File:   "minute_test.flux",
																	Source: "timestamp: r._value",
																	Start: ast.Position{
																		Column: 64,
																		Line:   40,
																	},
																},
															},
															Comma: nil,
															Key: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 73,
																			Line:   40,
																		},
																		File:   "minute_test.flux",
																		Source: "timestamp",
																		Start: ast.Position{
																			Column: 64,
																			Line:   40,
																		},
																	},
																},
																Name: "timestamp",
															},
															Separator: nil,
															Value: &ast.MemberExpression{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 83,
																			Line:   40,
																		},
																		File:   "minute_test.flux",
																		Source: "r._value",
																		Start: ast.Position{
																			Column: 75,
																			Line:   40,
																		},
																	},
																},
																Lbrack: nil,
																Object: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 76,
																				Line:   40,
																			},
																			File:   "minute_test.flux",
																			Source: "r",
																			Start: ast.Position{
																				Column: 75,
																				Line:   40,
																			},
																		},
																	},
																	Name: "r",
																},
																Property: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 83,
																				Line:   40,
																			},
																			File:   "minute_test.flux",
																			Source: "_value",
																			Start: ast.Position{
																				Column: 77,
																				Line:   40,
																			},
																		},
																	},
																	Name: "_value",
																},
																Rbrack: nil,
															},
														}},
														Rbrace: nil,
														With:   nil,
													}},
													BaseNode: ast.BaseNode{
														Comments: nil,
														Errors:   nil,
														Loc: &ast.SourceLocation{
															End: ast.Position{
																Column: 84,
																Line:   40,
															},
															File:   "minute_test.flux",
															Source: "promql.promqlMinute(timestamp: r._value)",
															Start: ast.Position{
																Column: 44,
																Line:   40,
															},
														},
													},
													Callee: &ast.MemberExpression{
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 63,
																	Line:   40,
																},
																File:   "minute_test.flux",
																Source: "promql.promqlMinute",
																Start: ast.Position{
																	Column: 44,
																	Line:   40,
																},
															},
														},
														Lbrack: nil,
														Object: &ast.Identifier{
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 50,
																		Line:   40,
																	},
																	File:   "minute_test.flux",
																	Source: "promql",
																	Start: ast.Position{
																		Column: 44,
																		Line:   40,
																	},
																},
															},
															Name: "promql",
														},
														Property: &ast.Identifier{
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 63,
																		Line:   40,
																	},
																	File:   "minute_test.flux",
																	Source: "promqlMinute",
																	Start: ast.Position{
																		Column: 51,
																		Line:   40,
																	},
																},
															},
															Name: "promqlMinute",
														},
														Rbrack: nil,
													},
													Lparen: nil,
													Rparen: nil,
												},
											}},
											Rbrace: nil,
											With: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 30,
															Line:   40,
														},
														File:   "minute_test.flux",
														Source: "r",
														Start: ast.Position{
															Column: 29,
															Line:   40,
														},
													},
												},
												Name: "r",
											},
										},
										Lparen: nil,
										Rparen: nil,
									},
									Lparen: nil,
									Params: []*ast.Property{&ast.Property{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 22,
													Line:   40,
												},
												File:   "minute_test.flux",
												Source: "r",
												Start: ast.Position{
													Column: 21,
													Line:   40,
												},
											},
										},
										Comma: nil,
										Key: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 22,
														Line:   40,
													},
													File:   "minute_test.flux",
													Source: "r",
													Start: ast.Position{
														Column: 21,
														Line:   40,
													},
												},
											},
											Name: "r",
										},
										Separator: nil,
										Value:     nil,
									}},
									Rparan: nil,
								},
							}},
							Rbrace: nil,
							With:   nil,
						}},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 87,
									Line:   40,
								},
								File:   "minute_test.flux",
								Source: "map(fn: (r) => ({r with _value: promql.promqlMinute(timestamp: r._value)}))",
								Start: ast.Position{
									Column: 12,
									Line:   40,
								},
							},
						},
						Callee: &ast.Identifier{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 15,
										Line:   40,
									},
									File:   "minute_test.flux",
									Source: "map",
									Start: ast.Position{
										Column: 12,
										Line:   40,
									},
								},
							},
							Name: "map",
						},
						Lparen: nil,
						Rparen: nil,
					},
				},
				Lparen: nil,
				Params: []*ast.Property{&ast.Property{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 27,
								Line:   35,
							},
							File:   "minute_test.flux",
							Source: "table=<-",
							Start: ast.Position{
								Column: 19,
								Line:   35,
							},
						},
					},
					Comma: nil,
					Key: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 24,
									Line:   35,
								},
								File:   "minute_test.flux",
								Source: "table",
								Start: ast.Position{
									Column: 19,
									Line:   35,
								},
							},
						},
						Name: "table",
					},
					Separator: nil,
					Value: &ast.PipeLiteral{BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 27,
								Line:   35,
							},
							File:   "minute_test.flux",
							Source: "<-",
							Start: ast.Position{
								Column: 25,
								Line:   35,
							},
						},
					}},
				}},
				Rparan: nil,
			},
		}, &ast.TestStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 105,
							Line:   43,
						},
						File:   "minute_test.flux",
						Source: "_promqlMinute = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlMinute})",
						Start: ast.Position{
							Column: 6,
							Line:   42,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 19,
								Line:   42,
							},
							File:   "minute_test.flux",
							Source: "_promqlMinute",
							Start: ast.Position{
								Column: 6,
								Line:   42,
							},
						},
					},
					Name: "_promqlMinute",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 105,
								Line:   43,
							},
							File:   "minute_test.flux",
							Source: "() =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlMinute})",
							Start: ast.Position{
								Column: 22,
								Line:   42,
							},
						},
					},
					Body: &ast.ParenExpression{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 105,
									Line:   43,
								},
								File:   "minute_test.flux",
								Source: "({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlMinute})",
								Start: ast.Position{
									Column: 5,
									Line:   43,
								},
							},
						},
						Expression: &ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 104,
										Line:   43,
									},
									File:   "minute_test.flux",
									Source: "{input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlMinute}",
									Start: ast.Position{
										Column: 6,
										Line:   43,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   43,
										},
										File:   "minute_test.flux",
										Source: "input: testing.loadStorage(csv: inData)",
										Start: ast.Position{
											Column: 7,
											Line:   43,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 12,
												Line:   43,
											},
											File:   "minute_test.flux",
											Source: "input",
											Start: ast.Position{
												Column: 7,
												Line:   43,
											},
										},
									},
									Name: "input",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   43,
												},
												File:   "minute_test.flux",
												Source: "csv: inData",
												Start: ast.Position{
													Column: 34,
													Line:   43,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   43,
													},
													File:   "minute_test.flux",
													Source: "csv: inData",
													Start: ast.Position{
														Column: 34,
														Line:   43,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 37,
															Line:   43,
														},
														File:   "minute_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 34,
															Line:   43,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 45,
															Line:   43,
														},
														File:   "minute_test.flux",
														Source: "inData",
														Start: ast.Position{
															Column: 39,
															Line:   43,
														},
													},
												},
												Name: "inData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 46,
												Line:   43,
											},
											File:   "minute_test.flux",
											Source: "testing.loadStorage(csv: inData)",
											Start: ast.Position{
												Column: 14,
												Line:   43,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 33,
													Line:   43,
												},
												File:   "minute_test.flux",
												Source: "testing.loadStorage",
												Start: ast.Position{
													Column: 14,
													Line:   43,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 21,
														Line:   43,
													},
													File:   "minute_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 14,
														Line:   43,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 33,
														Line:   43,
													},
													File:   "minute_test.flux",
													Source: "loadStorage",
													Start: ast.Position{
														Column: 22,
														Line:   43,
													},
												},
											},
											Name: "loadStorage",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 83,
											Line:   43,
										},
										File:   "minute_test.flux",
										Source: "want: testing.loadMem(csv: outData)",
										Start: ast.Position{
											Column: 48,
											Line:   43,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 52,
												Line:   43,
											},
											File:   "minute_test.flux",
											Source: "want",
											Start: ast.Position{
												Column: 48,
												Line:   43,
											},
										},
									},
									Name: "want",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 82,
													Line:   43,
												},
												File:   "minute_test.flux",
												Source: "csv: outData",
												Start: ast.Position{
													Column: 70,
													Line:   43,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 82,
														Line:   43,
													},
													File:   "minute_test.flux",
													Source: "csv: outData",
													Start: ast.Position{
														Column: 70,
														Line:   43,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 73,
															Line:   43,
														},
														File:   "minute_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 70,
															Line:   43,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 82,
															Line:   43,
														},
														File:   "minute_test.flux",
														Source: "outData",
														Start: ast.Position{
															Column: 75,
															Line:   43,
														},
													},
												},
												Name: "outData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 83,
												Line:   43,
											},
											File:   "minute_test.flux",
											Source: "testing.loadMem(csv: outData)",
											Start: ast.Position{
												Column: 54,
												Line:   43,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 69,
													Line:   43,
												},
												File:   "minute_test.flux",
												Source: "testing.loadMem",
												Start: ast.Position{
													Column: 54,
													Line:   43,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 61,
														Line:   43,
													},
													File:   "minute_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 54,
														Line:   43,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 69,
														Line:   43,
													},
													File:   "minute_test.flux",
													Source: "loadMem",
													Start: ast.Position{
														Column: 62,
														Line:   43,
													},
												},
											},
											Name: "loadMem",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 103,
											Line:   43,
										},
										File:   "minute_test.flux",
										Source: "fn: t_promqlMinute",
										Start: ast.Position{
											Column: 85,
											Line:   43,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 87,
												Line:   43,
											},
											File:   "minute_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 85,
												Line:   43,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 103,
												Line:   43,
											},
											File:   "minute_test.flux",
											Source: "t_promqlMinute",
											Start: ast.Position{
												Column: 89,
												Line:   43,
											},
										},
									},
									Name: "t_promqlMinute",
								},
							}},
							Rbrace: nil,
							With:   nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 105,
						Line:   43,
					},
					File:   "minute_test.flux",
					Source: "test _promqlMinute = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlMinute})",
					Start: ast.Position{
						Column: 1,
						Line:   42,
					},
				},
			},
		}},
		Eof: nil,
		Imports: []*ast.ImportDeclaration{&ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 17,
						Line:   4,
					},
					File:   "minute_test.flux",
					Source: "import \"testing\"",
					Start: ast.Position{
						Column: 1,
						Line:   4,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 17,
							Line:   4,
						},
						File:   "minute_test.flux",
						Source: "\"testing\"",
						Start: ast.Position{
							Column: 8,
							Line:   4,
						},
					},
				},
				Value: "testing",
			},
		}, &ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 25,
						Line:   5,
					},
					File:   "minute_test.flux",
					Source: "import \"internal/promql\"",
					Start: ast.Position{
						Column: 1,
						Line:   5,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 25,
							Line:   5,
						},
						File:   "minute_test.flux",
						Source: "\"internal/promql\"",
						Start: ast.Position{
							Column: 8,
							Line:   5,
						},
					},
				},
				Value: "internal/promql",
			},
		}},
		Metadata: "parser-type=rust",
		Name:     "minute_test.flux",
		Package: &ast.PackageClause{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 20,
						Line:   1,
					},
					File:   "minute_test.flux",
					Source: "package promql_test",
					Start: ast.Position{
						Column: 1,
						Line:   1,
					},
				},
			},
			Name: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 20,
							Line:   1,
						},
						File:   "minute_test.flux",
						Source: "promql_test",
						Start: ast.Position{
							Column: 9,
							Line:   1,
						},
					},
				},
				Name: "promql_test",
			},
		},
	}, &ast.File{
		BaseNode: ast.BaseNode{
			Comments: nil,
			Errors:   nil,
			Loc: &ast.SourceLocation{
				End: ast.Position{
					Column: 104,
					Line:   43,
				},
				File:   "month_test.flux",
				Source: "package promql_test\n\n\nimport \"testing\"\nimport \"internal/promql\"\n\noption now = () => 2030-01-01T00:00:00Z\n\ninData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T20:00:00Z,metric_name,0,prometheus\n,,0,2018-02-04T20:00:00Z,metric_name,0,prometheus\n,,0,2018-03-05T20:00:00Z,metric_name,0,prometheus\n,,0,2018-10-06T20:00:00Z,metric_name,0,prometheus\n,,0,2018-11-07T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-08T20:00:00Z,metric_name,0,prometheus\n\"\noutData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,outData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T20:00:00Z,metric_name,1,prometheus\n,,0,2018-02-04T20:00:00Z,metric_name,2,prometheus\n,,0,2018-03-05T20:00:00Z,metric_name,3,prometheus\n,,0,2018-10-06T20:00:00Z,metric_name,10,prometheus\n,,0,2018-11-07T20:00:00Z,metric_name,11,prometheus\n,,0,2018-12-08T20:00:00Z,metric_name,12,prometheus\n\"\nt_promqlMonth = (table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()\n        |> map(fn: (r) => ({r with _value: promql.promqlMonth(timestamp: r._value)}))\n\ntest _promqlMonth = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlMonth})",
				Start: ast.Position{
					Column: 1,
					Line:   1,
				},
			},
		},
		Body: []ast.Statement{&ast.OptionStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 40,
							Line:   7,
						},
						File:   "month_test.flux",
						Source: "now = () => 2030-01-01T00:00:00Z",
						Start: ast.Position{
							Column: 8,
							Line:   7,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 11,
								Line:   7,
							},
							File:   "month_test.flux",
							Source: "now",
							Start: ast.Position{
								Column: 8,
								Line:   7,
							},
						},
					},
					Name: "now",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 40,
								Line:   7,
							},
							File:   "month_test.flux",
							Source: "() => 2030-01-01T00:00:00Z",
							Start: ast.Position{
								Column: 14,
								Line:   7,
							},
						},
					},
					Body: &ast.DateTimeLiteral{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 40,
									Line:   7,
								},
								File:   "month_test.flux",
								Source: "2030-01-01T00:00:00Z",
								Start: ast.Position{
									Column: 20,
									Line:   7,
								},
							},
						},
						Value: parser.MustParseTime("2030-01-01T00:00:00Z"),
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 40,
						Line:   7,
					},
					File:   "month_test.flux",
					Source: "option now = () => 2030-01-01T00:00:00Z",
					Start: ast.Position{
						Column: 1,
						Line:   7,
					},
				},
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   21,
					},
					File:   "month_test.flux",
					Source: "inData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T20:00:00Z,metric_name,0,prometheus\n,,0,2018-02-04T20:00:00Z,metric_name,0,prometheus\n,,0,2018-03-05T20:00:00Z,metric_name,0,prometheus\n,,0,2018-10-06T20:00:00Z,metric_name,0,prometheus\n,,0,2018-11-07T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-08T20:00:00Z,metric_name,0,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   9,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 7,
							Line:   9,
						},
						File:   "month_test.flux",
						Source: "inData",
						Start: ast.Position{
							Column: 1,
							Line:   9,
						},
					},
				},
				Name: "inData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   21,
						},
						File:   "month_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T20:00:00Z,metric_name,0,prometheus\n,,0,2018-02-04T20:00:00Z,metric_name,0,prometheus\n,,0,2018-03-05T20:00:00Z,metric_name,0,prometheus\n,,0,2018-10-06T20:00:00Z,metric_name,0,prometheus\n,,0,2018-11-07T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-08T20:00:00Z,metric_name,0,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   10,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T20:00:00Z,metric_name,0,prometheus\n,,0,2018-02-04T20:00:00Z,metric_name,0,prometheus\n,,0,2018-03-05T20:00:00Z,metric_name,0,prometheus\n,,0,2018-10-06T20:00:00Z,metric_name,0,prometheus\n,,0,2018-11-07T20:00:00Z,metric_name,0,prometheus\n,,0,2018-12-08T20:00:00Z,metric_name,0,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   34,
					},
					File:   "month_test.flux",
					Source: "outData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,outData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T20:00:00Z,metric_name,1,prometheus\n,,0,2018-02-04T20:00:00Z,metric_name,2,prometheus\n,,0,2018-03-05T20:00:00Z,metric_name,3,prometheus\n,,0,2018-10-06T20:00:00Z,metric_name,10,prometheus\n,,0,2018-11-07T20:00:00Z,metric_name,11,prometheus\n,,0,2018-12-08T20:00:00Z,metric_name,12,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   22,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 8,
							Line:   22,
						},
						File:   "month_test.flux",
						Source: "outData",
						Start: ast.Position{
							Column: 1,
							Line:   22,
						},
					},
				},
				Name: "outData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   34,
						},
						File:   "month_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,outData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T20:00:00Z,metric_name,1,prometheus\n,,0,2018-02-04T20:00:00Z,metric_name,2,prometheus\n,,0,2018-03-05T20:00:00Z,metric_name,3,prometheus\n,,0,2018-10-06T20:00:00Z,metric_name,10,prometheus\n,,0,2018-11-07T20:00:00Z,metric_name,11,prometheus\n,,0,2018-12-08T20:00:00Z,metric_name,12,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   23,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,outData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T20:00:00Z,metric_name,1,prometheus\n,,0,2018-02-04T20:00:00Z,metric_name,2,prometheus\n,,0,2018-03-05T20:00:00Z,metric_name,3,prometheus\n,,0,2018-10-06T20:00:00Z,metric_name,10,prometheus\n,,0,2018-11-07T20:00:00Z,metric_name,11,prometheus\n,,0,2018-12-08T20:00:00Z,metric_name,12,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 86,
						Line:   40,
					},
					File:   "month_test.flux",
					Source: "t_promqlMonth = (table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()\n        |> map(fn: (r) => ({r with _value: promql.promqlMonth(timestamp: r._value)}))",
					Start: ast.Position{
						Column: 1,
						Line:   35,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 14,
							Line:   35,
						},
						File:   "month_test.flux",
						Source: "t_promqlMonth",
						Start: ast.Position{
							Column: 1,
							Line:   35,
						},
					},
				},
				Name: "t_promqlMonth",
			},
			Init: &ast.FunctionExpression{
				Arrow: nil,
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 86,
							Line:   40,
						},
						File:   "month_test.flux",
						Source: "(table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()\n        |> map(fn: (r) => ({r with _value: promql.promqlMonth(timestamp: r._value)}))",
						Start: ast.Position{
							Column: 17,
							Line:   35,
						},
					},
				},
				Body: &ast.PipeExpression{
					Argument: &ast.PipeExpression{
						Argument: &ast.PipeExpression{
							Argument: &ast.PipeExpression{
								Argument: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 10,
												Line:   36,
											},
											File:   "month_test.flux",
											Source: "table",
											Start: ast.Position{
												Column: 5,
												Line:   36,
											},
										},
									},
									Name: "table",
								},
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   37,
										},
										File:   "month_test.flux",
										Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)",
										Start: ast.Position{
											Column: 5,
											Line:   36,
										},
									},
								},
								Call: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   37,
												},
												File:   "month_test.flux",
												Source: "start: 1980-01-01T00:00:00Z",
												Start: ast.Position{
													Column: 18,
													Line:   37,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   37,
													},
													File:   "month_test.flux",
													Source: "start: 1980-01-01T00:00:00Z",
													Start: ast.Position{
														Column: 18,
														Line:   37,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 23,
															Line:   37,
														},
														File:   "month_test.flux",
														Source: "start",
														Start: ast.Position{
															Column: 18,
															Line:   37,
														},
													},
												},
												Name: "start",
											},
											Separator: nil,
											Value: &ast.DateTimeLiteral{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 45,
															Line:   37,
														},
														File:   "month_test.flux",
														Source: "1980-01-01T00:00:00Z",
														Start: ast.Position{
															Column: 25,
															Line:   37,
														},
													},
												},
												Value: parser.MustParseTime("1980-01-01T00:00:00Z"),
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 46,
												Line:   37,
											},
											File:   "month_test.flux",
											Source: "range(start: 1980-01-01T00:00:00Z)",
											Start: ast.Position{
												Column: 12,
												Line:   37,
											},
										},
									},
									Callee: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 17,
													Line:   37,
												},
												File:   "month_test.flux",
												Source: "range",
												Start: ast.Position{
													Column: 12,
													Line:   37,
												},
											},
										},
										Name: "range",
									},
									Lparen: nil,
									Rparen: nil,
								},
							},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 46,
										Line:   38,
									},
									File:   "month_test.flux",
									Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])",
									Start: ast.Position{
										Column: 5,
										Line:   36,
									},
								},
							},
							Call: &ast.CallExpression{
								Arguments: []ast.Expression{&ast.ObjectExpression{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   38,
											},
											File:   "month_test.flux",
											Source: "columns: [\"_start\", \"_stop\"]",
											Start: ast.Position{
												Column: 17,
												Line:   38,
											},
										},
									},
									Lbrace: nil,
									Properties: []*ast.Property{&ast.Property{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   38,
												},
												File:   "month_test.flux",
												Source: "columns: [\"_start\", \"_stop\"]",
												Start: ast.Position{
													Column: 17,
													Line:   38,
												},
											},
										},
										Comma: nil,
										Key: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 24,
														Line:   38,
													},
													File:   "month_test.flux",
													Source: "columns",
													Start: ast.Position{
														Column: 17,
														Line:   38,
													},
												},
											},
											Name: "columns",
										},
										Separator: nil,
										Value: &ast.ArrayExpression{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   38,
													},
													File:   "month_test.flux",
													Source: "[\"_start\", \"_stop\"]",
													Start: ast.Position{
														Column: 26,
														Line:   38,
													},
												},
											},
											Elements: []ast.Expression{&ast.StringLiteral{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 35,
															Line:   38,
														},
														File:   "month_test.flux",
														Source: "\"_start\"",
														Start: ast.Position{
															Column: 27,
															Line:   38,
														},
													},
												},
												Value: "_start",
											}, &ast.StringLiteral{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 44,
															Line:   38,
														},
														File:   "month_test.flux",
														Source: "\"_stop\"",
														Start: ast.Position{
															Column: 37,
															Line:   38,
														},
													},
												},
												Value: "_stop",
											}},
											Lbrack: nil,
											Rbrack: nil,
										},
									}},
									Rbrace: nil,
									With:   nil,
								}},
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   38,
										},
										File:   "month_test.flux",
										Source: "drop(columns: [\"_start\", \"_stop\"])",
										Start: ast.Position{
											Column: 12,
											Line:   38,
										},
									},
								},
								Callee: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 16,
												Line:   38,
											},
											File:   "month_test.flux",
											Source: "drop",
											Start: ast.Position{
												Column: 12,
												Line:   38,
											},
										},
									},
									Name: "drop",
								},
								Lparen: nil,
								Rparen: nil,
							},
						},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 30,
									Line:   39,
								},
								File:   "month_test.flux",
								Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()",
								Start: ast.Position{
									Column: 5,
									Line:   36,
								},
							},
						},
						Call: &ast.CallExpression{
							Arguments: nil,
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 30,
										Line:   39,
									},
									File:   "month_test.flux",
									Source: "promql.timestamp()",
									Start: ast.Position{
										Column: 12,
										Line:   39,
									},
								},
							},
							Callee: &ast.MemberExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 28,
											Line:   39,
										},
										File:   "month_test.flux",
										Source: "promql.timestamp",
										Start: ast.Position{
											Column: 12,
											Line:   39,
										},
									},
								},
								Lbrack: nil,
								Object: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 18,
												Line:   39,
											},
											File:   "month_test.flux",
											Source: "promql",
											Start: ast.Position{
												Column: 12,
												Line:   39,
											},
										},
									},
									Name: "promql",
								},
								Property: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 28,
												Line:   39,
											},
											File:   "month_test.flux",
											Source: "timestamp",
											Start: ast.Position{
												Column: 19,
												Line:   39,
											},
										},
									},
									Name: "timestamp",
								},
								Rbrack: nil,
							},
							Lparen: nil,
							Rparen: nil,
						},
					},
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 86,
								Line:   40,
							},
							File:   "month_test.flux",
							Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()\n        |> map(fn: (r) => ({r with _value: promql.promqlMonth(timestamp: r._value)}))",
							Start: ast.Position{
								Column: 5,
								Line:   36,
							},
						},
					},
					Call: &ast.CallExpression{
						Arguments: []ast.Expression{&ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 85,
										Line:   40,
									},
									File:   "month_test.flux",
									Source: "fn: (r) => ({r with _value: promql.promqlMonth(timestamp: r._value)})",
									Start: ast.Position{
										Column: 16,
										Line:   40,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 85,
											Line:   40,
										},
										File:   "month_test.flux",
										Source: "fn: (r) => ({r with _value: promql.promqlMonth(timestamp: r._value)})",
										Start: ast.Position{
											Column: 16,
											Line:   40,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 18,
												Line:   40,
											},
											File:   "month_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 16,
												Line:   40,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.FunctionExpression{
									Arrow: nil,
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 85,
												Line:   40,
											},
											File:   "month_test.flux",
											Source: "(r) => ({r with _value: promql.promqlMonth(timestamp: r._value)})",
											Start: ast.Position{
												Column: 20,
												Line:   40,
											},
										},
									},
									Body: &ast.ParenExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 85,
													Line:   40,
												},
												File:   "month_test.flux",
												Source: "({r with _value: promql.promqlMonth(timestamp: r._value)})",
												Start: ast.Position{
													Column: 27,
													Line:   40,
												},
											},
										},
										Expression: &ast.ObjectExpression{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 84,
														Line:   40,
													},
													File:   "month_test.flux",
													Source: "{r with _value: promql.promqlMonth(timestamp: r._value)}",
													Start: ast.Position{
														Column: 28,
														Line:   40,
													},
												},
											},
											Lbrace: nil,
											Properties: []*ast.Property{&ast.Property{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 83,
															Line:   40,
														},
														File:   "month_test.flux",
														Source: "_value: promql.promqlMonth(timestamp: r._value)",
														Start: ast.Position{
															Column: 36,
															Line:   40,
														},
													},
												},
												Comma: nil,
												Key: &ast.Identifier{
													BaseNode: ast.BaseNode{
														Comments: nil,
														Errors:   nil,
														Loc: &ast.SourceLocation{
															End: ast.Position{
																Column: 42,
																Line:   40,
															},
															File:   "month_test.flux",
															Source: "_value",
															Start: ast.Position{
																Column: 36,
																Line:   40,
															},
														},
													},
													Name: "_value",
												},
												Separator: nil,
												Value: &ast.CallExpression{
													Arguments: []ast.Expression{&ast.ObjectExpression{
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 82,
																	Line:   40,
																},
																File:   "month_test.flux",
																Source: "timestamp: r._value",
																Start: ast.Position{
																	Column: 63,
																	Line:   40,
																},
															},
														},
														Lbrace: nil,
														Properties: []*ast.Property{&ast.Property{
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 82,
																		Line:   40,
																	},
																	File:   "month_test.flux",
																	Source: "timestamp: r._value",
																	Start: ast.Position{
																		Column: 63,
																		Line:   40,
																	},
																},
															},
															Comma: nil,
															Key: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 72,
																			Line:   40,
																		},
																		File:   "month_test.flux",
																		Source: "timestamp",
																		Start: ast.Position{
																			Column: 63,
																			Line:   40,
																		},
																	},
																},
																Name: "timestamp",
															},
															Separator: nil,
															Value: &ast.MemberExpression{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 82,
																			Line:   40,
																		},
																		File:   "month_test.flux",
																		Source: "r._value",
																		Start: ast.Position{
																			Column: 74,
																			Line:   40,
																		},
																	},
																},
																Lbrack: nil,
																Object: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 75,
																				Line:   40,
																			},
																			File:   "month_test.flux",
																			Source: "r",
																			Start: ast.Position{
																				Column: 74,
																				Line:   40,
																			},
																		},
																	},
																	Name: "r",
																},
																Property: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 82,
																				Line:   40,
																			},
																			File:   "month_test.flux",
																			Source: "_value",
																			Start: ast.Position{
																				Column: 76,
																				Line:   40,
																			},
																		},
																	},
																	Name: "_value",
																},
																Rbrack: nil,
															},
														}},
														Rbrace: nil,
														With:   nil,
													}},
													BaseNode: ast.BaseNode{
														Comments: nil,
														Errors:   nil,
														Loc: &ast.SourceLocation{
															End: ast.Position{
																Column: 83,
																Line:   40,
															},
															File:   "month_test.flux",
															Source: "promql.promqlMonth(timestamp: r._value)",
															Start: ast.Position{
																Column: 44,
																Line:   40,
															},
														},
													},
													Callee: &ast.MemberExpression{
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 62,
																	Line:   40,
																},
																File:   "month_test.flux",
																Source: "promql.promqlMonth",
																Start: ast.Position{
																	Column: 44,
																	Line:   40,
																},
															},
														},
														Lbrack: nil,
														Object: &ast.Identifier{
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 50,
																		Line:   40,
																	},
																	File:   "month_test.flux",
																	Source: "promql",
																	Start: ast.Position{
																		Column: 44,
																		Line:   40,
																	},
																},
															},
															Name: "promql",
														},
														Property: &ast.Identifier{
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 62,
																		Line:   40,
																	},
																	File:   "month_test.flux",
																	Source: "promqlMonth",
																	Start: ast.Position{
																		Column: 51,
																		Line:   40,
																	},
																},
															},
															Name: "promqlMonth",
														},
														Rbrack: nil,
													},
													Lparen: nil,
													Rparen: nil,
												},
											}},
											Rbrace: nil,
											With: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 30,
															Line:   40,
														},
														File:   "month_test.flux",
														Source: "r",
														Start: ast.Position{
															Column: 29,
															Line:   40,
														},
													},
												},
												Name: "r",
											},
										},
										Lparen: nil,
										Rparen: nil,
									},
									Lparen: nil,
									Params: []*ast.Property{&ast.Property{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 22,
													Line:   40,
												},
												File:   "month_test.flux",
												Source: "r",
												Start: ast.Position{
													Column: 21,
													Line:   40,
												},
											},
										},
										Comma: nil,
										Key: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 22,
														Line:   40,
													},
													File:   "month_test.flux",
													Source: "r",
													Start: ast.Position{
														Column: 21,
														Line:   40,
													},
												},
											},
											Name: "r",
										},
										Separator: nil,
										Value:     nil,
									}},
									Rparan: nil,
								},
							}},
							Rbrace: nil,
							With:   nil,
						}},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 86,
									Line:   40,
								},
								File:   "month_test.flux",
								Source: "map(fn: (r) => ({r with _value: promql.promqlMonth(timestamp: r._value)}))",
								Start: ast.Position{
									Column: 12,
									Line:   40,
								},
							},
						},
						Callee: &ast.Identifier{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 15,
										Line:   40,
									},
									File:   "month_test.flux",
									Source: "map",
									Start: ast.Position{
										Column: 12,
										Line:   40,
									},
								},
							},
							Name: "map",
						},
						Lparen: nil,
						Rparen: nil,
					},
				},
				Lparen: nil,
				Params: []*ast.Property{&ast.Property{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 26,
								Line:   35,
							},
							File:   "month_test.flux",
							Source: "table=<-",
							Start: ast.Position{
								Column: 18,
								Line:   35,
							},
						},
					},
					Comma: nil,
					Key: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 23,
									Line:   35,
								},
								File:   "month_test.flux",
								Source: "table",
								Start: ast.Position{
									Column: 18,
									Line:   35,
								},
							},
						},
						Name: "table",
					},
					Separator: nil,
					Value: &ast.PipeLiteral{BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 26,
								Line:   35,
							},
							File:   "month_test.flux",
							Source: "<-",
							Start: ast.Position{
								Column: 24,
								Line:   35,
							},
						},
					}},
				}},
				Rparan: nil,
			},
		}, &ast.TestStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 104,
							Line:   43,
						},
						File:   "month_test.flux",
						Source: "_promqlMonth = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlMonth})",
						Start: ast.Position{
							Column: 6,
							Line:   42,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 18,
								Line:   42,
							},
							File:   "month_test.flux",
							Source: "_promqlMonth",
							Start: ast.Position{
								Column: 6,
								Line:   42,
							},
						},
					},
					Name: "_promqlMonth",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 104,
								Line:   43,
							},
							File:   "month_test.flux",
							Source: "() =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlMonth})",
							Start: ast.Position{
								Column: 21,
								Line:   42,
							},
						},
					},
					Body: &ast.ParenExpression{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 104,
									Line:   43,
								},
								File:   "month_test.flux",
								Source: "({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlMonth})",
								Start: ast.Position{
									Column: 5,
									Line:   43,
								},
							},
						},
						Expression: &ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 103,
										Line:   43,
									},
									File:   "month_test.flux",
									Source: "{input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlMonth}",
									Start: ast.Position{
										Column: 6,
										Line:   43,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   43,
										},
										File:   "month_test.flux",
										Source: "input: testing.loadStorage(csv: inData)",
										Start: ast.Position{
											Column: 7,
											Line:   43,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 12,
												Line:   43,
											},
											File:   "month_test.flux",
											Source: "input",
											Start: ast.Position{
												Column: 7,
												Line:   43,
											},
										},
									},
									Name: "input",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   43,
												},
												File:   "month_test.flux",
												Source: "csv: inData",
												Start: ast.Position{
													Column: 34,
													Line:   43,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   43,
													},
													File:   "month_test.flux",
													Source: "csv: inData",
													Start: ast.Position{
														Column: 34,
														Line:   43,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 37,
															Line:   43,
														},
														File:   "month_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 34,
															Line:   43,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 45,
															Line:   43,
														},
														File:   "month_test.flux",
														Source: "inData",
														Start: ast.Position{
															Column: 39,
															Line:   43,
														},
													},
												},
												Name: "inData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 46,
												Line:   43,
											},
											File:   "month_test.flux",
											Source: "testing.loadStorage(csv: inData)",
											Start: ast.Position{
												Column: 14,
												Line:   43,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 33,
													Line:   43,
												},
												File:   "month_test.flux",
												Source: "testing.loadStorage",
												Start: ast.Position{
													Column: 14,
													Line:   43,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 21,
														Line:   43,
													},
													File:   "month_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 14,
														Line:   43,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 33,
														Line:   43,
													},
													File:   "month_test.flux",
													Source: "loadStorage",
													Start: ast.Position{
														Column: 22,
														Line:   43,
													},
												},
											},
											Name: "loadStorage",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 83,
											Line:   43,
										},
										File:   "month_test.flux",
										Source: "want: testing.loadMem(csv: outData)",
										Start: ast.Position{
											Column: 48,
											Line:   43,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 52,
												Line:   43,
											},
											File:   "month_test.flux",
											Source: "want",
											Start: ast.Position{
												Column: 48,
												Line:   43,
											},
										},
									},
									Name: "want",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 82,
													Line:   43,
												},
												File:   "month_test.flux",
												Source: "csv: outData",
												Start: ast.Position{
													Column: 70,
													Line:   43,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 82,
														Line:   43,
													},
													File:   "month_test.flux",
													Source: "csv: outData",
													Start: ast.Position{
														Column: 70,
														Line:   43,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 73,
															Line:   43,
														},
														File:   "month_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 70,
															Line:   43,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 82,
															Line:   43,
														},
														File:   "month_test.flux",
														Source: "outData",
														Start: ast.Position{
															Column: 75,
															Line:   43,
														},
													},
												},
												Name: "outData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 83,
												Line:   43,
											},
											File:   "month_test.flux",
											Source: "testing.loadMem(csv: outData)",
											Start: ast.Position{
												Column: 54,
												Line:   43,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 69,
													Line:   43,
												},
												File:   "month_test.flux",
												Source: "testing.loadMem",
												Start: ast.Position{
													Column: 54,
													Line:   43,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 61,
														Line:   43,
													},
													File:   "month_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 54,
														Line:   43,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 69,
														Line:   43,
													},
													File:   "month_test.flux",
													Source: "loadMem",
													Start: ast.Position{
														Column: 62,
														Line:   43,
													},
												},
											},
											Name: "loadMem",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 102,
											Line:   43,
										},
										File:   "month_test.flux",
										Source: "fn: t_promqlMonth",
										Start: ast.Position{
											Column: 85,
											Line:   43,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 87,
												Line:   43,
											},
											File:   "month_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 85,
												Line:   43,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 102,
												Line:   43,
											},
											File:   "month_test.flux",
											Source: "t_promqlMonth",
											Start: ast.Position{
												Column: 89,
												Line:   43,
											},
										},
									},
									Name: "t_promqlMonth",
								},
							}},
							Rbrace: nil,
							With:   nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 104,
						Line:   43,
					},
					File:   "month_test.flux",
					Source: "test _promqlMonth = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlMonth})",
					Start: ast.Position{
						Column: 1,
						Line:   42,
					},
				},
			},
		}},
		Eof: nil,
		Imports: []*ast.ImportDeclaration{&ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 17,
						Line:   4,
					},
					File:   "month_test.flux",
					Source: "import \"testing\"",
					Start: ast.Position{
						Column: 1,
						Line:   4,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 17,
							Line:   4,
						},
						File:   "month_test.flux",
						Source: "\"testing\"",
						Start: ast.Position{
							Column: 8,
							Line:   4,
						},
					},
				},
				Value: "testing",
			},
		}, &ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 25,
						Line:   5,
					},
					File:   "month_test.flux",
					Source: "import \"internal/promql\"",
					Start: ast.Position{
						Column: 1,
						Line:   5,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 25,
							Line:   5,
						},
						File:   "month_test.flux",
						Source: "\"internal/promql\"",
						Start: ast.Position{
							Column: 8,
							Line:   5,
						},
					},
				},
				Value: "internal/promql",
			},
		}},
		Metadata: "parser-type=rust",
		Name:     "month_test.flux",
		Package: &ast.PackageClause{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 20,
						Line:   1,
					},
					File:   "month_test.flux",
					Source: "package promql_test",
					Start: ast.Position{
						Column: 1,
						Line:   1,
					},
				},
			},
			Name: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 20,
							Line:   1,
						},
						File:   "month_test.flux",
						Source: "promql_test",
						Start: ast.Position{
							Column: 9,
							Line:   1,
						},
					},
				},
				Name: "promql_test",
			},
		},
	}, &ast.File{
		BaseNode: ast.BaseNode{
			Comments: nil,
			Errors:   nil,
			Loc: &ast.SourceLocation{
				End: ast.Position{
					Column: 120,
					Line:   44,
				},
				File:   "quantile_neg_test.flux",
				Source: "package promql_test\n\n\nimport \"testing\"\nimport \"internal/promql\"\n\noption now = () => 2030-01-01T00:00:00Z\n\ninData =\n    \"\n#datatype,string,long,string,string,string,dateTime:RFC3339,double\n#group,false,false,true,true,true,false,false\n#default,_result,,,,,,\n,result,table,_measurement,_field,t0,_time,_value\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:44:58Z,7.940387008821781\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:08Z,49.460104214779086\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:18Z,-36.564150808873954\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:28Z,34.319039251798635\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:38Z,79.27019811403116\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:48Z,41.91029522104053\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:44:58Z,-61.68790887989735\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:08Z,-6.3173755351186465\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:18Z,-26.049728557657513\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:28Z,114.285955884979\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:38Z,16.140262630578995\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:48Z,29.50336437998469\n\"\noutData =\n    \"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,string,string,double\n#group,false,false,true,true,true,true,true,false\n#default,_result,,,,,,,\n,result,table,_start,_stop,_measurement,_field,t0,_value\n,,2,2019-01-01T00:00:00Z,2030-01-01T00:00:00Z,Reiva,OAOJWe7,BnR,-Inf\n,,3,2019-01-01T00:00:00Z,2030-01-01T00:00:00Z,Reiva,OAOJWe7,qCnJDC,-Inf\n\"\n\n// testing below range value\nt_quantile = (tables=<-) =>\n    tables\n        |> range(start: 2019-01-01T00:00:00Z)\n        |> promql.quantile(q: -0.1)\n\ntest _quantile = () => ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_quantile})",
				Start: ast.Position{
					Column: 1,
					Line:   1,
				},
			},
		},
		Body: []ast.Statement{&ast.OptionStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 40,
							Line:   7,
						},
						File:   "quantile_neg_test.flux",
						Source: "now = () => 2030-01-01T00:00:00Z",
						Start: ast.Position{
							Column: 8,
							Line:   7,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 11,
								Line:   7,
							},
							File:   "quantile_neg_test.flux",
							Source: "now",
							Start: ast.Position{
								Column: 8,
								Line:   7,
							},
						},
					},
					Name: "now",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 40,
								Line:   7,
							},
							File:   "quantile_neg_test.flux",
							Source: "() => 2030-01-01T00:00:00Z",
							Start: ast.Position{
								Column: 14,
								Line:   7,
							},
						},
					},
					Body: &ast.DateTimeLiteral{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 40,
									Line:   7,
								},
								File:   "quantile_neg_test.flux",
								Source: "2030-01-01T00:00:00Z",
								Start: ast.Position{
									Column: 20,
									Line:   7,
								},
							},
						},
						Value: parser.MustParseTime("2030-01-01T00:00:00Z"),
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 40,
						Line:   7,
					},
					File:   "quantile_neg_test.flux",
					Source: "option now = () => 2030-01-01T00:00:00Z",
					Start: ast.Position{
						Column: 1,
						Line:   7,
					},
				},
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   27,
					},
					File:   "quantile_neg_test.flux",
					Source: "inData =\n    \"\n#datatype,string,long,string,string,string,dateTime:RFC3339,double\n#group,false,false,true,true,true,false,false\n#default,_result,,,,,,\n,result,table,_measurement,_field,t0,_time,_value\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:44:58Z,7.940387008821781\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:08Z,49.460104214779086\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:18Z,-36.564150808873954\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:28Z,34.319039251798635\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:38Z,79.27019811403116\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:48Z,41.91029522104053\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:44:58Z,-61.68790887989735\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:08Z,-6.3173755351186465\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:18Z,-26.049728557657513\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:28Z,114.285955884979\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:38Z,16.140262630578995\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:48Z,29.50336437998469\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   9,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 7,
							Line:   9,
						},
						File:   "quantile_neg_test.flux",
						Source: "inData",
						Start: ast.Position{
							Column: 1,
							Line:   9,
						},
					},
				},
				Name: "inData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   27,
						},
						File:   "quantile_neg_test.flux",
						Source: "\"\n#datatype,string,long,string,string,string,dateTime:RFC3339,double\n#group,false,false,true,true,true,false,false\n#default,_result,,,,,,\n,result,table,_measurement,_field,t0,_time,_value\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:44:58Z,7.940387008821781\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:08Z,49.460104214779086\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:18Z,-36.564150808873954\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:28Z,34.319039251798635\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:38Z,79.27019811403116\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:48Z,41.91029522104053\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:44:58Z,-61.68790887989735\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:08Z,-6.3173755351186465\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:18Z,-26.049728557657513\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:28Z,114.285955884979\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:38Z,16.140262630578995\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:48Z,29.50336437998469\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   10,
						},
					},
				},
				Value: "\n#datatype,string,long,string,string,string,dateTime:RFC3339,double\n#group,false,false,true,true,true,false,false\n#default,_result,,,,,,\n,result,table,_measurement,_field,t0,_time,_value\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:44:58Z,7.940387008821781\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:08Z,49.460104214779086\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:18Z,-36.564150808873954\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:28Z,34.319039251798635\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:38Z,79.27019811403116\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:48Z,41.91029522104053\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:44:58Z,-61.68790887989735\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:08Z,-6.3173755351186465\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:18Z,-26.049728557657513\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:28Z,114.285955884979\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:38Z,16.140262630578995\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:48Z,29.50336437998469\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   36,
					},
					File:   "quantile_neg_test.flux",
					Source: "outData =\n    \"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,string,string,double\n#group,false,false,true,true,true,true,true,false\n#default,_result,,,,,,,\n,result,table,_start,_stop,_measurement,_field,t0,_value\n,,2,2019-01-01T00:00:00Z,2030-01-01T00:00:00Z,Reiva,OAOJWe7,BnR,-Inf\n,,3,2019-01-01T00:00:00Z,2030-01-01T00:00:00Z,Reiva,OAOJWe7,qCnJDC,-Inf\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   28,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 8,
							Line:   28,
						},
						File:   "quantile_neg_test.flux",
						Source: "outData",
						Start: ast.Position{
							Column: 1,
							Line:   28,
						},
					},
				},
				Name: "outData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   36,
						},
						File:   "quantile_neg_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,string,string,double\n#group,false,false,true,true,true,true,true,false\n#default,_result,,,,,,,\n,result,table,_start,_stop,_measurement,_field,t0,_value\n,,2,2019-01-01T00:00:00Z,2030-01-01T00:00:00Z,Reiva,OAOJWe7,BnR,-Inf\n,,3,2019-01-01T00:00:00Z,2030-01-01T00:00:00Z,Reiva,OAOJWe7,qCnJDC,-Inf\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   29,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,string,string,double\n#group,false,false,true,true,true,true,true,false\n#default,_result,,,,,,,\n,result,table,_start,_stop,_measurement,_field,t0,_value\n,,2,2019-01-01T00:00:00Z,2030-01-01T00:00:00Z,Reiva,OAOJWe7,BnR,-Inf\n,,3,2019-01-01T00:00:00Z,2030-01-01T00:00:00Z,Reiva,OAOJWe7,qCnJDC,-Inf\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 36,
						Line:   42,
					},
					File:   "quantile_neg_test.flux",
					Source: "t_quantile = (tables=<-) =>\n    tables\n        |> range(start: 2019-01-01T00:00:00Z)\n        |> promql.quantile(q: -0.1)",
					Start: ast.Position{
						Column: 1,
						Line:   39,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: []ast.Comment{ast.Comment{Text: "// testing below range value\n"}},
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 11,
							Line:   39,
						},
						File:   "quantile_neg_test.flux",
						Source: "t_quantile",
						Start: ast.Position{
							Column: 1,
							Line:   39,
						},
					},
				},
				Name: "t_quantile",
			},
			Init: &ast.FunctionExpression{
				Arrow: nil,
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 36,
							Line:   42,
						},
						File:   "quantile_neg_test.flux",
						Source: "(tables=<-) =>\n    tables\n        |> range(start: 2019-01-01T00:00:00Z)\n        |> promql.quantile(q: -0.1)",
						Start: ast.Position{
							Column: 14,
							Line:   39,
						},
					},
				},
				Body: &ast.PipeExpression{
					Argument: &ast.PipeExpression{
						Argument: &ast.Identifier{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 11,
										Line:   40,
									},
									File:   "quantile_neg_test.flux",
									Source: "tables",
									Start: ast.Position{
										Column: 5,
										Line:   40,
									},
								},
							},
							Name: "tables",
						},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 46,
									Line:   41,
								},
								File:   "quantile_neg_test.flux",
								Source: "tables\n        |> range(start: 2019-01-01T00:00:00Z)",
								Start: ast.Position{
									Column: 5,
									Line:   40,
								},
							},
						},
						Call: &ast.CallExpression{
							Arguments: []ast.Expression{&ast.ObjectExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 45,
											Line:   41,
										},
										File:   "quantile_neg_test.flux",
										Source: "start: 2019-01-01T00:00:00Z",
										Start: ast.Position{
											Column: 18,
											Line:   41,
										},
									},
								},
								Lbrace: nil,
								Properties: []*ast.Property{&ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   41,
											},
											File:   "quantile_neg_test.flux",
											Source: "start: 2019-01-01T00:00:00Z",
											Start: ast.Position{
												Column: 18,
												Line:   41,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 23,
													Line:   41,
												},
												File:   "quantile_neg_test.flux",
												Source: "start",
												Start: ast.Position{
													Column: 18,
													Line:   41,
												},
											},
										},
										Name: "start",
									},
									Separator: nil,
									Value: &ast.DateTimeLiteral{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   41,
												},
												File:   "quantile_neg_test.flux",
												Source: "2019-01-01T00:00:00Z",
												Start: ast.Position{
													Column: 25,
													Line:   41,
												},
											},
										},
										Value: parser.MustParseTime("2019-01-01T00:00:00Z"),
									},
								}},
								Rbrace: nil,
								With:   nil,
							}},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 46,
										Line:   41,
									},
									File:   "quantile_neg_test.flux",
									Source: "range(start: 2019-01-01T00:00:00Z)",
									Start: ast.Position{
										Column: 12,
										Line:   41,
									},
								},
							},
							Callee: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 17,
											Line:   41,
										},
										File:   "quantile_neg_test.flux",
										Source: "range",
										Start: ast.Position{
											Column: 12,
											Line:   41,
										},
									},
								},
								Name: "range",
							},
							Lparen: nil,
							Rparen: nil,
						},
					},
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 36,
								Line:   42,
							},
							File:   "quantile_neg_test.flux",
							Source: "tables\n        |> range(start: 2019-01-01T00:00:00Z)\n        |> promql.quantile(q: -0.1)",
							Start: ast.Position{
								Column: 5,
								Line:   40,
							},
						},
					},
					Call: &ast.CallExpression{
						Arguments: []ast.Expression{&ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 35,
										Line:   42,
									},
									File:   "quantile_neg_test.flux",
									Source: "q: -0.1",
									Start: ast.Position{
										Column: 28,
										Line:   42,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 35,
											Line:   42,
										},
										File:   "quantile_neg_test.flux",
										Source: "q: -0.1",
										Start: ast.Position{
											Column: 28,
											Line:   42,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 29,
												Line:   42,
											},
											File:   "quantile_neg_test.flux",
											Source: "q",
											Start: ast.Position{
												Column: 28,
												Line:   42,
											},
										},
									},
									Name: "q",
								},
								Separator: nil,
								Value: &ast.UnaryExpression{
									Argument: &ast.FloatLiteral{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 35,
													Line:   42,
												},
												File:   "quantile_neg_test.flux",
												Source: "0.1",
												Start: ast.Position{
													Column: 32,
													Line:   42,
												},
											},
										},
										Value: 0.1,
									},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 35,
												Line:   42,
											},
											File:   "quantile_neg_test.flux",
											Source: "-0.1",
											Start: ast.Position{
												Column: 31,
												Line:   42,
											},
										},
									},
									Operator: 6,
								},
							}},
							Rbrace: nil,
							With:   nil,
						}},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 36,
									Line:   42,
								},
								File:   "quantile_neg_test.flux",
								Source: "promql.quantile(q: -0.1)",
								Start: ast.Position{
									Column: 12,
									Line:   42,
								},
							},
						},
						Callee: &ast.MemberExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 27,
										Line:   42,
									},
									File:   "quantile_neg_test.flux",
									Source: "promql.quantile",
									Start: ast.Position{
										Column: 12,
										Line:   42,
									},
								},
							},
							Lbrack: nil,
							Object: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 18,
											Line:   42,
										},
										File:   "quantile_neg_test.flux",
										Source: "promql",
										Start: ast.Position{
											Column: 12,
											Line:   42,
										},
									},
								},
								Name: "promql",
							},
							Property: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 27,
											Line:   42,
										},
										File:   "quantile_neg_test.flux",
										Source: "quantile",
										Start: ast.Position{
											Column: 19,
											Line:   42,
										},
									},
								},
								Name: "quantile",
							},
							Rbrack: nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
				},
				Lparen: nil,
				Params: []*ast.Property{&ast.Property{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 24,
								Line:   39,
							},
							File:   "quantile_neg_test.flux",
							Source: "tables=<-",
							Start: ast.Position{
								Column: 15,
								Line:   39,
							},
						},
					},
					Comma: nil,
					Key: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 21,
									Line:   39,
								},
								File:   "quantile_neg_test.flux",
								Source: "tables",
								Start: ast.Position{
									Column: 15,
									Line:   39,
								},
							},
						},
						Name: "tables",
					},
					Separator: nil,
					Value: &ast.PipeLiteral{BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 24,
								Line:   39,
							},
							File:   "quantile_neg_test.flux",
							Source: "<-",
							Start: ast.Position{
								Column: 22,
								Line:   39,
							},
						},
					}},
				}},
				Rparan: nil,
			},
		}, &ast.TestStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 120,
							Line:   44,
						},
						File:   "quantile_neg_test.flux",
						Source: "_quantile = () => ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_quantile})",
						Start: ast.Position{
							Column: 6,
							Line:   44,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 15,
								Line:   44,
							},
							File:   "quantile_neg_test.flux",
							Source: "_quantile",
							Start: ast.Position{
								Column: 6,
								Line:   44,
							},
						},
					},
					Name: "_quantile",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 120,
								Line:   44,
							},
							File:   "quantile_neg_test.flux",
							Source: "() => ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_quantile})",
							Start: ast.Position{
								Column: 18,
								Line:   44,
							},
						},
					},
					Body: &ast.ParenExpression{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 120,
									Line:   44,
								},
								File:   "quantile_neg_test.flux",
								Source: "({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_quantile})",
								Start: ast.Position{
									Column: 24,
									Line:   44,
								},
							},
						},
						Expression: &ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 119,
										Line:   44,
									},
									File:   "quantile_neg_test.flux",
									Source: "{input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_quantile}",
									Start: ast.Position{
										Column: 25,
										Line:   44,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 65,
											Line:   44,
										},
										File:   "quantile_neg_test.flux",
										Source: "input: testing.loadStorage(csv: inData)",
										Start: ast.Position{
											Column: 26,
											Line:   44,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 31,
												Line:   44,
											},
											File:   "quantile_neg_test.flux",
											Source: "input",
											Start: ast.Position{
												Column: 26,
												Line:   44,
											},
										},
									},
									Name: "input",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 64,
													Line:   44,
												},
												File:   "quantile_neg_test.flux",
												Source: "csv: inData",
												Start: ast.Position{
													Column: 53,
													Line:   44,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 64,
														Line:   44,
													},
													File:   "quantile_neg_test.flux",
													Source: "csv: inData",
													Start: ast.Position{
														Column: 53,
														Line:   44,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 56,
															Line:   44,
														},
														File:   "quantile_neg_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 53,
															Line:   44,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 64,
															Line:   44,
														},
														File:   "quantile_neg_test.flux",
														Source: "inData",
														Start: ast.Position{
															Column: 58,
															Line:   44,
														},
													},
												},
												Name: "inData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 65,
												Line:   44,
											},
											File:   "quantile_neg_test.flux",
											Source: "testing.loadStorage(csv: inData)",
											Start: ast.Position{
												Column: 33,
												Line:   44,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 52,
													Line:   44,
												},
												File:   "quantile_neg_test.flux",
												Source: "testing.loadStorage",
												Start: ast.Position{
													Column: 33,
													Line:   44,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 40,
														Line:   44,
													},
													File:   "quantile_neg_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 33,
														Line:   44,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 52,
														Line:   44,
													},
													File:   "quantile_neg_test.flux",
													Source: "loadStorage",
													Start: ast.Position{
														Column: 41,
														Line:   44,
													},
												},
											},
											Name: "loadStorage",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 102,
											Line:   44,
										},
										File:   "quantile_neg_test.flux",
										Source: "want: testing.loadMem(csv: outData)",
										Start: ast.Position{
											Column: 67,
											Line:   44,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 71,
												Line:   44,
											},
											File:   "quantile_neg_test.flux",
											Source: "want",
											Start: ast.Position{
												Column: 67,
												Line:   44,
											},
										},
									},
									Name: "want",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 101,
													Line:   44,
												},
												File:   "quantile_neg_test.flux",
												Source: "csv: outData",
												Start: ast.Position{
													Column: 89,
													Line:   44,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 101,
														Line:   44,
													},
													File:   "quantile_neg_test.flux",
													Source: "csv: outData",
													Start: ast.Position{
														Column: 89,
														Line:   44,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 92,
															Line:   44,
														},
														File:   "quantile_neg_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 89,
															Line:   44,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 101,
															Line:   44,
														},
														File:   "quantile_neg_test.flux",
														Source: "outData",
														Start: ast.Position{
															Column: 94,
															Line:   44,
														},
													},
												},
												Name: "outData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 102,
												Line:   44,
											},
											File:   "quantile_neg_test.flux",
											Source: "testing.loadMem(csv: outData)",
											Start: ast.Position{
												Column: 73,
												Line:   44,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 88,
													Line:   44,
												},
												File:   "quantile_neg_test.flux",
												Source: "testing.loadMem",
												Start: ast.Position{
													Column: 73,
													Line:   44,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 80,
														Line:   44,
													},
													File:   "quantile_neg_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 73,
														Line:   44,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 88,
														Line:   44,
													},
													File:   "quantile_neg_test.flux",
													Source: "loadMem",
													Start: ast.Position{
														Column: 81,
														Line:   44,
													},
												},
											},
											Name: "loadMem",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 118,
											Line:   44,
										},
										File:   "quantile_neg_test.flux",
										Source: "fn: t_quantile",
										Start: ast.Position{
											Column: 104,
											Line:   44,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 106,
												Line:   44,
											},
											File:   "quantile_neg_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 104,
												Line:   44,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 118,
												Line:   44,
											},
											File:   "quantile_neg_test.flux",
											Source: "t_quantile",
											Start: ast.Position{
												Column: 108,
												Line:   44,
											},
										},
									},
									Name: "t_quantile",
								},
							}},
							Rbrace: nil,
							With:   nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 120,
						Line:   44,
					},
					File:   "quantile_neg_test.flux",
					Source: "test _quantile = () => ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_quantile})",
					Start: ast.Position{
						Column: 1,
						Line:   44,
					},
				},
			},
		}},
		Eof: nil,
		Imports: []*ast.ImportDeclaration{&ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 17,
						Line:   4,
					},
					File:   "quantile_neg_test.flux",
					Source: "import \"testing\"",
					Start: ast.Position{
						Column: 1,
						Line:   4,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 17,
							Line:   4,
						},
						File:   "quantile_neg_test.flux",
						Source: "\"testing\"",
						Start: ast.Position{
							Column: 8,
							Line:   4,
						},
					},
				},
				Value: "testing",
			},
		}, &ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 25,
						Line:   5,
					},
					File:   "quantile_neg_test.flux",
					Source: "import \"internal/promql\"",
					Start: ast.Position{
						Column: 1,
						Line:   5,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 25,
							Line:   5,
						},
						File:   "quantile_neg_test.flux",
						Source: "\"internal/promql\"",
						Start: ast.Position{
							Column: 8,
							Line:   5,
						},
					},
				},
				Value: "internal/promql",
			},
		}},
		Metadata: "parser-type=rust",
		Name:     "quantile_neg_test.flux",
		Package: &ast.PackageClause{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 20,
						Line:   1,
					},
					File:   "quantile_neg_test.flux",
					Source: "package promql_test",
					Start: ast.Position{
						Column: 1,
						Line:   1,
					},
				},
			},
			Name: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 20,
							Line:   1,
						},
						File:   "quantile_neg_test.flux",
						Source: "promql_test",
						Start: ast.Position{
							Column: 9,
							Line:   1,
						},
					},
				},
				Name: "promql_test",
			},
		},
	}, &ast.File{
		BaseNode: ast.BaseNode{
			Comments: nil,
			Errors:   nil,
			Loc: &ast.SourceLocation{
				End: ast.Position{
					Column: 120,
					Line:   44,
				},
				File:   "quantile_pos_test.flux",
				Source: "package promql_test\n\n\nimport \"testing\"\nimport \"internal/promql\"\n\noption now = () => 2030-01-01T00:00:00Z\n\ninData =\n    \"\n#datatype,string,long,string,string,string,dateTime:RFC3339,double\n#group,false,false,true,true,true,false,false\n#default,_result,,,,,,\n,result,table,_measurement,_field,t0,_time,_value\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:44:58Z,7.940387008821781\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:08Z,49.460104214779086\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:18Z,-36.564150808873954\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:28Z,34.319039251798635\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:38Z,79.27019811403116\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:48Z,41.91029522104053\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:44:58Z,-61.68790887989735\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:08Z,-6.3173755351186465\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:18Z,-26.049728557657513\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:28Z,114.285955884979\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:38Z,16.140262630578995\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:48Z,29.50336437998469\n\"\noutData =\n    \"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,string,string,double\n#group,false,false,true,true,true,true,true,false\n#default,_result,,,,,,,\n,result,table,_start,_stop,_measurement,_field,t0,_value\n,,2,2019-01-01T00:00:00Z,2030-01-01T00:00:00Z,Reiva,OAOJWe7,BnR,+Inf\n,,3,2019-01-01T00:00:00Z,2030-01-01T00:00:00Z,Reiva,OAOJWe7,qCnJDC,+Inf\n\"\n\n// testing above range value\nt_quantile = (tables=<-) =>\n    tables\n        |> range(start: 2019-01-01T00:00:00Z)\n        |> promql.quantile(q: 1.1)\n\ntest _quantile = () => ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_quantile})",
				Start: ast.Position{
					Column: 1,
					Line:   1,
				},
			},
		},
		Body: []ast.Statement{&ast.OptionStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 40,
							Line:   7,
						},
						File:   "quantile_pos_test.flux",
						Source: "now = () => 2030-01-01T00:00:00Z",
						Start: ast.Position{
							Column: 8,
							Line:   7,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 11,
								Line:   7,
							},
							File:   "quantile_pos_test.flux",
							Source: "now",
							Start: ast.Position{
								Column: 8,
								Line:   7,
							},
						},
					},
					Name: "now",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 40,
								Line:   7,
							},
							File:   "quantile_pos_test.flux",
							Source: "() => 2030-01-01T00:00:00Z",
							Start: ast.Position{
								Column: 14,
								Line:   7,
							},
						},
					},
					Body: &ast.DateTimeLiteral{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 40,
									Line:   7,
								},
								File:   "quantile_pos_test.flux",
								Source: "2030-01-01T00:00:00Z",
								Start: ast.Position{
									Column: 20,
									Line:   7,
								},
							},
						},
						Value: parser.MustParseTime("2030-01-01T00:00:00Z"),
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 40,
						Line:   7,
					},
					File:   "quantile_pos_test.flux",
					Source: "option now = () => 2030-01-01T00:00:00Z",
					Start: ast.Position{
						Column: 1,
						Line:   7,
					},
				},
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   27,
					},
					File:   "quantile_pos_test.flux",
					Source: "inData =\n    \"\n#datatype,string,long,string,string,string,dateTime:RFC3339,double\n#group,false,false,true,true,true,false,false\n#default,_result,,,,,,\n,result,table,_measurement,_field,t0,_time,_value\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:44:58Z,7.940387008821781\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:08Z,49.460104214779086\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:18Z,-36.564150808873954\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:28Z,34.319039251798635\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:38Z,79.27019811403116\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:48Z,41.91029522104053\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:44:58Z,-61.68790887989735\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:08Z,-6.3173755351186465\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:18Z,-26.049728557657513\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:28Z,114.285955884979\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:38Z,16.140262630578995\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:48Z,29.50336437998469\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   9,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 7,
							Line:   9,
						},
						File:   "quantile_pos_test.flux",
						Source: "inData",
						Start: ast.Position{
							Column: 1,
							Line:   9,
						},
					},
				},
				Name: "inData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   27,
						},
						File:   "quantile_pos_test.flux",
						Source: "\"\n#datatype,string,long,string,string,string,dateTime:RFC3339,double\n#group,false,false,true,true,true,false,false\n#default,_result,,,,,,\n,result,table,_measurement,_field,t0,_time,_value\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:44:58Z,7.940387008821781\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:08Z,49.460104214779086\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:18Z,-36.564150808873954\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:28Z,34.319039251798635\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:38Z,79.27019811403116\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:48Z,41.91029522104053\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:44:58Z,-61.68790887989735\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:08Z,-6.3173755351186465\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:18Z,-26.049728557657513\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:28Z,114.285955884979\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:38Z,16.140262630578995\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:48Z,29.50336437998469\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   10,
						},
					},
				},
				Value: "\n#datatype,string,long,string,string,string,dateTime:RFC3339,double\n#group,false,false,true,true,true,false,false\n#default,_result,,,,,,\n,result,table,_measurement,_field,t0,_time,_value\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:44:58Z,7.940387008821781\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:08Z,49.460104214779086\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:18Z,-36.564150808873954\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:28Z,34.319039251798635\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:38Z,79.27019811403116\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:48Z,41.91029522104053\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:44:58Z,-61.68790887989735\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:08Z,-6.3173755351186465\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:18Z,-26.049728557657513\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:28Z,114.285955884979\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:38Z,16.140262630578995\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:48Z,29.50336437998469\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   36,
					},
					File:   "quantile_pos_test.flux",
					Source: "outData =\n    \"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,string,string,double\n#group,false,false,true,true,true,true,true,false\n#default,_result,,,,,,,\n,result,table,_start,_stop,_measurement,_field,t0,_value\n,,2,2019-01-01T00:00:00Z,2030-01-01T00:00:00Z,Reiva,OAOJWe7,BnR,+Inf\n,,3,2019-01-01T00:00:00Z,2030-01-01T00:00:00Z,Reiva,OAOJWe7,qCnJDC,+Inf\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   28,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 8,
							Line:   28,
						},
						File:   "quantile_pos_test.flux",
						Source: "outData",
						Start: ast.Position{
							Column: 1,
							Line:   28,
						},
					},
				},
				Name: "outData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   36,
						},
						File:   "quantile_pos_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,string,string,double\n#group,false,false,true,true,true,true,true,false\n#default,_result,,,,,,,\n,result,table,_start,_stop,_measurement,_field,t0,_value\n,,2,2019-01-01T00:00:00Z,2030-01-01T00:00:00Z,Reiva,OAOJWe7,BnR,+Inf\n,,3,2019-01-01T00:00:00Z,2030-01-01T00:00:00Z,Reiva,OAOJWe7,qCnJDC,+Inf\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   29,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,string,string,double\n#group,false,false,true,true,true,true,true,false\n#default,_result,,,,,,,\n,result,table,_start,_stop,_measurement,_field,t0,_value\n,,2,2019-01-01T00:00:00Z,2030-01-01T00:00:00Z,Reiva,OAOJWe7,BnR,+Inf\n,,3,2019-01-01T00:00:00Z,2030-01-01T00:00:00Z,Reiva,OAOJWe7,qCnJDC,+Inf\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 35,
						Line:   42,
					},
					File:   "quantile_pos_test.flux",
					Source: "t_quantile = (tables=<-) =>\n    tables\n        |> range(start: 2019-01-01T00:00:00Z)\n        |> promql.quantile(q: 1.1)",
					Start: ast.Position{
						Column: 1,
						Line:   39,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: []ast.Comment{ast.Comment{Text: "// testing above range value\n"}},
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 11,
							Line:   39,
						},
						File:   "quantile_pos_test.flux",
						Source: "t_quantile",
						Start: ast.Position{
							Column: 1,
							Line:   39,
						},
					},
				},
				Name: "t_quantile",
			},
			Init: &ast.FunctionExpression{
				Arrow: nil,
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 35,
							Line:   42,
						},
						File:   "quantile_pos_test.flux",
						Source: "(tables=<-) =>\n    tables\n        |> range(start: 2019-01-01T00:00:00Z)\n        |> promql.quantile(q: 1.1)",
						Start: ast.Position{
							Column: 14,
							Line:   39,
						},
					},
				},
				Body: &ast.PipeExpression{
					Argument: &ast.PipeExpression{
						Argument: &ast.Identifier{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 11,
										Line:   40,
									},
									File:   "quantile_pos_test.flux",
									Source: "tables",
									Start: ast.Position{
										Column: 5,
										Line:   40,
									},
								},
							},
							Name: "tables",
						},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 46,
									Line:   41,
								},
								File:   "quantile_pos_test.flux",
								Source: "tables\n        |> range(start: 2019-01-01T00:00:00Z)",
								Start: ast.Position{
									Column: 5,
									Line:   40,
								},
							},
						},
						Call: &ast.CallExpression{
							Arguments: []ast.Expression{&ast.ObjectExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 45,
											Line:   41,
										},
										File:   "quantile_pos_test.flux",
										Source: "start: 2019-01-01T00:00:00Z",
										Start: ast.Position{
											Column: 18,
											Line:   41,
										},
									},
								},
								Lbrace: nil,
								Properties: []*ast.Property{&ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   41,
											},
											File:   "quantile_pos_test.flux",
											Source: "start: 2019-01-01T00:00:00Z",
											Start: ast.Position{
												Column: 18,
												Line:   41,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 23,
													Line:   41,
												},
												File:   "quantile_pos_test.flux",
												Source: "start",
												Start: ast.Position{
													Column: 18,
													Line:   41,
												},
											},
										},
										Name: "start",
									},
									Separator: nil,
									Value: &ast.DateTimeLiteral{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   41,
												},
												File:   "quantile_pos_test.flux",
												Source: "2019-01-01T00:00:00Z",
												Start: ast.Position{
													Column: 25,
													Line:   41,
												},
											},
										},
										Value: parser.MustParseTime("2019-01-01T00:00:00Z"),
									},
								}},
								Rbrace: nil,
								With:   nil,
							}},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 46,
										Line:   41,
									},
									File:   "quantile_pos_test.flux",
									Source: "range(start: 2019-01-01T00:00:00Z)",
									Start: ast.Position{
										Column: 12,
										Line:   41,
									},
								},
							},
							Callee: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 17,
											Line:   41,
										},
										File:   "quantile_pos_test.flux",
										Source: "range",
										Start: ast.Position{
											Column: 12,
											Line:   41,
										},
									},
								},
								Name: "range",
							},
							Lparen: nil,
							Rparen: nil,
						},
					},
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 35,
								Line:   42,
							},
							File:   "quantile_pos_test.flux",
							Source: "tables\n        |> range(start: 2019-01-01T00:00:00Z)\n        |> promql.quantile(q: 1.1)",
							Start: ast.Position{
								Column: 5,
								Line:   40,
							},
						},
					},
					Call: &ast.CallExpression{
						Arguments: []ast.Expression{&ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 34,
										Line:   42,
									},
									File:   "quantile_pos_test.flux",
									Source: "q: 1.1",
									Start: ast.Position{
										Column: 28,
										Line:   42,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 34,
											Line:   42,
										},
										File:   "quantile_pos_test.flux",
										Source: "q: 1.1",
										Start: ast.Position{
											Column: 28,
											Line:   42,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 29,
												Line:   42,
											},
											File:   "quantile_pos_test.flux",
											Source: "q",
											Start: ast.Position{
												Column: 28,
												Line:   42,
											},
										},
									},
									Name: "q",
								},
								Separator: nil,
								Value: &ast.FloatLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 34,
												Line:   42,
											},
											File:   "quantile_pos_test.flux",
											Source: "1.1",
											Start: ast.Position{
												Column: 31,
												Line:   42,
											},
										},
									},
									Value: 1.1,
								},
							}},
							Rbrace: nil,
							With:   nil,
						}},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 35,
									Line:   42,
								},
								File:   "quantile_pos_test.flux",
								Source: "promql.quantile(q: 1.1)",
								Start: ast.Position{
									Column: 12,
									Line:   42,
								},
							},
						},
						Callee: &ast.MemberExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 27,
										Line:   42,
									},
									File:   "quantile_pos_test.flux",
									Source: "promql.quantile",
									Start: ast.Position{
										Column: 12,
										Line:   42,
									},
								},
							},
							Lbrack: nil,
							Object: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 18,
											Line:   42,
										},
										File:   "quantile_pos_test.flux",
										Source: "promql",
										Start: ast.Position{
											Column: 12,
											Line:   42,
										},
									},
								},
								Name: "promql",
							},
							Property: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 27,
											Line:   42,
										},
										File:   "quantile_pos_test.flux",
										Source: "quantile",
										Start: ast.Position{
											Column: 19,
											Line:   42,
										},
									},
								},
								Name: "quantile",
							},
							Rbrack: nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
				},
				Lparen: nil,
				Params: []*ast.Property{&ast.Property{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 24,
								Line:   39,
							},
							File:   "quantile_pos_test.flux",
							Source: "tables=<-",
							Start: ast.Position{
								Column: 15,
								Line:   39,
							},
						},
					},
					Comma: nil,
					Key: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 21,
									Line:   39,
								},
								File:   "quantile_pos_test.flux",
								Source: "tables",
								Start: ast.Position{
									Column: 15,
									Line:   39,
								},
							},
						},
						Name: "tables",
					},
					Separator: nil,
					Value: &ast.PipeLiteral{BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 24,
								Line:   39,
							},
							File:   "quantile_pos_test.flux",
							Source: "<-",
							Start: ast.Position{
								Column: 22,
								Line:   39,
							},
						},
					}},
				}},
				Rparan: nil,
			},
		}, &ast.TestStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 120,
							Line:   44,
						},
						File:   "quantile_pos_test.flux",
						Source: "_quantile = () => ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_quantile})",
						Start: ast.Position{
							Column: 6,
							Line:   44,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 15,
								Line:   44,
							},
							File:   "quantile_pos_test.flux",
							Source: "_quantile",
							Start: ast.Position{
								Column: 6,
								Line:   44,
							},
						},
					},
					Name: "_quantile",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 120,
								Line:   44,
							},
							File:   "quantile_pos_test.flux",
							Source: "() => ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_quantile})",
							Start: ast.Position{
								Column: 18,
								Line:   44,
							},
						},
					},
					Body: &ast.ParenExpression{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 120,
									Line:   44,
								},
								File:   "quantile_pos_test.flux",
								Source: "({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_quantile})",
								Start: ast.Position{
									Column: 24,
									Line:   44,
								},
							},
						},
						Expression: &ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 119,
										Line:   44,
									},
									File:   "quantile_pos_test.flux",
									Source: "{input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_quantile}",
									Start: ast.Position{
										Column: 25,
										Line:   44,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 65,
											Line:   44,
										},
										File:   "quantile_pos_test.flux",
										Source: "input: testing.loadStorage(csv: inData)",
										Start: ast.Position{
											Column: 26,
											Line:   44,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 31,
												Line:   44,
											},
											File:   "quantile_pos_test.flux",
											Source: "input",
											Start: ast.Position{
												Column: 26,
												Line:   44,
											},
										},
									},
									Name: "input",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 64,
													Line:   44,
												},
												File:   "quantile_pos_test.flux",
												Source: "csv: inData",
												Start: ast.Position{
													Column: 53,
													Line:   44,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 64,
														Line:   44,
													},
													File:   "quantile_pos_test.flux",
													Source: "csv: inData",
													Start: ast.Position{
														Column: 53,
														Line:   44,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 56,
															Line:   44,
														},
														File:   "quantile_pos_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 53,
															Line:   44,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 64,
															Line:   44,
														},
														File:   "quantile_pos_test.flux",
														Source: "inData",
														Start: ast.Position{
															Column: 58,
															Line:   44,
														},
													},
												},
												Name: "inData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 65,
												Line:   44,
											},
											File:   "quantile_pos_test.flux",
											Source: "testing.loadStorage(csv: inData)",
											Start: ast.Position{
												Column: 33,
												Line:   44,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 52,
													Line:   44,
												},
												File:   "quantile_pos_test.flux",
												Source: "testing.loadStorage",
												Start: ast.Position{
													Column: 33,
													Line:   44,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 40,
														Line:   44,
													},
													File:   "quantile_pos_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 33,
														Line:   44,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 52,
														Line:   44,
													},
													File:   "quantile_pos_test.flux",
													Source: "loadStorage",
													Start: ast.Position{
														Column: 41,
														Line:   44,
													},
												},
											},
											Name: "loadStorage",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 102,
											Line:   44,
										},
										File:   "quantile_pos_test.flux",
										Source: "want: testing.loadMem(csv: outData)",
										Start: ast.Position{
											Column: 67,
											Line:   44,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 71,
												Line:   44,
											},
											File:   "quantile_pos_test.flux",
											Source: "want",
											Start: ast.Position{
												Column: 67,
												Line:   44,
											},
										},
									},
									Name: "want",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 101,
													Line:   44,
												},
												File:   "quantile_pos_test.flux",
												Source: "csv: outData",
												Start: ast.Position{
													Column: 89,
													Line:   44,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 101,
														Line:   44,
													},
													File:   "quantile_pos_test.flux",
													Source: "csv: outData",
													Start: ast.Position{
														Column: 89,
														Line:   44,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 92,
															Line:   44,
														},
														File:   "quantile_pos_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 89,
															Line:   44,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 101,
															Line:   44,
														},
														File:   "quantile_pos_test.flux",
														Source: "outData",
														Start: ast.Position{
															Column: 94,
															Line:   44,
														},
													},
												},
												Name: "outData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 102,
												Line:   44,
											},
											File:   "quantile_pos_test.flux",
											Source: "testing.loadMem(csv: outData)",
											Start: ast.Position{
												Column: 73,
												Line:   44,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 88,
													Line:   44,
												},
												File:   "quantile_pos_test.flux",
												Source: "testing.loadMem",
												Start: ast.Position{
													Column: 73,
													Line:   44,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 80,
														Line:   44,
													},
													File:   "quantile_pos_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 73,
														Line:   44,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 88,
														Line:   44,
													},
													File:   "quantile_pos_test.flux",
													Source: "loadMem",
													Start: ast.Position{
														Column: 81,
														Line:   44,
													},
												},
											},
											Name: "loadMem",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 118,
											Line:   44,
										},
										File:   "quantile_pos_test.flux",
										Source: "fn: t_quantile",
										Start: ast.Position{
											Column: 104,
											Line:   44,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 106,
												Line:   44,
											},
											File:   "quantile_pos_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 104,
												Line:   44,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 118,
												Line:   44,
											},
											File:   "quantile_pos_test.flux",
											Source: "t_quantile",
											Start: ast.Position{
												Column: 108,
												Line:   44,
											},
										},
									},
									Name: "t_quantile",
								},
							}},
							Rbrace: nil,
							With:   nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 120,
						Line:   44,
					},
					File:   "quantile_pos_test.flux",
					Source: "test _quantile = () => ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_quantile})",
					Start: ast.Position{
						Column: 1,
						Line:   44,
					},
				},
			},
		}},
		Eof: nil,
		Imports: []*ast.ImportDeclaration{&ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 17,
						Line:   4,
					},
					File:   "quantile_pos_test.flux",
					Source: "import \"testing\"",
					Start: ast.Position{
						Column: 1,
						Line:   4,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 17,
							Line:   4,
						},
						File:   "quantile_pos_test.flux",
						Source: "\"testing\"",
						Start: ast.Position{
							Column: 8,
							Line:   4,
						},
					},
				},
				Value: "testing",
			},
		}, &ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 25,
						Line:   5,
					},
					File:   "quantile_pos_test.flux",
					Source: "import \"internal/promql\"",
					Start: ast.Position{
						Column: 1,
						Line:   5,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 25,
							Line:   5,
						},
						File:   "quantile_pos_test.flux",
						Source: "\"internal/promql\"",
						Start: ast.Position{
							Column: 8,
							Line:   5,
						},
					},
				},
				Value: "internal/promql",
			},
		}},
		Metadata: "parser-type=rust",
		Name:     "quantile_pos_test.flux",
		Package: &ast.PackageClause{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 20,
						Line:   1,
					},
					File:   "quantile_pos_test.flux",
					Source: "package promql_test",
					Start: ast.Position{
						Column: 1,
						Line:   1,
					},
				},
			},
			Name: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 20,
							Line:   1,
						},
						File:   "quantile_pos_test.flux",
						Source: "promql_test",
						Start: ast.Position{
							Column: 9,
							Line:   1,
						},
					},
				},
				Name: "promql_test",
			},
		},
	}, &ast.File{
		BaseNode: ast.BaseNode{
			Comments: nil,
			Errors:   nil,
			Loc: &ast.SourceLocation{
				End: ast.Position{
					Column: 120,
					Line:   44,
				},
				File:   "quantile_test.flux",
				Source: "package promql_test\n\n\nimport \"testing\"\nimport \"internal/promql\"\n\noption now = () => 2030-01-01T00:00:00Z\n\ninData =\n    \"\n#datatype,string,long,string,string,string,dateTime:RFC3339,double\n#group,false,false,true,true,true,false,false\n#default,_result,,,,,,\n,result,table,_measurement,_field,t0,_time,_value\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:44:58Z,7.940387008821781\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:08Z,49.460104214779086\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:18Z,-36.564150808873954\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:28Z,34.319039251798635\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:38Z,79.27019811403116\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:48Z,41.91029522104053\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:44:58Z,-61.68790887989735\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:08Z,-6.3173755351186465\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:18Z,-26.049728557657513\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:28Z,114.285955884979\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:38Z,16.140262630578995\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:48Z,29.50336437998469\n\"\noutData =\n    \"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,string,string,double\n#group,false,false,true,true,true,true,true,false\n#default,_result,,,,,,,\n,result,table,_start,_stop,_measurement,_field,t0,_value\n,,2,2019-01-01T00:00:00Z,2030-01-01T00:00:00Z,Reiva,OAOJWe7,BnR,47.57265196634445\n,,3,2019-01-01T00:00:00Z,2030-01-01T00:00:00Z,Reiva,OAOJWe7,qCnJDC,26.162588942633263\n\"\n\n// testing normal range value\nt_quantile = (tables=<-) =>\n    tables\n        |> range(start: 2019-01-01T00:00:00Z)\n        |> promql.quantile(q: 0.75)\n\ntest _quantile = () => ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_quantile})",
				Start: ast.Position{
					Column: 1,
					Line:   1,
				},
			},
		},
		Body: []ast.Statement{&ast.OptionStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 40,
							Line:   7,
						},
						File:   "quantile_test.flux",
						Source: "now = () => 2030-01-01T00:00:00Z",
						Start: ast.Position{
							Column: 8,
							Line:   7,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 11,
								Line:   7,
							},
							File:   "quantile_test.flux",
							Source: "now",
							Start: ast.Position{
								Column: 8,
								Line:   7,
							},
						},
					},
					Name: "now",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 40,
								Line:   7,
							},
							File:   "quantile_test.flux",
							Source: "() => 2030-01-01T00:00:00Z",
							Start: ast.Position{
								Column: 14,
								Line:   7,
							},
						},
					},
					Body: &ast.DateTimeLiteral{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 40,
									Line:   7,
								},
								File:   "quantile_test.flux",
								Source: "2030-01-01T00:00:00Z",
								Start: ast.Position{
									Column: 20,
									Line:   7,
								},
							},
						},
						Value: parser.MustParseTime("2030-01-01T00:00:00Z"),
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 40,
						Line:   7,
					},
					File:   "quantile_test.flux",
					Source: "option now = () => 2030-01-01T00:00:00Z",
					Start: ast.Position{
						Column: 1,
						Line:   7,
					},
				},
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   27,
					},
					File:   "quantile_test.flux",
					Source: "inData =\n    \"\n#datatype,string,long,string,string,string,dateTime:RFC3339,double\n#group,false,false,true,true,true,false,false\n#default,_result,,,,,,\n,result,table,_measurement,_field,t0,_time,_value\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:44:58Z,7.940387008821781\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:08Z,49.460104214779086\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:18Z,-36.564150808873954\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:28Z,34.319039251798635\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:38Z,79.27019811403116\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:48Z,41.91029522104053\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:44:58Z,-61.68790887989735\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:08Z,-6.3173755351186465\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:18Z,-26.049728557657513\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:28Z,114.285955884979\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:38Z,16.140262630578995\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:48Z,29.50336437998469\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   9,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 7,
							Line:   9,
						},
						File:   "quantile_test.flux",
						Source: "inData",
						Start: ast.Position{
							Column: 1,
							Line:   9,
						},
					},
				},
				Name: "inData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   27,
						},
						File:   "quantile_test.flux",
						Source: "\"\n#datatype,string,long,string,string,string,dateTime:RFC3339,double\n#group,false,false,true,true,true,false,false\n#default,_result,,,,,,\n,result,table,_measurement,_field,t0,_time,_value\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:44:58Z,7.940387008821781\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:08Z,49.460104214779086\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:18Z,-36.564150808873954\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:28Z,34.319039251798635\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:38Z,79.27019811403116\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:48Z,41.91029522104053\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:44:58Z,-61.68790887989735\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:08Z,-6.3173755351186465\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:18Z,-26.049728557657513\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:28Z,114.285955884979\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:38Z,16.140262630578995\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:48Z,29.50336437998469\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   10,
						},
					},
				},
				Value: "\n#datatype,string,long,string,string,string,dateTime:RFC3339,double\n#group,false,false,true,true,true,false,false\n#default,_result,,,,,,\n,result,table,_measurement,_field,t0,_time,_value\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:44:58Z,7.940387008821781\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:08Z,49.460104214779086\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:18Z,-36.564150808873954\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:28Z,34.319039251798635\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:38Z,79.27019811403116\n,,2,Reiva,OAOJWe7,BnR,2019-01-09T19:45:48Z,41.91029522104053\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:44:58Z,-61.68790887989735\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:08Z,-6.3173755351186465\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:18Z,-26.049728557657513\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:28Z,114.285955884979\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:38Z,16.140262630578995\n,,3,Reiva,OAOJWe7,qCnJDC,2019-01-09T19:45:48Z,29.50336437998469\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   36,
					},
					File:   "quantile_test.flux",
					Source: "outData =\n    \"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,string,string,double\n#group,false,false,true,true,true,true,true,false\n#default,_result,,,,,,,\n,result,table,_start,_stop,_measurement,_field,t0,_value\n,,2,2019-01-01T00:00:00Z,2030-01-01T00:00:00Z,Reiva,OAOJWe7,BnR,47.57265196634445\n,,3,2019-01-01T00:00:00Z,2030-01-01T00:00:00Z,Reiva,OAOJWe7,qCnJDC,26.162588942633263\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   28,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 8,
							Line:   28,
						},
						File:   "quantile_test.flux",
						Source: "outData",
						Start: ast.Position{
							Column: 1,
							Line:   28,
						},
					},
				},
				Name: "outData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   36,
						},
						File:   "quantile_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,string,string,double\n#group,false,false,true,true,true,true,true,false\n#default,_result,,,,,,,\n,result,table,_start,_stop,_measurement,_field,t0,_value\n,,2,2019-01-01T00:00:00Z,2030-01-01T00:00:00Z,Reiva,OAOJWe7,BnR,47.57265196634445\n,,3,2019-01-01T00:00:00Z,2030-01-01T00:00:00Z,Reiva,OAOJWe7,qCnJDC,26.162588942633263\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   29,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,string,string,double\n#group,false,false,true,true,true,true,true,false\n#default,_result,,,,,,,\n,result,table,_start,_stop,_measurement,_field,t0,_value\n,,2,2019-01-01T00:00:00Z,2030-01-01T00:00:00Z,Reiva,OAOJWe7,BnR,47.57265196634445\n,,3,2019-01-01T00:00:00Z,2030-01-01T00:00:00Z,Reiva,OAOJWe7,qCnJDC,26.162588942633263\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 36,
						Line:   42,
					},
					File:   "quantile_test.flux",
					Source: "t_quantile = (tables=<-) =>\n    tables\n        |> range(start: 2019-01-01T00:00:00Z)\n        |> promql.quantile(q: 0.75)",
					Start: ast.Position{
						Column: 1,
						Line:   39,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: []ast.Comment{ast.Comment{Text: "// testing normal range value\n"}},
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 11,
							Line:   39,
						},
						File:   "quantile_test.flux",
						Source: "t_quantile",
						Start: ast.Position{
							Column: 1,
							Line:   39,
						},
					},
				},
				Name: "t_quantile",
			},
			Init: &ast.FunctionExpression{
				Arrow: nil,
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 36,
							Line:   42,
						},
						File:   "quantile_test.flux",
						Source: "(tables=<-) =>\n    tables\n        |> range(start: 2019-01-01T00:00:00Z)\n        |> promql.quantile(q: 0.75)",
						Start: ast.Position{
							Column: 14,
							Line:   39,
						},
					},
				},
				Body: &ast.PipeExpression{
					Argument: &ast.PipeExpression{
						Argument: &ast.Identifier{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 11,
										Line:   40,
									},
									File:   "quantile_test.flux",
									Source: "tables",
									Start: ast.Position{
										Column: 5,
										Line:   40,
									},
								},
							},
							Name: "tables",
						},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 46,
									Line:   41,
								},
								File:   "quantile_test.flux",
								Source: "tables\n        |> range(start: 2019-01-01T00:00:00Z)",
								Start: ast.Position{
									Column: 5,
									Line:   40,
								},
							},
						},
						Call: &ast.CallExpression{
							Arguments: []ast.Expression{&ast.ObjectExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 45,
											Line:   41,
										},
										File:   "quantile_test.flux",
										Source: "start: 2019-01-01T00:00:00Z",
										Start: ast.Position{
											Column: 18,
											Line:   41,
										},
									},
								},
								Lbrace: nil,
								Properties: []*ast.Property{&ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   41,
											},
											File:   "quantile_test.flux",
											Source: "start: 2019-01-01T00:00:00Z",
											Start: ast.Position{
												Column: 18,
												Line:   41,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 23,
													Line:   41,
												},
												File:   "quantile_test.flux",
												Source: "start",
												Start: ast.Position{
													Column: 18,
													Line:   41,
												},
											},
										},
										Name: "start",
									},
									Separator: nil,
									Value: &ast.DateTimeLiteral{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   41,
												},
												File:   "quantile_test.flux",
												Source: "2019-01-01T00:00:00Z",
												Start: ast.Position{
													Column: 25,
													Line:   41,
												},
											},
										},
										Value: parser.MustParseTime("2019-01-01T00:00:00Z"),
									},
								}},
								Rbrace: nil,
								With:   nil,
							}},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 46,
										Line:   41,
									},
									File:   "quantile_test.flux",
									Source: "range(start: 2019-01-01T00:00:00Z)",
									Start: ast.Position{
										Column: 12,
										Line:   41,
									},
								},
							},
							Callee: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 17,
											Line:   41,
										},
										File:   "quantile_test.flux",
										Source: "range",
										Start: ast.Position{
											Column: 12,
											Line:   41,
										},
									},
								},
								Name: "range",
							},
							Lparen: nil,
							Rparen: nil,
						},
					},
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 36,
								Line:   42,
							},
							File:   "quantile_test.flux",
							Source: "tables\n        |> range(start: 2019-01-01T00:00:00Z)\n        |> promql.quantile(q: 0.75)",
							Start: ast.Position{
								Column: 5,
								Line:   40,
							},
						},
					},
					Call: &ast.CallExpression{
						Arguments: []ast.Expression{&ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 35,
										Line:   42,
									},
									File:   "quantile_test.flux",
									Source: "q: 0.75",
									Start: ast.Position{
										Column: 28,
										Line:   42,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 35,
											Line:   42,
										},
										File:   "quantile_test.flux",
										Source: "q: 0.75",
										Start: ast.Position{
											Column: 28,
											Line:   42,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 29,
												Line:   42,
											},
											File:   "quantile_test.flux",
											Source: "q",
											Start: ast.Position{
												Column: 28,
												Line:   42,
											},
										},
									},
									Name: "q",
								},
								Separator: nil,
								Value: &ast.FloatLiteral{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 35,
												Line:   42,
											},
											File:   "quantile_test.flux",
											Source: "0.75",
											Start: ast.Position{
												Column: 31,
												Line:   42,
											},
										},
									},
									Value: 0.75,
								},
							}},
							Rbrace: nil,
							With:   nil,
						}},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 36,
									Line:   42,
								},
								File:   "quantile_test.flux",
								Source: "promql.quantile(q: 0.75)",
								Start: ast.Position{
									Column: 12,
									Line:   42,
								},
							},
						},
						Callee: &ast.MemberExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 27,
										Line:   42,
									},
									File:   "quantile_test.flux",
									Source: "promql.quantile",
									Start: ast.Position{
										Column: 12,
										Line:   42,
									},
								},
							},
							Lbrack: nil,
							Object: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 18,
											Line:   42,
										},
										File:   "quantile_test.flux",
										Source: "promql",
										Start: ast.Position{
											Column: 12,
											Line:   42,
										},
									},
								},
								Name: "promql",
							},
							Property: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 27,
											Line:   42,
										},
										File:   "quantile_test.flux",
										Source: "quantile",
										Start: ast.Position{
											Column: 19,
											Line:   42,
										},
									},
								},
								Name: "quantile",
							},
							Rbrack: nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
				},
				Lparen: nil,
				Params: []*ast.Property{&ast.Property{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 24,
								Line:   39,
							},
							File:   "quantile_test.flux",
							Source: "tables=<-",
							Start: ast.Position{
								Column: 15,
								Line:   39,
							},
						},
					},
					Comma: nil,
					Key: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 21,
									Line:   39,
								},
								File:   "quantile_test.flux",
								Source: "tables",
								Start: ast.Position{
									Column: 15,
									Line:   39,
								},
							},
						},
						Name: "tables",
					},
					Separator: nil,
					Value: &ast.PipeLiteral{BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 24,
								Line:   39,
							},
							File:   "quantile_test.flux",
							Source: "<-",
							Start: ast.Position{
								Column: 22,
								Line:   39,
							},
						},
					}},
				}},
				Rparan: nil,
			},
		}, &ast.TestStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 120,
							Line:   44,
						},
						File:   "quantile_test.flux",
						Source: "_quantile = () => ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_quantile})",
						Start: ast.Position{
							Column: 6,
							Line:   44,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 15,
								Line:   44,
							},
							File:   "quantile_test.flux",
							Source: "_quantile",
							Start: ast.Position{
								Column: 6,
								Line:   44,
							},
						},
					},
					Name: "_quantile",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 120,
								Line:   44,
							},
							File:   "quantile_test.flux",
							Source: "() => ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_quantile})",
							Start: ast.Position{
								Column: 18,
								Line:   44,
							},
						},
					},
					Body: &ast.ParenExpression{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 120,
									Line:   44,
								},
								File:   "quantile_test.flux",
								Source: "({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_quantile})",
								Start: ast.Position{
									Column: 24,
									Line:   44,
								},
							},
						},
						Expression: &ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 119,
										Line:   44,
									},
									File:   "quantile_test.flux",
									Source: "{input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_quantile}",
									Start: ast.Position{
										Column: 25,
										Line:   44,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 65,
											Line:   44,
										},
										File:   "quantile_test.flux",
										Source: "input: testing.loadStorage(csv: inData)",
										Start: ast.Position{
											Column: 26,
											Line:   44,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 31,
												Line:   44,
											},
											File:   "quantile_test.flux",
											Source: "input",
											Start: ast.Position{
												Column: 26,
												Line:   44,
											},
										},
									},
									Name: "input",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 64,
													Line:   44,
												},
												File:   "quantile_test.flux",
												Source: "csv: inData",
												Start: ast.Position{
													Column: 53,
													Line:   44,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 64,
														Line:   44,
													},
													File:   "quantile_test.flux",
													Source: "csv: inData",
													Start: ast.Position{
														Column: 53,
														Line:   44,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 56,
															Line:   44,
														},
														File:   "quantile_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 53,
															Line:   44,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 64,
															Line:   44,
														},
														File:   "quantile_test.flux",
														Source: "inData",
														Start: ast.Position{
															Column: 58,
															Line:   44,
														},
													},
												},
												Name: "inData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 65,
												Line:   44,
											},
											File:   "quantile_test.flux",
											Source: "testing.loadStorage(csv: inData)",
											Start: ast.Position{
												Column: 33,
												Line:   44,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 52,
													Line:   44,
												},
												File:   "quantile_test.flux",
												Source: "testing.loadStorage",
												Start: ast.Position{
													Column: 33,
													Line:   44,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 40,
														Line:   44,
													},
													File:   "quantile_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 33,
														Line:   44,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 52,
														Line:   44,
													},
													File:   "quantile_test.flux",
													Source: "loadStorage",
													Start: ast.Position{
														Column: 41,
														Line:   44,
													},
												},
											},
											Name: "loadStorage",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 102,
											Line:   44,
										},
										File:   "quantile_test.flux",
										Source: "want: testing.loadMem(csv: outData)",
										Start: ast.Position{
											Column: 67,
											Line:   44,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 71,
												Line:   44,
											},
											File:   "quantile_test.flux",
											Source: "want",
											Start: ast.Position{
												Column: 67,
												Line:   44,
											},
										},
									},
									Name: "want",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 101,
													Line:   44,
												},
												File:   "quantile_test.flux",
												Source: "csv: outData",
												Start: ast.Position{
													Column: 89,
													Line:   44,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 101,
														Line:   44,
													},
													File:   "quantile_test.flux",
													Source: "csv: outData",
													Start: ast.Position{
														Column: 89,
														Line:   44,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 92,
															Line:   44,
														},
														File:   "quantile_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 89,
															Line:   44,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 101,
															Line:   44,
														},
														File:   "quantile_test.flux",
														Source: "outData",
														Start: ast.Position{
															Column: 94,
															Line:   44,
														},
													},
												},
												Name: "outData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 102,
												Line:   44,
											},
											File:   "quantile_test.flux",
											Source: "testing.loadMem(csv: outData)",
											Start: ast.Position{
												Column: 73,
												Line:   44,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 88,
													Line:   44,
												},
												File:   "quantile_test.flux",
												Source: "testing.loadMem",
												Start: ast.Position{
													Column: 73,
													Line:   44,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 80,
														Line:   44,
													},
													File:   "quantile_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 73,
														Line:   44,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 88,
														Line:   44,
													},
													File:   "quantile_test.flux",
													Source: "loadMem",
													Start: ast.Position{
														Column: 81,
														Line:   44,
													},
												},
											},
											Name: "loadMem",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 118,
											Line:   44,
										},
										File:   "quantile_test.flux",
										Source: "fn: t_quantile",
										Start: ast.Position{
											Column: 104,
											Line:   44,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 106,
												Line:   44,
											},
											File:   "quantile_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 104,
												Line:   44,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 118,
												Line:   44,
											},
											File:   "quantile_test.flux",
											Source: "t_quantile",
											Start: ast.Position{
												Column: 108,
												Line:   44,
											},
										},
									},
									Name: "t_quantile",
								},
							}},
							Rbrace: nil,
							With:   nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 120,
						Line:   44,
					},
					File:   "quantile_test.flux",
					Source: "test _quantile = () => ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_quantile})",
					Start: ast.Position{
						Column: 1,
						Line:   44,
					},
				},
			},
		}},
		Eof: nil,
		Imports: []*ast.ImportDeclaration{&ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 17,
						Line:   4,
					},
					File:   "quantile_test.flux",
					Source: "import \"testing\"",
					Start: ast.Position{
						Column: 1,
						Line:   4,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 17,
							Line:   4,
						},
						File:   "quantile_test.flux",
						Source: "\"testing\"",
						Start: ast.Position{
							Column: 8,
							Line:   4,
						},
					},
				},
				Value: "testing",
			},
		}, &ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 25,
						Line:   5,
					},
					File:   "quantile_test.flux",
					Source: "import \"internal/promql\"",
					Start: ast.Position{
						Column: 1,
						Line:   5,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 25,
							Line:   5,
						},
						File:   "quantile_test.flux",
						Source: "\"internal/promql\"",
						Start: ast.Position{
							Column: 8,
							Line:   5,
						},
					},
				},
				Value: "internal/promql",
			},
		}},
		Metadata: "parser-type=rust",
		Name:     "quantile_test.flux",
		Package: &ast.PackageClause{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 20,
						Line:   1,
					},
					File:   "quantile_test.flux",
					Source: "package promql_test",
					Start: ast.Position{
						Column: 1,
						Line:   1,
					},
				},
			},
			Name: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 20,
							Line:   1,
						},
						File:   "quantile_test.flux",
						Source: "promql_test",
						Start: ast.Position{
							Column: 9,
							Line:   1,
						},
					},
				},
				Name: "promql_test",
			},
		},
	}, &ast.File{
		BaseNode: ast.BaseNode{
			Comments: nil,
			Errors:   nil,
			Loc: &ast.SourceLocation{
				End: ast.Position{
					Column: 116,
					Line:   49,
				},
				File:   "resets_test.flux",
				Source: "package promql_test\n\n\nimport \"testing\"\nimport \"internal/promql\"\n\noption now = () => 2030-01-01T00:00:00Z\n\ninData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,2,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,2,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,2,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,1,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,2,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,3,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,1,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,2,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,1,prometheus\n\"\noutData =\n    \"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-01T00:00:00Z,2030-01-01T00:00:00Z,metric_name1,0,prometheus\n,,1,2018-12-01T00:00:00Z,2030-01-01T00:00:00Z,metric_name2,0,prometheus\n,,2,2018-12-01T00:00:00Z,2030-01-01T00:00:00Z,metric_name3,2,prometheus\n\"\nt_resets = (table=<-) =>\n    table\n        |> range(start: 2018-12-01T00:00:00Z)\n        |> promql.resets()\n\ntest _resets = () => ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_resets})",
				Start: ast.Position{
					Column: 1,
					Line:   1,
				},
			},
		},
		Body: []ast.Statement{&ast.OptionStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 40,
							Line:   7,
						},
						File:   "resets_test.flux",
						Source: "now = () => 2030-01-01T00:00:00Z",
						Start: ast.Position{
							Column: 8,
							Line:   7,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 11,
								Line:   7,
							},
							File:   "resets_test.flux",
							Source: "now",
							Start: ast.Position{
								Column: 8,
								Line:   7,
							},
						},
					},
					Name: "now",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 40,
								Line:   7,
							},
							File:   "resets_test.flux",
							Source: "() => 2030-01-01T00:00:00Z",
							Start: ast.Position{
								Column: 14,
								Line:   7,
							},
						},
					},
					Body: &ast.DateTimeLiteral{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 40,
									Line:   7,
								},
								File:   "resets_test.flux",
								Source: "2030-01-01T00:00:00Z",
								Start: ast.Position{
									Column: 20,
									Line:   7,
								},
							},
						},
						Value: parser.MustParseTime("2030-01-01T00:00:00Z"),
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 40,
						Line:   7,
					},
					File:   "resets_test.flux",
					Source: "option now = () => 2030-01-01T00:00:00Z",
					Start: ast.Position{
						Column: 1,
						Line:   7,
					},
				},
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   33,
					},
					File:   "resets_test.flux",
					Source: "inData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,2,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,2,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,2,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,1,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,2,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,3,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,1,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,2,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,1,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   9,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 7,
							Line:   9,
						},
						File:   "resets_test.flux",
						Source: "inData",
						Start: ast.Position{
							Column: 1,
							Line:   9,
						},
					},
				},
				Name: "inData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   33,
						},
						File:   "resets_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,2,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,2,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,2,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,1,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,2,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,3,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,1,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,2,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,1,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   10,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-18T20:52:33Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:43Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:52:53Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:03Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:13Z,metric_name1,1,prometheus\n,,0,2018-12-18T20:53:23Z,metric_name1,1,prometheus\n,,1,2018-12-18T20:52:33Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:43Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:52:53Z,metric_name2,1,prometheus\n,,1,2018-12-18T20:53:03Z,metric_name2,2,prometheus\n,,1,2018-12-18T20:53:13Z,metric_name2,2,prometheus\n,,1,2018-12-18T20:53:23Z,metric_name2,2,prometheus\n,,2,2018-12-18T20:52:33Z,metric_name3,1,prometheus\n,,2,2018-12-18T20:52:43Z,metric_name3,2,prometheus\n,,2,2018-12-18T20:52:53Z,metric_name3,3,prometheus\n,,2,2018-12-18T20:53:03Z,metric_name3,1,prometheus\n,,2,2018-12-18T20:53:13Z,metric_name3,2,prometheus\n,,2,2018-12-18T20:53:23Z,metric_name3,1,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   43,
					},
					File:   "resets_test.flux",
					Source: "outData =\n    \"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-01T00:00:00Z,2030-01-01T00:00:00Z,metric_name1,0,prometheus\n,,1,2018-12-01T00:00:00Z,2030-01-01T00:00:00Z,metric_name2,0,prometheus\n,,2,2018-12-01T00:00:00Z,2030-01-01T00:00:00Z,metric_name3,2,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   34,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 8,
							Line:   34,
						},
						File:   "resets_test.flux",
						Source: "outData",
						Start: ast.Position{
							Column: 1,
							Line:   34,
						},
					},
				},
				Name: "outData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   43,
						},
						File:   "resets_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-01T00:00:00Z,2030-01-01T00:00:00Z,metric_name1,0,prometheus\n,,1,2018-12-01T00:00:00Z,2030-01-01T00:00:00Z,metric_name2,0,prometheus\n,,2,2018-12-01T00:00:00Z,2030-01-01T00:00:00Z,metric_name3,2,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   35,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,string,double,string\n#group,false,false,true,true,true,false,true\n#default,outData,,,,,,\n,result,table,_start,_stop,_field,_value,_measurement\n,,0,2018-12-01T00:00:00Z,2030-01-01T00:00:00Z,metric_name1,0,prometheus\n,,1,2018-12-01T00:00:00Z,2030-01-01T00:00:00Z,metric_name2,0,prometheus\n,,2,2018-12-01T00:00:00Z,2030-01-01T00:00:00Z,metric_name3,2,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 27,
						Line:   47,
					},
					File:   "resets_test.flux",
					Source: "t_resets = (table=<-) =>\n    table\n        |> range(start: 2018-12-01T00:00:00Z)\n        |> promql.resets()",
					Start: ast.Position{
						Column: 1,
						Line:   44,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 9,
							Line:   44,
						},
						File:   "resets_test.flux",
						Source: "t_resets",
						Start: ast.Position{
							Column: 1,
							Line:   44,
						},
					},
				},
				Name: "t_resets",
			},
			Init: &ast.FunctionExpression{
				Arrow: nil,
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 27,
							Line:   47,
						},
						File:   "resets_test.flux",
						Source: "(table=<-) =>\n    table\n        |> range(start: 2018-12-01T00:00:00Z)\n        |> promql.resets()",
						Start: ast.Position{
							Column: 12,
							Line:   44,
						},
					},
				},
				Body: &ast.PipeExpression{
					Argument: &ast.PipeExpression{
						Argument: &ast.Identifier{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 10,
										Line:   45,
									},
									File:   "resets_test.flux",
									Source: "table",
									Start: ast.Position{
										Column: 5,
										Line:   45,
									},
								},
							},
							Name: "table",
						},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 46,
									Line:   46,
								},
								File:   "resets_test.flux",
								Source: "table\n        |> range(start: 2018-12-01T00:00:00Z)",
								Start: ast.Position{
									Column: 5,
									Line:   45,
								},
							},
						},
						Call: &ast.CallExpression{
							Arguments: []ast.Expression{&ast.ObjectExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 45,
											Line:   46,
										},
										File:   "resets_test.flux",
										Source: "start: 2018-12-01T00:00:00Z",
										Start: ast.Position{
											Column: 18,
											Line:   46,
										},
									},
								},
								Lbrace: nil,
								Properties: []*ast.Property{&ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   46,
											},
											File:   "resets_test.flux",
											Source: "start: 2018-12-01T00:00:00Z",
											Start: ast.Position{
												Column: 18,
												Line:   46,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 23,
													Line:   46,
												},
												File:   "resets_test.flux",
												Source: "start",
												Start: ast.Position{
													Column: 18,
													Line:   46,
												},
											},
										},
										Name: "start",
									},
									Separator: nil,
									Value: &ast.DateTimeLiteral{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   46,
												},
												File:   "resets_test.flux",
												Source: "2018-12-01T00:00:00Z",
												Start: ast.Position{
													Column: 25,
													Line:   46,
												},
											},
										},
										Value: parser.MustParseTime("2018-12-01T00:00:00Z"),
									},
								}},
								Rbrace: nil,
								With:   nil,
							}},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 46,
										Line:   46,
									},
									File:   "resets_test.flux",
									Source: "range(start: 2018-12-01T00:00:00Z)",
									Start: ast.Position{
										Column: 12,
										Line:   46,
									},
								},
							},
							Callee: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 17,
											Line:   46,
										},
										File:   "resets_test.flux",
										Source: "range",
										Start: ast.Position{
											Column: 12,
											Line:   46,
										},
									},
								},
								Name: "range",
							},
							Lparen: nil,
							Rparen: nil,
						},
					},
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 27,
								Line:   47,
							},
							File:   "resets_test.flux",
							Source: "table\n        |> range(start: 2018-12-01T00:00:00Z)\n        |> promql.resets()",
							Start: ast.Position{
								Column: 5,
								Line:   45,
							},
						},
					},
					Call: &ast.CallExpression{
						Arguments: nil,
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 27,
									Line:   47,
								},
								File:   "resets_test.flux",
								Source: "promql.resets()",
								Start: ast.Position{
									Column: 12,
									Line:   47,
								},
							},
						},
						Callee: &ast.MemberExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 25,
										Line:   47,
									},
									File:   "resets_test.flux",
									Source: "promql.resets",
									Start: ast.Position{
										Column: 12,
										Line:   47,
									},
								},
							},
							Lbrack: nil,
							Object: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 18,
											Line:   47,
										},
										File:   "resets_test.flux",
										Source: "promql",
										Start: ast.Position{
											Column: 12,
											Line:   47,
										},
									},
								},
								Name: "promql",
							},
							Property: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 25,
											Line:   47,
										},
										File:   "resets_test.flux",
										Source: "resets",
										Start: ast.Position{
											Column: 19,
											Line:   47,
										},
									},
								},
								Name: "resets",
							},
							Rbrack: nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
				},
				Lparen: nil,
				Params: []*ast.Property{&ast.Property{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 21,
								Line:   44,
							},
							File:   "resets_test.flux",
							Source: "table=<-",
							Start: ast.Position{
								Column: 13,
								Line:   44,
							},
						},
					},
					Comma: nil,
					Key: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 18,
									Line:   44,
								},
								File:   "resets_test.flux",
								Source: "table",
								Start: ast.Position{
									Column: 13,
									Line:   44,
								},
							},
						},
						Name: "table",
					},
					Separator: nil,
					Value: &ast.PipeLiteral{BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 21,
								Line:   44,
							},
							File:   "resets_test.flux",
							Source: "<-",
							Start: ast.Position{
								Column: 19,
								Line:   44,
							},
						},
					}},
				}},
				Rparan: nil,
			},
		}, &ast.TestStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 116,
							Line:   49,
						},
						File:   "resets_test.flux",
						Source: "_resets = () => ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_resets})",
						Start: ast.Position{
							Column: 6,
							Line:   49,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 13,
								Line:   49,
							},
							File:   "resets_test.flux",
							Source: "_resets",
							Start: ast.Position{
								Column: 6,
								Line:   49,
							},
						},
					},
					Name: "_resets",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 116,
								Line:   49,
							},
							File:   "resets_test.flux",
							Source: "() => ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_resets})",
							Start: ast.Position{
								Column: 16,
								Line:   49,
							},
						},
					},
					Body: &ast.ParenExpression{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 116,
									Line:   49,
								},
								File:   "resets_test.flux",
								Source: "({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_resets})",
								Start: ast.Position{
									Column: 22,
									Line:   49,
								},
							},
						},
						Expression: &ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 115,
										Line:   49,
									},
									File:   "resets_test.flux",
									Source: "{input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_resets}",
									Start: ast.Position{
										Column: 23,
										Line:   49,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 63,
											Line:   49,
										},
										File:   "resets_test.flux",
										Source: "input: testing.loadStorage(csv: inData)",
										Start: ast.Position{
											Column: 24,
											Line:   49,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 29,
												Line:   49,
											},
											File:   "resets_test.flux",
											Source: "input",
											Start: ast.Position{
												Column: 24,
												Line:   49,
											},
										},
									},
									Name: "input",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 62,
													Line:   49,
												},
												File:   "resets_test.flux",
												Source: "csv: inData",
												Start: ast.Position{
													Column: 51,
													Line:   49,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 62,
														Line:   49,
													},
													File:   "resets_test.flux",
													Source: "csv: inData",
													Start: ast.Position{
														Column: 51,
														Line:   49,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 54,
															Line:   49,
														},
														File:   "resets_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 51,
															Line:   49,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 62,
															Line:   49,
														},
														File:   "resets_test.flux",
														Source: "inData",
														Start: ast.Position{
															Column: 56,
															Line:   49,
														},
													},
												},
												Name: "inData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 63,
												Line:   49,
											},
											File:   "resets_test.flux",
											Source: "testing.loadStorage(csv: inData)",
											Start: ast.Position{
												Column: 31,
												Line:   49,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 50,
													Line:   49,
												},
												File:   "resets_test.flux",
												Source: "testing.loadStorage",
												Start: ast.Position{
													Column: 31,
													Line:   49,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 38,
														Line:   49,
													},
													File:   "resets_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 31,
														Line:   49,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 50,
														Line:   49,
													},
													File:   "resets_test.flux",
													Source: "loadStorage",
													Start: ast.Position{
														Column: 39,
														Line:   49,
													},
												},
											},
											Name: "loadStorage",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 100,
											Line:   49,
										},
										File:   "resets_test.flux",
										Source: "want: testing.loadMem(csv: outData)",
										Start: ast.Position{
											Column: 65,
											Line:   49,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 69,
												Line:   49,
											},
											File:   "resets_test.flux",
											Source: "want",
											Start: ast.Position{
												Column: 65,
												Line:   49,
											},
										},
									},
									Name: "want",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 99,
													Line:   49,
												},
												File:   "resets_test.flux",
												Source: "csv: outData",
												Start: ast.Position{
													Column: 87,
													Line:   49,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 99,
														Line:   49,
													},
													File:   "resets_test.flux",
													Source: "csv: outData",
													Start: ast.Position{
														Column: 87,
														Line:   49,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 90,
															Line:   49,
														},
														File:   "resets_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 87,
															Line:   49,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 99,
															Line:   49,
														},
														File:   "resets_test.flux",
														Source: "outData",
														Start: ast.Position{
															Column: 92,
															Line:   49,
														},
													},
												},
												Name: "outData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 100,
												Line:   49,
											},
											File:   "resets_test.flux",
											Source: "testing.loadMem(csv: outData)",
											Start: ast.Position{
												Column: 71,
												Line:   49,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 86,
													Line:   49,
												},
												File:   "resets_test.flux",
												Source: "testing.loadMem",
												Start: ast.Position{
													Column: 71,
													Line:   49,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 78,
														Line:   49,
													},
													File:   "resets_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 71,
														Line:   49,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 86,
														Line:   49,
													},
													File:   "resets_test.flux",
													Source: "loadMem",
													Start: ast.Position{
														Column: 79,
														Line:   49,
													},
												},
											},
											Name: "loadMem",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 114,
											Line:   49,
										},
										File:   "resets_test.flux",
										Source: "fn: t_resets",
										Start: ast.Position{
											Column: 102,
											Line:   49,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 104,
												Line:   49,
											},
											File:   "resets_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 102,
												Line:   49,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 114,
												Line:   49,
											},
											File:   "resets_test.flux",
											Source: "t_resets",
											Start: ast.Position{
												Column: 106,
												Line:   49,
											},
										},
									},
									Name: "t_resets",
								},
							}},
							Rbrace: nil,
							With:   nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 116,
						Line:   49,
					},
					File:   "resets_test.flux",
					Source: "test _resets = () => ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_resets})",
					Start: ast.Position{
						Column: 1,
						Line:   49,
					},
				},
			},
		}},
		Eof: nil,
		Imports: []*ast.ImportDeclaration{&ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 17,
						Line:   4,
					},
					File:   "resets_test.flux",
					Source: "import \"testing\"",
					Start: ast.Position{
						Column: 1,
						Line:   4,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 17,
							Line:   4,
						},
						File:   "resets_test.flux",
						Source: "\"testing\"",
						Start: ast.Position{
							Column: 8,
							Line:   4,
						},
					},
				},
				Value: "testing",
			},
		}, &ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 25,
						Line:   5,
					},
					File:   "resets_test.flux",
					Source: "import \"internal/promql\"",
					Start: ast.Position{
						Column: 1,
						Line:   5,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 25,
							Line:   5,
						},
						File:   "resets_test.flux",
						Source: "\"internal/promql\"",
						Start: ast.Position{
							Column: 8,
							Line:   5,
						},
					},
				},
				Value: "internal/promql",
			},
		}},
		Metadata: "parser-type=rust",
		Name:     "resets_test.flux",
		Package: &ast.PackageClause{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 20,
						Line:   1,
					},
					File:   "resets_test.flux",
					Source: "package promql_test",
					Start: ast.Position{
						Column: 1,
						Line:   1,
					},
				},
			},
			Name: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 20,
							Line:   1,
						},
						File:   "resets_test.flux",
						Source: "promql_test",
						Start: ast.Position{
							Column: 9,
							Line:   1,
						},
					},
				},
				Name: "promql_test",
			},
		},
	}, &ast.File{
		BaseNode: ast.BaseNode{
			Comments: nil,
			Errors:   nil,
			Loc: &ast.SourceLocation{
				End: ast.Position{
					Column: 102,
					Line:   42,
				},
				File:   "timestamp_test.flux",
				Source: "package promql_test\n\n\nimport \"testing\"\nimport \"internal/promql\"\n\noption now = () => 2030-01-01T00:00:00Z\n\ninData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-01T20:00:10.123Z,metric_name,0,prometheus\n,,0,2018-12-02T20:00:20.123Z,metric_name,0,prometheus\n,,0,2018-12-03T20:00:30.123Z,metric_name,0,prometheus\n,,0,2018-12-29T20:00:40.123Z,metric_name,0,prometheus\n,,0,2018-12-30T20:00:50.123Z,metric_name,0,prometheus\n,,0,2018-12-31T20:01:00.123Z,metric_name,0,prometheus\n\"\noutData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,outData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-01T20:00:10.123Z,metric_name,1543694410.123,prometheus\n,,0,2018-12-02T20:00:20.123Z,metric_name,1543780820.123,prometheus\n,,0,2018-12-03T20:00:30.123Z,metric_name,1543867230.123,prometheus\n,,0,2018-12-29T20:00:40.123Z,metric_name,1546113640.123,prometheus\n,,0,2018-12-30T20:00:50.123Z,metric_name,1546200050.123,prometheus\n,,0,2018-12-31T20:01:00.123Z,metric_name,1546286460.123,prometheus\n\"\nt_timestamp = (table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()\n\ntest _timestamp = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_timestamp})",
				Start: ast.Position{
					Column: 1,
					Line:   1,
				},
			},
		},
		Body: []ast.Statement{&ast.OptionStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 40,
							Line:   7,
						},
						File:   "timestamp_test.flux",
						Source: "now = () => 2030-01-01T00:00:00Z",
						Start: ast.Position{
							Column: 8,
							Line:   7,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 11,
								Line:   7,
							},
							File:   "timestamp_test.flux",
							Source: "now",
							Start: ast.Position{
								Column: 8,
								Line:   7,
							},
						},
					},
					Name: "now",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 40,
								Line:   7,
							},
							File:   "timestamp_test.flux",
							Source: "() => 2030-01-01T00:00:00Z",
							Start: ast.Position{
								Column: 14,
								Line:   7,
							},
						},
					},
					Body: &ast.DateTimeLiteral{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 40,
									Line:   7,
								},
								File:   "timestamp_test.flux",
								Source: "2030-01-01T00:00:00Z",
								Start: ast.Position{
									Column: 20,
									Line:   7,
								},
							},
						},
						Value: parser.MustParseTime("2030-01-01T00:00:00Z"),
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 40,
						Line:   7,
					},
					File:   "timestamp_test.flux",
					Source: "option now = () => 2030-01-01T00:00:00Z",
					Start: ast.Position{
						Column: 1,
						Line:   7,
					},
				},
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   21,
					},
					File:   "timestamp_test.flux",
					Source: "inData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-01T20:00:10.123Z,metric_name,0,prometheus\n,,0,2018-12-02T20:00:20.123Z,metric_name,0,prometheus\n,,0,2018-12-03T20:00:30.123Z,metric_name,0,prometheus\n,,0,2018-12-29T20:00:40.123Z,metric_name,0,prometheus\n,,0,2018-12-30T20:00:50.123Z,metric_name,0,prometheus\n,,0,2018-12-31T20:01:00.123Z,metric_name,0,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   9,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 7,
							Line:   9,
						},
						File:   "timestamp_test.flux",
						Source: "inData",
						Start: ast.Position{
							Column: 1,
							Line:   9,
						},
					},
				},
				Name: "inData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   21,
						},
						File:   "timestamp_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-01T20:00:10.123Z,metric_name,0,prometheus\n,,0,2018-12-02T20:00:20.123Z,metric_name,0,prometheus\n,,0,2018-12-03T20:00:30.123Z,metric_name,0,prometheus\n,,0,2018-12-29T20:00:40.123Z,metric_name,0,prometheus\n,,0,2018-12-30T20:00:50.123Z,metric_name,0,prometheus\n,,0,2018-12-31T20:01:00.123Z,metric_name,0,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   10,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-01T20:00:10.123Z,metric_name,0,prometheus\n,,0,2018-12-02T20:00:20.123Z,metric_name,0,prometheus\n,,0,2018-12-03T20:00:30.123Z,metric_name,0,prometheus\n,,0,2018-12-29T20:00:40.123Z,metric_name,0,prometheus\n,,0,2018-12-30T20:00:50.123Z,metric_name,0,prometheus\n,,0,2018-12-31T20:01:00.123Z,metric_name,0,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   34,
					},
					File:   "timestamp_test.flux",
					Source: "outData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,outData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-01T20:00:10.123Z,metric_name,1543694410.123,prometheus\n,,0,2018-12-02T20:00:20.123Z,metric_name,1543780820.123,prometheus\n,,0,2018-12-03T20:00:30.123Z,metric_name,1543867230.123,prometheus\n,,0,2018-12-29T20:00:40.123Z,metric_name,1546113640.123,prometheus\n,,0,2018-12-30T20:00:50.123Z,metric_name,1546200050.123,prometheus\n,,0,2018-12-31T20:01:00.123Z,metric_name,1546286460.123,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   22,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 8,
							Line:   22,
						},
						File:   "timestamp_test.flux",
						Source: "outData",
						Start: ast.Position{
							Column: 1,
							Line:   22,
						},
					},
				},
				Name: "outData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   34,
						},
						File:   "timestamp_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,outData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-01T20:00:10.123Z,metric_name,1543694410.123,prometheus\n,,0,2018-12-02T20:00:20.123Z,metric_name,1543780820.123,prometheus\n,,0,2018-12-03T20:00:30.123Z,metric_name,1543867230.123,prometheus\n,,0,2018-12-29T20:00:40.123Z,metric_name,1546113640.123,prometheus\n,,0,2018-12-30T20:00:50.123Z,metric_name,1546200050.123,prometheus\n,,0,2018-12-31T20:01:00.123Z,metric_name,1546286460.123,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   23,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,outData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-12-01T20:00:10.123Z,metric_name,1543694410.123,prometheus\n,,0,2018-12-02T20:00:20.123Z,metric_name,1543780820.123,prometheus\n,,0,2018-12-03T20:00:30.123Z,metric_name,1543867230.123,prometheus\n,,0,2018-12-29T20:00:40.123Z,metric_name,1546113640.123,prometheus\n,,0,2018-12-30T20:00:50.123Z,metric_name,1546200050.123,prometheus\n,,0,2018-12-31T20:01:00.123Z,metric_name,1546286460.123,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 30,
						Line:   39,
					},
					File:   "timestamp_test.flux",
					Source: "t_timestamp = (table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()",
					Start: ast.Position{
						Column: 1,
						Line:   35,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 12,
							Line:   35,
						},
						File:   "timestamp_test.flux",
						Source: "t_timestamp",
						Start: ast.Position{
							Column: 1,
							Line:   35,
						},
					},
				},
				Name: "t_timestamp",
			},
			Init: &ast.FunctionExpression{
				Arrow: nil,
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 30,
							Line:   39,
						},
						File:   "timestamp_test.flux",
						Source: "(table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()",
						Start: ast.Position{
							Column: 15,
							Line:   35,
						},
					},
				},
				Body: &ast.PipeExpression{
					Argument: &ast.PipeExpression{
						Argument: &ast.PipeExpression{
							Argument: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 10,
											Line:   36,
										},
										File:   "timestamp_test.flux",
										Source: "table",
										Start: ast.Position{
											Column: 5,
											Line:   36,
										},
									},
								},
								Name: "table",
							},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 46,
										Line:   37,
									},
									File:   "timestamp_test.flux",
									Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)",
									Start: ast.Position{
										Column: 5,
										Line:   36,
									},
								},
							},
							Call: &ast.CallExpression{
								Arguments: []ast.Expression{&ast.ObjectExpression{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   37,
											},
											File:   "timestamp_test.flux",
											Source: "start: 1980-01-01T00:00:00Z",
											Start: ast.Position{
												Column: 18,
												Line:   37,
											},
										},
									},
									Lbrace: nil,
									Properties: []*ast.Property{&ast.Property{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   37,
												},
												File:   "timestamp_test.flux",
												Source: "start: 1980-01-01T00:00:00Z",
												Start: ast.Position{
													Column: 18,
													Line:   37,
												},
											},
										},
										Comma: nil,
										Key: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 23,
														Line:   37,
													},
													File:   "timestamp_test.flux",
													Source: "start",
													Start: ast.Position{
														Column: 18,
														Line:   37,
													},
												},
											},
											Name: "start",
										},
										Separator: nil,
										Value: &ast.DateTimeLiteral{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   37,
													},
													File:   "timestamp_test.flux",
													Source: "1980-01-01T00:00:00Z",
													Start: ast.Position{
														Column: 25,
														Line:   37,
													},
												},
											},
											Value: parser.MustParseTime("1980-01-01T00:00:00Z"),
										},
									}},
									Rbrace: nil,
									With:   nil,
								}},
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   37,
										},
										File:   "timestamp_test.flux",
										Source: "range(start: 1980-01-01T00:00:00Z)",
										Start: ast.Position{
											Column: 12,
											Line:   37,
										},
									},
								},
								Callee: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 17,
												Line:   37,
											},
											File:   "timestamp_test.flux",
											Source: "range",
											Start: ast.Position{
												Column: 12,
												Line:   37,
											},
										},
									},
									Name: "range",
								},
								Lparen: nil,
								Rparen: nil,
							},
						},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 46,
									Line:   38,
								},
								File:   "timestamp_test.flux",
								Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])",
								Start: ast.Position{
									Column: 5,
									Line:   36,
								},
							},
						},
						Call: &ast.CallExpression{
							Arguments: []ast.Expression{&ast.ObjectExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 45,
											Line:   38,
										},
										File:   "timestamp_test.flux",
										Source: "columns: [\"_start\", \"_stop\"]",
										Start: ast.Position{
											Column: 17,
											Line:   38,
										},
									},
								},
								Lbrace: nil,
								Properties: []*ast.Property{&ast.Property{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   38,
											},
											File:   "timestamp_test.flux",
											Source: "columns: [\"_start\", \"_stop\"]",
											Start: ast.Position{
												Column: 17,
												Line:   38,
											},
										},
									},
									Comma: nil,
									Key: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 24,
													Line:   38,
												},
												File:   "timestamp_test.flux",
												Source: "columns",
												Start: ast.Position{
													Column: 17,
													Line:   38,
												},
											},
										},
										Name: "columns",
									},
									Separator: nil,
									Value: &ast.ArrayExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   38,
												},
												File:   "timestamp_test.flux",
												Source: "[\"_start\", \"_stop\"]",
												Start: ast.Position{
													Column: 26,
													Line:   38,
												},
											},
										},
										Elements: []ast.Expression{&ast.StringLiteral{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 35,
														Line:   38,
													},
													File:   "timestamp_test.flux",
													Source: "\"_start\"",
													Start: ast.Position{
														Column: 27,
														Line:   38,
													},
												},
											},
											Value: "_start",
										}, &ast.StringLiteral{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 44,
														Line:   38,
													},
													File:   "timestamp_test.flux",
													Source: "\"_stop\"",
													Start: ast.Position{
														Column: 37,
														Line:   38,
													},
												},
											},
											Value: "_stop",
										}},
										Lbrack: nil,
										Rbrack: nil,
									},
								}},
								Rbrace: nil,
								With:   nil,
							}},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 46,
										Line:   38,
									},
									File:   "timestamp_test.flux",
									Source: "drop(columns: [\"_start\", \"_stop\"])",
									Start: ast.Position{
										Column: 12,
										Line:   38,
									},
								},
							},
							Callee: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 16,
											Line:   38,
										},
										File:   "timestamp_test.flux",
										Source: "drop",
										Start: ast.Position{
											Column: 12,
											Line:   38,
										},
									},
								},
								Name: "drop",
							},
							Lparen: nil,
							Rparen: nil,
						},
					},
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 30,
								Line:   39,
							},
							File:   "timestamp_test.flux",
							Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()",
							Start: ast.Position{
								Column: 5,
								Line:   36,
							},
						},
					},
					Call: &ast.CallExpression{
						Arguments: nil,
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 30,
									Line:   39,
								},
								File:   "timestamp_test.flux",
								Source: "promql.timestamp()",
								Start: ast.Position{
									Column: 12,
									Line:   39,
								},
							},
						},
						Callee: &ast.MemberExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 28,
										Line:   39,
									},
									File:   "timestamp_test.flux",
									Source: "promql.timestamp",
									Start: ast.Position{
										Column: 12,
										Line:   39,
									},
								},
							},
							Lbrack: nil,
							Object: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 18,
											Line:   39,
										},
										File:   "timestamp_test.flux",
										Source: "promql",
										Start: ast.Position{
											Column: 12,
											Line:   39,
										},
									},
								},
								Name: "promql",
							},
							Property: &ast.Identifier{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 28,
											Line:   39,
										},
										File:   "timestamp_test.flux",
										Source: "timestamp",
										Start: ast.Position{
											Column: 19,
											Line:   39,
										},
									},
								},
								Name: "timestamp",
							},
							Rbrack: nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
				},
				Lparen: nil,
				Params: []*ast.Property{&ast.Property{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 24,
								Line:   35,
							},
							File:   "timestamp_test.flux",
							Source: "table=<-",
							Start: ast.Position{
								Column: 16,
								Line:   35,
							},
						},
					},
					Comma: nil,
					Key: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 21,
									Line:   35,
								},
								File:   "timestamp_test.flux",
								Source: "table",
								Start: ast.Position{
									Column: 16,
									Line:   35,
								},
							},
						},
						Name: "table",
					},
					Separator: nil,
					Value: &ast.PipeLiteral{BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 24,
								Line:   35,
							},
							File:   "timestamp_test.flux",
							Source: "<-",
							Start: ast.Position{
								Column: 22,
								Line:   35,
							},
						},
					}},
				}},
				Rparan: nil,
			},
		}, &ast.TestStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 102,
							Line:   42,
						},
						File:   "timestamp_test.flux",
						Source: "_timestamp = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_timestamp})",
						Start: ast.Position{
							Column: 6,
							Line:   41,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 16,
								Line:   41,
							},
							File:   "timestamp_test.flux",
							Source: "_timestamp",
							Start: ast.Position{
								Column: 6,
								Line:   41,
							},
						},
					},
					Name: "_timestamp",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 102,
								Line:   42,
							},
							File:   "timestamp_test.flux",
							Source: "() =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_timestamp})",
							Start: ast.Position{
								Column: 19,
								Line:   41,
							},
						},
					},
					Body: &ast.ParenExpression{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 102,
									Line:   42,
								},
								File:   "timestamp_test.flux",
								Source: "({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_timestamp})",
								Start: ast.Position{
									Column: 5,
									Line:   42,
								},
							},
						},
						Expression: &ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 101,
										Line:   42,
									},
									File:   "timestamp_test.flux",
									Source: "{input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_timestamp}",
									Start: ast.Position{
										Column: 6,
										Line:   42,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   42,
										},
										File:   "timestamp_test.flux",
										Source: "input: testing.loadStorage(csv: inData)",
										Start: ast.Position{
											Column: 7,
											Line:   42,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 12,
												Line:   42,
											},
											File:   "timestamp_test.flux",
											Source: "input",
											Start: ast.Position{
												Column: 7,
												Line:   42,
											},
										},
									},
									Name: "input",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   42,
												},
												File:   "timestamp_test.flux",
												Source: "csv: inData",
												Start: ast.Position{
													Column: 34,
													Line:   42,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   42,
													},
													File:   "timestamp_test.flux",
													Source: "csv: inData",
													Start: ast.Position{
														Column: 34,
														Line:   42,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 37,
															Line:   42,
														},
														File:   "timestamp_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 34,
															Line:   42,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 45,
															Line:   42,
														},
														File:   "timestamp_test.flux",
														Source: "inData",
														Start: ast.Position{
															Column: 39,
															Line:   42,
														},
													},
												},
												Name: "inData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 46,
												Line:   42,
											},
											File:   "timestamp_test.flux",
											Source: "testing.loadStorage(csv: inData)",
											Start: ast.Position{
												Column: 14,
												Line:   42,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 33,
													Line:   42,
												},
												File:   "timestamp_test.flux",
												Source: "testing.loadStorage",
												Start: ast.Position{
													Column: 14,
													Line:   42,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 21,
														Line:   42,
													},
													File:   "timestamp_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 14,
														Line:   42,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 33,
														Line:   42,
													},
													File:   "timestamp_test.flux",
													Source: "loadStorage",
													Start: ast.Position{
														Column: 22,
														Line:   42,
													},
												},
											},
											Name: "loadStorage",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 83,
											Line:   42,
										},
										File:   "timestamp_test.flux",
										Source: "want: testing.loadMem(csv: outData)",
										Start: ast.Position{
											Column: 48,
											Line:   42,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 52,
												Line:   42,
											},
											File:   "timestamp_test.flux",
											Source: "want",
											Start: ast.Position{
												Column: 48,
												Line:   42,
											},
										},
									},
									Name: "want",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 82,
													Line:   42,
												},
												File:   "timestamp_test.flux",
												Source: "csv: outData",
												Start: ast.Position{
													Column: 70,
													Line:   42,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 82,
														Line:   42,
													},
													File:   "timestamp_test.flux",
													Source: "csv: outData",
													Start: ast.Position{
														Column: 70,
														Line:   42,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 73,
															Line:   42,
														},
														File:   "timestamp_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 70,
															Line:   42,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 82,
															Line:   42,
														},
														File:   "timestamp_test.flux",
														Source: "outData",
														Start: ast.Position{
															Column: 75,
															Line:   42,
														},
													},
												},
												Name: "outData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 83,
												Line:   42,
											},
											File:   "timestamp_test.flux",
											Source: "testing.loadMem(csv: outData)",
											Start: ast.Position{
												Column: 54,
												Line:   42,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 69,
													Line:   42,
												},
												File:   "timestamp_test.flux",
												Source: "testing.loadMem",
												Start: ast.Position{
													Column: 54,
													Line:   42,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 61,
														Line:   42,
													},
													File:   "timestamp_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 54,
														Line:   42,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 69,
														Line:   42,
													},
													File:   "timestamp_test.flux",
													Source: "loadMem",
													Start: ast.Position{
														Column: 62,
														Line:   42,
													},
												},
											},
											Name: "loadMem",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 100,
											Line:   42,
										},
										File:   "timestamp_test.flux",
										Source: "fn: t_timestamp",
										Start: ast.Position{
											Column: 85,
											Line:   42,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 87,
												Line:   42,
											},
											File:   "timestamp_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 85,
												Line:   42,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 100,
												Line:   42,
											},
											File:   "timestamp_test.flux",
											Source: "t_timestamp",
											Start: ast.Position{
												Column: 89,
												Line:   42,
											},
										},
									},
									Name: "t_timestamp",
								},
							}},
							Rbrace: nil,
							With:   nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 102,
						Line:   42,
					},
					File:   "timestamp_test.flux",
					Source: "test _timestamp = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_timestamp})",
					Start: ast.Position{
						Column: 1,
						Line:   41,
					},
				},
			},
		}},
		Eof: nil,
		Imports: []*ast.ImportDeclaration{&ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 17,
						Line:   4,
					},
					File:   "timestamp_test.flux",
					Source: "import \"testing\"",
					Start: ast.Position{
						Column: 1,
						Line:   4,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 17,
							Line:   4,
						},
						File:   "timestamp_test.flux",
						Source: "\"testing\"",
						Start: ast.Position{
							Column: 8,
							Line:   4,
						},
					},
				},
				Value: "testing",
			},
		}, &ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 25,
						Line:   5,
					},
					File:   "timestamp_test.flux",
					Source: "import \"internal/promql\"",
					Start: ast.Position{
						Column: 1,
						Line:   5,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 25,
							Line:   5,
						},
						File:   "timestamp_test.flux",
						Source: "\"internal/promql\"",
						Start: ast.Position{
							Column: 8,
							Line:   5,
						},
					},
				},
				Value: "internal/promql",
			},
		}},
		Metadata: "parser-type=rust",
		Name:     "timestamp_test.flux",
		Package: &ast.PackageClause{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 20,
						Line:   1,
					},
					File:   "timestamp_test.flux",
					Source: "package promql_test",
					Start: ast.Position{
						Column: 1,
						Line:   1,
					},
				},
			},
			Name: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 20,
							Line:   1,
						},
						File:   "timestamp_test.flux",
						Source: "promql_test",
						Start: ast.Position{
							Column: 9,
							Line:   1,
						},
					},
				},
				Name: "promql_test",
			},
		},
	}, &ast.File{
		BaseNode: ast.BaseNode{
			Comments: nil,
			Errors:   nil,
			Loc: &ast.SourceLocation{
				End: ast.Position{
					Column: 103,
					Line:   43,
				},
				File:   "year_test.flux",
				Source: "package promql_test\n\n\nimport \"testing\"\nimport \"internal/promql\"\n\noption now = () => 2030-01-01T00:00:00Z\n\ninData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T20:00:00Z,metric_name,0,prometheus\n,,0,2019-02-04T20:00:00Z,metric_name,0,prometheus\n,,0,2020-03-05T20:00:00Z,metric_name,0,prometheus\n,,0,2021-10-06T20:00:00Z,metric_name,0,prometheus\n,,0,2022-11-07T20:00:00Z,metric_name,0,prometheus\n,,0,2023-12-08T20:00:00Z,metric_name,0,prometheus\n\"\noutData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,outData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T20:00:00Z,metric_name,2018,prometheus\n,,0,2019-02-04T20:00:00Z,metric_name,2019,prometheus\n,,0,2020-03-05T20:00:00Z,metric_name,2020,prometheus\n,,0,2021-10-06T20:00:00Z,metric_name,2021,prometheus\n,,0,2022-11-07T20:00:00Z,metric_name,2022,prometheus\n,,0,2023-12-08T20:00:00Z,metric_name,2023,prometheus\n\"\nt_promqlYear = (table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()\n        |> map(fn: (r) => ({r with _value: promql.promqlYear(timestamp: r._value)}))\n\ntest _promqlYear = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlYear})",
				Start: ast.Position{
					Column: 1,
					Line:   1,
				},
			},
		},
		Body: []ast.Statement{&ast.OptionStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 40,
							Line:   7,
						},
						File:   "year_test.flux",
						Source: "now = () => 2030-01-01T00:00:00Z",
						Start: ast.Position{
							Column: 8,
							Line:   7,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 11,
								Line:   7,
							},
							File:   "year_test.flux",
							Source: "now",
							Start: ast.Position{
								Column: 8,
								Line:   7,
							},
						},
					},
					Name: "now",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 40,
								Line:   7,
							},
							File:   "year_test.flux",
							Source: "() => 2030-01-01T00:00:00Z",
							Start: ast.Position{
								Column: 14,
								Line:   7,
							},
						},
					},
					Body: &ast.DateTimeLiteral{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 40,
									Line:   7,
								},
								File:   "year_test.flux",
								Source: "2030-01-01T00:00:00Z",
								Start: ast.Position{
									Column: 20,
									Line:   7,
								},
							},
						},
						Value: parser.MustParseTime("2030-01-01T00:00:00Z"),
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 40,
						Line:   7,
					},
					File:   "year_test.flux",
					Source: "option now = () => 2030-01-01T00:00:00Z",
					Start: ast.Position{
						Column: 1,
						Line:   7,
					},
				},
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   21,
					},
					File:   "year_test.flux",
					Source: "inData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T20:00:00Z,metric_name,0,prometheus\n,,0,2019-02-04T20:00:00Z,metric_name,0,prometheus\n,,0,2020-03-05T20:00:00Z,metric_name,0,prometheus\n,,0,2021-10-06T20:00:00Z,metric_name,0,prometheus\n,,0,2022-11-07T20:00:00Z,metric_name,0,prometheus\n,,0,2023-12-08T20:00:00Z,metric_name,0,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   9,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 7,
							Line:   9,
						},
						File:   "year_test.flux",
						Source: "inData",
						Start: ast.Position{
							Column: 1,
							Line:   9,
						},
					},
				},
				Name: "inData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   21,
						},
						File:   "year_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T20:00:00Z,metric_name,0,prometheus\n,,0,2019-02-04T20:00:00Z,metric_name,0,prometheus\n,,0,2020-03-05T20:00:00Z,metric_name,0,prometheus\n,,0,2021-10-06T20:00:00Z,metric_name,0,prometheus\n,,0,2022-11-07T20:00:00Z,metric_name,0,prometheus\n,,0,2023-12-08T20:00:00Z,metric_name,0,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   10,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,inData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T20:00:00Z,metric_name,0,prometheus\n,,0,2019-02-04T20:00:00Z,metric_name,0,prometheus\n,,0,2020-03-05T20:00:00Z,metric_name,0,prometheus\n,,0,2021-10-06T20:00:00Z,metric_name,0,prometheus\n,,0,2022-11-07T20:00:00Z,metric_name,0,prometheus\n,,0,2023-12-08T20:00:00Z,metric_name,0,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 2,
						Line:   34,
					},
					File:   "year_test.flux",
					Source: "outData =\n    \"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,outData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T20:00:00Z,metric_name,2018,prometheus\n,,0,2019-02-04T20:00:00Z,metric_name,2019,prometheus\n,,0,2020-03-05T20:00:00Z,metric_name,2020,prometheus\n,,0,2021-10-06T20:00:00Z,metric_name,2021,prometheus\n,,0,2022-11-07T20:00:00Z,metric_name,2022,prometheus\n,,0,2023-12-08T20:00:00Z,metric_name,2023,prometheus\n\"",
					Start: ast.Position{
						Column: 1,
						Line:   22,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 8,
							Line:   22,
						},
						File:   "year_test.flux",
						Source: "outData",
						Start: ast.Position{
							Column: 1,
							Line:   22,
						},
					},
				},
				Name: "outData",
			},
			Init: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 2,
							Line:   34,
						},
						File:   "year_test.flux",
						Source: "\"\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,outData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T20:00:00Z,metric_name,2018,prometheus\n,,0,2019-02-04T20:00:00Z,metric_name,2019,prometheus\n,,0,2020-03-05T20:00:00Z,metric_name,2020,prometheus\n,,0,2021-10-06T20:00:00Z,metric_name,2021,prometheus\n,,0,2022-11-07T20:00:00Z,metric_name,2022,prometheus\n,,0,2023-12-08T20:00:00Z,metric_name,2023,prometheus\n\"",
						Start: ast.Position{
							Column: 5,
							Line:   23,
						},
					},
				},
				Value: "\n#datatype,string,long,dateTime:RFC3339,string,double,string\n#group,false,false,false,true,false,true\n#default,outData,,,,,\n,result,table,_time,_field,_value,_measurement\n,,0,2018-01-03T20:00:00Z,metric_name,2018,prometheus\n,,0,2019-02-04T20:00:00Z,metric_name,2019,prometheus\n,,0,2020-03-05T20:00:00Z,metric_name,2020,prometheus\n,,0,2021-10-06T20:00:00Z,metric_name,2021,prometheus\n,,0,2022-11-07T20:00:00Z,metric_name,2022,prometheus\n,,0,2023-12-08T20:00:00Z,metric_name,2023,prometheus\n",
			},
		}, &ast.VariableAssignment{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 85,
						Line:   40,
					},
					File:   "year_test.flux",
					Source: "t_promqlYear = (table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()\n        |> map(fn: (r) => ({r with _value: promql.promqlYear(timestamp: r._value)}))",
					Start: ast.Position{
						Column: 1,
						Line:   35,
					},
				},
			},
			ID: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 13,
							Line:   35,
						},
						File:   "year_test.flux",
						Source: "t_promqlYear",
						Start: ast.Position{
							Column: 1,
							Line:   35,
						},
					},
				},
				Name: "t_promqlYear",
			},
			Init: &ast.FunctionExpression{
				Arrow: nil,
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 85,
							Line:   40,
						},
						File:   "year_test.flux",
						Source: "(table=<-) =>\n    table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()\n        |> map(fn: (r) => ({r with _value: promql.promqlYear(timestamp: r._value)}))",
						Start: ast.Position{
							Column: 16,
							Line:   35,
						},
					},
				},
				Body: &ast.PipeExpression{
					Argument: &ast.PipeExpression{
						Argument: &ast.PipeExpression{
							Argument: &ast.PipeExpression{
								Argument: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 10,
												Line:   36,
											},
											File:   "year_test.flux",
											Source: "table",
											Start: ast.Position{
												Column: 5,
												Line:   36,
											},
										},
									},
									Name: "table",
								},
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   37,
										},
										File:   "year_test.flux",
										Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)",
										Start: ast.Position{
											Column: 5,
											Line:   36,
										},
									},
								},
								Call: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   37,
												},
												File:   "year_test.flux",
												Source: "start: 1980-01-01T00:00:00Z",
												Start: ast.Position{
													Column: 18,
													Line:   37,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   37,
													},
													File:   "year_test.flux",
													Source: "start: 1980-01-01T00:00:00Z",
													Start: ast.Position{
														Column: 18,
														Line:   37,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 23,
															Line:   37,
														},
														File:   "year_test.flux",
														Source: "start",
														Start: ast.Position{
															Column: 18,
															Line:   37,
														},
													},
												},
												Name: "start",
											},
											Separator: nil,
											Value: &ast.DateTimeLiteral{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 45,
															Line:   37,
														},
														File:   "year_test.flux",
														Source: "1980-01-01T00:00:00Z",
														Start: ast.Position{
															Column: 25,
															Line:   37,
														},
													},
												},
												Value: parser.MustParseTime("1980-01-01T00:00:00Z"),
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 46,
												Line:   37,
											},
											File:   "year_test.flux",
											Source: "range(start: 1980-01-01T00:00:00Z)",
											Start: ast.Position{
												Column: 12,
												Line:   37,
											},
										},
									},
									Callee: &ast.Identifier{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 17,
													Line:   37,
												},
												File:   "year_test.flux",
												Source: "range",
												Start: ast.Position{
													Column: 12,
													Line:   37,
												},
											},
										},
										Name: "range",
									},
									Lparen: nil,
									Rparen: nil,
								},
							},
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 46,
										Line:   38,
									},
									File:   "year_test.flux",
									Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])",
									Start: ast.Position{
										Column: 5,
										Line:   36,
									},
								},
							},
							Call: &ast.CallExpression{
								Arguments: []ast.Expression{&ast.ObjectExpression{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 45,
												Line:   38,
											},
											File:   "year_test.flux",
											Source: "columns: [\"_start\", \"_stop\"]",
											Start: ast.Position{
												Column: 17,
												Line:   38,
											},
										},
									},
									Lbrace: nil,
									Properties: []*ast.Property{&ast.Property{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   38,
												},
												File:   "year_test.flux",
												Source: "columns: [\"_start\", \"_stop\"]",
												Start: ast.Position{
													Column: 17,
													Line:   38,
												},
											},
										},
										Comma: nil,
										Key: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 24,
														Line:   38,
													},
													File:   "year_test.flux",
													Source: "columns",
													Start: ast.Position{
														Column: 17,
														Line:   38,
													},
												},
											},
											Name: "columns",
										},
										Separator: nil,
										Value: &ast.ArrayExpression{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   38,
													},
													File:   "year_test.flux",
													Source: "[\"_start\", \"_stop\"]",
													Start: ast.Position{
														Column: 26,
														Line:   38,
													},
												},
											},
											Elements: []ast.Expression{&ast.StringLiteral{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 35,
															Line:   38,
														},
														File:   "year_test.flux",
														Source: "\"_start\"",
														Start: ast.Position{
															Column: 27,
															Line:   38,
														},
													},
												},
												Value: "_start",
											}, &ast.StringLiteral{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 44,
															Line:   38,
														},
														File:   "year_test.flux",
														Source: "\"_stop\"",
														Start: ast.Position{
															Column: 37,
															Line:   38,
														},
													},
												},
												Value: "_stop",
											}},
											Lbrack: nil,
											Rbrack: nil,
										},
									}},
									Rbrace: nil,
									With:   nil,
								}},
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   38,
										},
										File:   "year_test.flux",
										Source: "drop(columns: [\"_start\", \"_stop\"])",
										Start: ast.Position{
											Column: 12,
											Line:   38,
										},
									},
								},
								Callee: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 16,
												Line:   38,
											},
											File:   "year_test.flux",
											Source: "drop",
											Start: ast.Position{
												Column: 12,
												Line:   38,
											},
										},
									},
									Name: "drop",
								},
								Lparen: nil,
								Rparen: nil,
							},
						},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 30,
									Line:   39,
								},
								File:   "year_test.flux",
								Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()",
								Start: ast.Position{
									Column: 5,
									Line:   36,
								},
							},
						},
						Call: &ast.CallExpression{
							Arguments: nil,
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 30,
										Line:   39,
									},
									File:   "year_test.flux",
									Source: "promql.timestamp()",
									Start: ast.Position{
										Column: 12,
										Line:   39,
									},
								},
							},
							Callee: &ast.MemberExpression{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 28,
											Line:   39,
										},
										File:   "year_test.flux",
										Source: "promql.timestamp",
										Start: ast.Position{
											Column: 12,
											Line:   39,
										},
									},
								},
								Lbrack: nil,
								Object: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 18,
												Line:   39,
											},
											File:   "year_test.flux",
											Source: "promql",
											Start: ast.Position{
												Column: 12,
												Line:   39,
											},
										},
									},
									Name: "promql",
								},
								Property: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 28,
												Line:   39,
											},
											File:   "year_test.flux",
											Source: "timestamp",
											Start: ast.Position{
												Column: 19,
												Line:   39,
											},
										},
									},
									Name: "timestamp",
								},
								Rbrack: nil,
							},
							Lparen: nil,
							Rparen: nil,
						},
					},
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 85,
								Line:   40,
							},
							File:   "year_test.flux",
							Source: "table\n        |> range(start: 1980-01-01T00:00:00Z)\n        |> drop(columns: [\"_start\", \"_stop\"])\n        |> promql.timestamp()\n        |> map(fn: (r) => ({r with _value: promql.promqlYear(timestamp: r._value)}))",
							Start: ast.Position{
								Column: 5,
								Line:   36,
							},
						},
					},
					Call: &ast.CallExpression{
						Arguments: []ast.Expression{&ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 84,
										Line:   40,
									},
									File:   "year_test.flux",
									Source: "fn: (r) => ({r with _value: promql.promqlYear(timestamp: r._value)})",
									Start: ast.Position{
										Column: 16,
										Line:   40,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 84,
											Line:   40,
										},
										File:   "year_test.flux",
										Source: "fn: (r) => ({r with _value: promql.promqlYear(timestamp: r._value)})",
										Start: ast.Position{
											Column: 16,
											Line:   40,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 18,
												Line:   40,
											},
											File:   "year_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 16,
												Line:   40,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.FunctionExpression{
									Arrow: nil,
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 84,
												Line:   40,
											},
											File:   "year_test.flux",
											Source: "(r) => ({r with _value: promql.promqlYear(timestamp: r._value)})",
											Start: ast.Position{
												Column: 20,
												Line:   40,
											},
										},
									},
									Body: &ast.ParenExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 84,
													Line:   40,
												},
												File:   "year_test.flux",
												Source: "({r with _value: promql.promqlYear(timestamp: r._value)})",
												Start: ast.Position{
													Column: 27,
													Line:   40,
												},
											},
										},
										Expression: &ast.ObjectExpression{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 83,
														Line:   40,
													},
													File:   "year_test.flux",
													Source: "{r with _value: promql.promqlYear(timestamp: r._value)}",
													Start: ast.Position{
														Column: 28,
														Line:   40,
													},
												},
											},
											Lbrace: nil,
											Properties: []*ast.Property{&ast.Property{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 82,
															Line:   40,
														},
														File:   "year_test.flux",
														Source: "_value: promql.promqlYear(timestamp: r._value)",
														Start: ast.Position{
															Column: 36,
															Line:   40,
														},
													},
												},
												Comma: nil,
												Key: &ast.Identifier{
													BaseNode: ast.BaseNode{
														Comments: nil,
														Errors:   nil,
														Loc: &ast.SourceLocation{
															End: ast.Position{
																Column: 42,
																Line:   40,
															},
															File:   "year_test.flux",
															Source: "_value",
															Start: ast.Position{
																Column: 36,
																Line:   40,
															},
														},
													},
													Name: "_value",
												},
												Separator: nil,
												Value: &ast.CallExpression{
													Arguments: []ast.Expression{&ast.ObjectExpression{
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 81,
																	Line:   40,
																},
																File:   "year_test.flux",
																Source: "timestamp: r._value",
																Start: ast.Position{
																	Column: 62,
																	Line:   40,
																},
															},
														},
														Lbrace: nil,
														Properties: []*ast.Property{&ast.Property{
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 81,
																		Line:   40,
																	},
																	File:   "year_test.flux",
																	Source: "timestamp: r._value",
																	Start: ast.Position{
																		Column: 62,
																		Line:   40,
																	},
																},
															},
															Comma: nil,
															Key: &ast.Identifier{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 71,
																			Line:   40,
																		},
																		File:   "year_test.flux",
																		Source: "timestamp",
																		Start: ast.Position{
																			Column: 62,
																			Line:   40,
																		},
																	},
																},
																Name: "timestamp",
															},
															Separator: nil,
															Value: &ast.MemberExpression{
																BaseNode: ast.BaseNode{
																	Comments: nil,
																	Errors:   nil,
																	Loc: &ast.SourceLocation{
																		End: ast.Position{
																			Column: 81,
																			Line:   40,
																		},
																		File:   "year_test.flux",
																		Source: "r._value",
																		Start: ast.Position{
																			Column: 73,
																			Line:   40,
																		},
																	},
																},
																Lbrack: nil,
																Object: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 74,
																				Line:   40,
																			},
																			File:   "year_test.flux",
																			Source: "r",
																			Start: ast.Position{
																				Column: 73,
																				Line:   40,
																			},
																		},
																	},
																	Name: "r",
																},
																Property: &ast.Identifier{
																	BaseNode: ast.BaseNode{
																		Comments: nil,
																		Errors:   nil,
																		Loc: &ast.SourceLocation{
																			End: ast.Position{
																				Column: 81,
																				Line:   40,
																			},
																			File:   "year_test.flux",
																			Source: "_value",
																			Start: ast.Position{
																				Column: 75,
																				Line:   40,
																			},
																		},
																	},
																	Name: "_value",
																},
																Rbrack: nil,
															},
														}},
														Rbrace: nil,
														With:   nil,
													}},
													BaseNode: ast.BaseNode{
														Comments: nil,
														Errors:   nil,
														Loc: &ast.SourceLocation{
															End: ast.Position{
																Column: 82,
																Line:   40,
															},
															File:   "year_test.flux",
															Source: "promql.promqlYear(timestamp: r._value)",
															Start: ast.Position{
																Column: 44,
																Line:   40,
															},
														},
													},
													Callee: &ast.MemberExpression{
														BaseNode: ast.BaseNode{
															Comments: nil,
															Errors:   nil,
															Loc: &ast.SourceLocation{
																End: ast.Position{
																	Column: 61,
																	Line:   40,
																},
																File:   "year_test.flux",
																Source: "promql.promqlYear",
																Start: ast.Position{
																	Column: 44,
																	Line:   40,
																},
															},
														},
														Lbrack: nil,
														Object: &ast.Identifier{
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 50,
																		Line:   40,
																	},
																	File:   "year_test.flux",
																	Source: "promql",
																	Start: ast.Position{
																		Column: 44,
																		Line:   40,
																	},
																},
															},
															Name: "promql",
														},
														Property: &ast.Identifier{
															BaseNode: ast.BaseNode{
																Comments: nil,
																Errors:   nil,
																Loc: &ast.SourceLocation{
																	End: ast.Position{
																		Column: 61,
																		Line:   40,
																	},
																	File:   "year_test.flux",
																	Source: "promqlYear",
																	Start: ast.Position{
																		Column: 51,
																		Line:   40,
																	},
																},
															},
															Name: "promqlYear",
														},
														Rbrack: nil,
													},
													Lparen: nil,
													Rparen: nil,
												},
											}},
											Rbrace: nil,
											With: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 30,
															Line:   40,
														},
														File:   "year_test.flux",
														Source: "r",
														Start: ast.Position{
															Column: 29,
															Line:   40,
														},
													},
												},
												Name: "r",
											},
										},
										Lparen: nil,
										Rparen: nil,
									},
									Lparen: nil,
									Params: []*ast.Property{&ast.Property{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 22,
													Line:   40,
												},
												File:   "year_test.flux",
												Source: "r",
												Start: ast.Position{
													Column: 21,
													Line:   40,
												},
											},
										},
										Comma: nil,
										Key: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 22,
														Line:   40,
													},
													File:   "year_test.flux",
													Source: "r",
													Start: ast.Position{
														Column: 21,
														Line:   40,
													},
												},
											},
											Name: "r",
										},
										Separator: nil,
										Value:     nil,
									}},
									Rparan: nil,
								},
							}},
							Rbrace: nil,
							With:   nil,
						}},
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 85,
									Line:   40,
								},
								File:   "year_test.flux",
								Source: "map(fn: (r) => ({r with _value: promql.promqlYear(timestamp: r._value)}))",
								Start: ast.Position{
									Column: 12,
									Line:   40,
								},
							},
						},
						Callee: &ast.Identifier{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 15,
										Line:   40,
									},
									File:   "year_test.flux",
									Source: "map",
									Start: ast.Position{
										Column: 12,
										Line:   40,
									},
								},
							},
							Name: "map",
						},
						Lparen: nil,
						Rparen: nil,
					},
				},
				Lparen: nil,
				Params: []*ast.Property{&ast.Property{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 25,
								Line:   35,
							},
							File:   "year_test.flux",
							Source: "table=<-",
							Start: ast.Position{
								Column: 17,
								Line:   35,
							},
						},
					},
					Comma: nil,
					Key: &ast.Identifier{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 22,
									Line:   35,
								},
								File:   "year_test.flux",
								Source: "table",
								Start: ast.Position{
									Column: 17,
									Line:   35,
								},
							},
						},
						Name: "table",
					},
					Separator: nil,
					Value: &ast.PipeLiteral{BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 25,
								Line:   35,
							},
							File:   "year_test.flux",
							Source: "<-",
							Start: ast.Position{
								Column: 23,
								Line:   35,
							},
						},
					}},
				}},
				Rparan: nil,
			},
		}, &ast.TestStatement{
			Assignment: &ast.VariableAssignment{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 103,
							Line:   43,
						},
						File:   "year_test.flux",
						Source: "_promqlYear = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlYear})",
						Start: ast.Position{
							Column: 6,
							Line:   42,
						},
					},
				},
				ID: &ast.Identifier{
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 17,
								Line:   42,
							},
							File:   "year_test.flux",
							Source: "_promqlYear",
							Start: ast.Position{
								Column: 6,
								Line:   42,
							},
						},
					},
					Name: "_promqlYear",
				},
				Init: &ast.FunctionExpression{
					Arrow: nil,
					BaseNode: ast.BaseNode{
						Comments: nil,
						Errors:   nil,
						Loc: &ast.SourceLocation{
							End: ast.Position{
								Column: 103,
								Line:   43,
							},
							File:   "year_test.flux",
							Source: "() =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlYear})",
							Start: ast.Position{
								Column: 20,
								Line:   42,
							},
						},
					},
					Body: &ast.ParenExpression{
						BaseNode: ast.BaseNode{
							Comments: nil,
							Errors:   nil,
							Loc: &ast.SourceLocation{
								End: ast.Position{
									Column: 103,
									Line:   43,
								},
								File:   "year_test.flux",
								Source: "({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlYear})",
								Start: ast.Position{
									Column: 5,
									Line:   43,
								},
							},
						},
						Expression: &ast.ObjectExpression{
							BaseNode: ast.BaseNode{
								Comments: nil,
								Errors:   nil,
								Loc: &ast.SourceLocation{
									End: ast.Position{
										Column: 102,
										Line:   43,
									},
									File:   "year_test.flux",
									Source: "{input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlYear}",
									Start: ast.Position{
										Column: 6,
										Line:   43,
									},
								},
							},
							Lbrace: nil,
							Properties: []*ast.Property{&ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 46,
											Line:   43,
										},
										File:   "year_test.flux",
										Source: "input: testing.loadStorage(csv: inData)",
										Start: ast.Position{
											Column: 7,
											Line:   43,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 12,
												Line:   43,
											},
											File:   "year_test.flux",
											Source: "input",
											Start: ast.Position{
												Column: 7,
												Line:   43,
											},
										},
									},
									Name: "input",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 45,
													Line:   43,
												},
												File:   "year_test.flux",
												Source: "csv: inData",
												Start: ast.Position{
													Column: 34,
													Line:   43,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 45,
														Line:   43,
													},
													File:   "year_test.flux",
													Source: "csv: inData",
													Start: ast.Position{
														Column: 34,
														Line:   43,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 37,
															Line:   43,
														},
														File:   "year_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 34,
															Line:   43,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 45,
															Line:   43,
														},
														File:   "year_test.flux",
														Source: "inData",
														Start: ast.Position{
															Column: 39,
															Line:   43,
														},
													},
												},
												Name: "inData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 46,
												Line:   43,
											},
											File:   "year_test.flux",
											Source: "testing.loadStorage(csv: inData)",
											Start: ast.Position{
												Column: 14,
												Line:   43,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 33,
													Line:   43,
												},
												File:   "year_test.flux",
												Source: "testing.loadStorage",
												Start: ast.Position{
													Column: 14,
													Line:   43,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 21,
														Line:   43,
													},
													File:   "year_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 14,
														Line:   43,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 33,
														Line:   43,
													},
													File:   "year_test.flux",
													Source: "loadStorage",
													Start: ast.Position{
														Column: 22,
														Line:   43,
													},
												},
											},
											Name: "loadStorage",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 83,
											Line:   43,
										},
										File:   "year_test.flux",
										Source: "want: testing.loadMem(csv: outData)",
										Start: ast.Position{
											Column: 48,
											Line:   43,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 52,
												Line:   43,
											},
											File:   "year_test.flux",
											Source: "want",
											Start: ast.Position{
												Column: 48,
												Line:   43,
											},
										},
									},
									Name: "want",
								},
								Separator: nil,
								Value: &ast.CallExpression{
									Arguments: []ast.Expression{&ast.ObjectExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 82,
													Line:   43,
												},
												File:   "year_test.flux",
												Source: "csv: outData",
												Start: ast.Position{
													Column: 70,
													Line:   43,
												},
											},
										},
										Lbrace: nil,
										Properties: []*ast.Property{&ast.Property{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 82,
														Line:   43,
													},
													File:   "year_test.flux",
													Source: "csv: outData",
													Start: ast.Position{
														Column: 70,
														Line:   43,
													},
												},
											},
											Comma: nil,
											Key: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 73,
															Line:   43,
														},
														File:   "year_test.flux",
														Source: "csv",
														Start: ast.Position{
															Column: 70,
															Line:   43,
														},
													},
												},
												Name: "csv",
											},
											Separator: nil,
											Value: &ast.Identifier{
												BaseNode: ast.BaseNode{
													Comments: nil,
													Errors:   nil,
													Loc: &ast.SourceLocation{
														End: ast.Position{
															Column: 82,
															Line:   43,
														},
														File:   "year_test.flux",
														Source: "outData",
														Start: ast.Position{
															Column: 75,
															Line:   43,
														},
													},
												},
												Name: "outData",
											},
										}},
										Rbrace: nil,
										With:   nil,
									}},
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 83,
												Line:   43,
											},
											File:   "year_test.flux",
											Source: "testing.loadMem(csv: outData)",
											Start: ast.Position{
												Column: 54,
												Line:   43,
											},
										},
									},
									Callee: &ast.MemberExpression{
										BaseNode: ast.BaseNode{
											Comments: nil,
											Errors:   nil,
											Loc: &ast.SourceLocation{
												End: ast.Position{
													Column: 69,
													Line:   43,
												},
												File:   "year_test.flux",
												Source: "testing.loadMem",
												Start: ast.Position{
													Column: 54,
													Line:   43,
												},
											},
										},
										Lbrack: nil,
										Object: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 61,
														Line:   43,
													},
													File:   "year_test.flux",
													Source: "testing",
													Start: ast.Position{
														Column: 54,
														Line:   43,
													},
												},
											},
											Name: "testing",
										},
										Property: &ast.Identifier{
											BaseNode: ast.BaseNode{
												Comments: nil,
												Errors:   nil,
												Loc: &ast.SourceLocation{
													End: ast.Position{
														Column: 69,
														Line:   43,
													},
													File:   "year_test.flux",
													Source: "loadMem",
													Start: ast.Position{
														Column: 62,
														Line:   43,
													},
												},
											},
											Name: "loadMem",
										},
										Rbrack: nil,
									},
									Lparen: nil,
									Rparen: nil,
								},
							}, &ast.Property{
								BaseNode: ast.BaseNode{
									Comments: nil,
									Errors:   nil,
									Loc: &ast.SourceLocation{
										End: ast.Position{
											Column: 101,
											Line:   43,
										},
										File:   "year_test.flux",
										Source: "fn: t_promqlYear",
										Start: ast.Position{
											Column: 85,
											Line:   43,
										},
									},
								},
								Comma: nil,
								Key: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 87,
												Line:   43,
											},
											File:   "year_test.flux",
											Source: "fn",
											Start: ast.Position{
												Column: 85,
												Line:   43,
											},
										},
									},
									Name: "fn",
								},
								Separator: nil,
								Value: &ast.Identifier{
									BaseNode: ast.BaseNode{
										Comments: nil,
										Errors:   nil,
										Loc: &ast.SourceLocation{
											End: ast.Position{
												Column: 101,
												Line:   43,
											},
											File:   "year_test.flux",
											Source: "t_promqlYear",
											Start: ast.Position{
												Column: 89,
												Line:   43,
											},
										},
									},
									Name: "t_promqlYear",
								},
							}},
							Rbrace: nil,
							With:   nil,
						},
						Lparen: nil,
						Rparen: nil,
					},
					Lparen: nil,
					Params: []*ast.Property{},
					Rparan: nil,
				},
			},
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 103,
						Line:   43,
					},
					File:   "year_test.flux",
					Source: "test _promqlYear = () =>\n    ({input: testing.loadStorage(csv: inData), want: testing.loadMem(csv: outData), fn: t_promqlYear})",
					Start: ast.Position{
						Column: 1,
						Line:   42,
					},
				},
			},
		}},
		Eof: nil,
		Imports: []*ast.ImportDeclaration{&ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 17,
						Line:   4,
					},
					File:   "year_test.flux",
					Source: "import \"testing\"",
					Start: ast.Position{
						Column: 1,
						Line:   4,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 17,
							Line:   4,
						},
						File:   "year_test.flux",
						Source: "\"testing\"",
						Start: ast.Position{
							Column: 8,
							Line:   4,
						},
					},
				},
				Value: "testing",
			},
		}, &ast.ImportDeclaration{
			As: nil,
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 25,
						Line:   5,
					},
					File:   "year_test.flux",
					Source: "import \"internal/promql\"",
					Start: ast.Position{
						Column: 1,
						Line:   5,
					},
				},
			},
			Path: &ast.StringLiteral{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 25,
							Line:   5,
						},
						File:   "year_test.flux",
						Source: "\"internal/promql\"",
						Start: ast.Position{
							Column: 8,
							Line:   5,
						},
					},
				},
				Value: "internal/promql",
			},
		}},
		Metadata: "parser-type=rust",
		Name:     "year_test.flux",
		Package: &ast.PackageClause{
			BaseNode: ast.BaseNode{
				Comments: nil,
				Errors:   nil,
				Loc: &ast.SourceLocation{
					End: ast.Position{
						Column: 20,
						Line:   1,
					},
					File:   "year_test.flux",
					Source: "package promql_test",
					Start: ast.Position{
						Column: 1,
						Line:   1,
					},
				},
			},
			Name: &ast.Identifier{
				BaseNode: ast.BaseNode{
					Comments: nil,
					Errors:   nil,
					Loc: &ast.SourceLocation{
						End: ast.Position{
							Column: 20,
							Line:   1,
						},
						File:   "year_test.flux",
						Source: "promql_test",
						Start: ast.Position{
							Column: 9,
							Line:   1,
						},
					},
				},
				Name: "promql_test",
			},
		},
	}},
	Package: "promql_test",
	Path:    "testing/promql",
}}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL