Paul Goldschmidt, who had an RBI sac fly and extended his hitting streak to 19, batted .302 with 36 homers and 125 RBIs.

PHOENIX — The Arizona Diamondbacks ended the season with one final rally, sending Washington manager Davey Johnson into retirement with a loss.

It wasn’t enough to wipe away the disappointment of season that started with so many expectations.

A.J. Pollock beat out an infield single to drive in the go-ahead run and the Diamondbacks ended a mediocre season on a high note, beating the Nationals 3-2 on Sunday in Johnson’s final game as manager.

“We as a team expected to be still paying right now,” Diamondbacks shortstop Willie Bloomquist said. “I think that is where expectations need to stay. As a whole this year it has been disappointing even though we ended on a high note.”

Trailing 2-1 after losing the series’ first two games, Arizona scored two runs off Ryan Mattheus (0-2) in the eighth inning. Paul Goldschmidt singled to extend his hitting streak to 19 games, and Martin Prado had a run-scoring single in the inning before Pollock dove into first safely after hitting a comebacker that bounced off Mattheus.

Goldschmidt joined Mel Ott as the only NL players 25 or younger to hit .300 with 35 homers, 100 RBIs and 100 runs in a season.

The win ended a long season for the D-backs.

Thanks to 25 extra-inning games, Arizona played 1,538 innings to break the MLB record set by the 1964 Yankees. Arizona went 16-9 in extras, but played nearly nine extra games (80 extra innings) and faded down the stretch after leading the NL West for most of the season’s first half.

Arizona finished 81-81, 11 games behind the Dodgers in the NL West.

“We were above .500 most of the year, but it is one of those things we have to reflect on and build from it for next year,” said Arizona starter Wade Miley, who allowed one earned run on eight hits in seven innings.

The D-backs recognized Johnson beforehand and he doffed his hat to the crowd.

“Time to go home,” said Johnson, who finished his career 1,372-1,071 and 224-183 in three seasons with the Nationals. “Put me out to pasture.”