The Pittsburgh Pirates and shortstop Konnor Griffin have agreed to a nine-year ($140 million) contract to keep him around through the 2034 season.