NEW YORK -- Zack Greinke's shutout streak for the Los Angeles Dodgers is over after the New York Mets scored against him on a grounder by opposing pitcher Jacob deGrom in the Dodgers' 3-2 walk-off loss in 10 innings.

Greinke retired his first six batters Sunday, extending his scoreless streak to 45⅔ innings -- longest in the majors since Orel Hershiser set the big league record with 59 for the Dodgers in 1988. But the right-hander hit Kirk Nieuwenhuis with a pitch leading off the third, and Kevin Plawecki singled.

Nieuwenhuis went to third when rookie center fielder Joc Pederson fumbled the ball for an error, putting runners at the corners with none out. Greinke got ahead 0-2 on deGrom, who hit a bouncer to first base. Adrian Gonzalez threw home, where Nieuwenhuis slid in safely.

Dodgers catcher Yasmani Grandal signaled to the bench for a review, but replays showed Nieuwenhuis beat the tag and Los Angeles did not challenge. The play was scored a fielder's choice, and Greinke showed little emotion as he waited for a moment near the mound.

Greinke Streak By The Numbers Zack Greinke's scoreless innings streaks ended at 45⅔ innings on Sunday. Here's a look inside the masterful run by the Dodgers right-hander. 60: different batters faced during streak 636: pitches thrown during streak 3: extra-base hits allowed (all doubles) 43: strikeouts in stretch 1: players with multiple hits (Wilmer Flores) -- Stats do not include anything in 3rd inning Sunday, since he did not record an out before the run scored

Despite the error, the run was earned because Curtis Granderson followed with a fly to right field that presumably could have scored Nieuwenhuis. Greinke got out of the inning without any further damage.

It was the first run Greinke had allowed in seven starts since June 13 at San Diego. He did give up a leadoff homer to AL MVP Mike Trout in the All-Star Game on July 14.

Greinke would allow a second run in the sixth inning when he hit Michael Conforto with a pitch while the bases were loaded.

With the Dodgers down 2-0 entering the ninth inning, Greinke was also at risk of picking up his first loss since June 13. But Los Angeles scored twice to send the game to extra innings before giving up a walk-off hit to Juan Uribe in the 10th.

Greinke ultimately took a no-decision after allowing four hits over seven innings. His ERA rose from 1.30 to 1.37, still tops in the majors.

He originally was scheduled to pitch Friday, but he went to Los Angeles to be with his wife Emily on Thursday night for the birth of their first child, Bode Nicholas. The right-hander rejoined the team this weekend.

The Associated Press contributed to this report.