The San Diego Padres acquired second baseman Adam Frazier from the Pittsburgh Pirates on Monday.
Frazier, 29, who leads baseball in hits this year, is not a free agent until after the 2022 season.
In exchange, the Pirates acquired right-hander Michell Miliano, shortstop Tucupita Marcano and outfielder Jack Suwinski.
Pittsburgh is also sending approximately $1.4 million to the Padres in the deal, according to The Associated Press.
Frazier entered Sunday hitting .327 -- the second-best average in Major League Baseball -- with four home runs and 32 RBIs.