The San Diego Padres and San Francisco Giants meet Thursday night with the trade deadline just days away, and Giants left-hander Robbie Ray is expected to take the mound for what could be his final start with the club.

Ray has been one of the few reliable bright spots in a difficult season for San Francisco. The veteran carries a 9-6 record with a 3.16 ERA and a 1.31 WHIP, making him an attractive target for contenders seeking rotation help before the deadline. His home-road split has been stark: a 2.22 ERA at home compared with a 4.35 ERA on the road.

The Giants' problems have run deeper than one starter. The team ranks sixth in the league with a.254 batting average, yet sits 21st in runs scored with 457. Their slugging percentage remains among the best in baseball, but a 23rd-ranked on-base percentage has prevented those extra-base hits from translating into consistent scoring.

The pitching staff has not been able to compensate. San Francisco owns a collective 4.36 ERA, and the bullpen has been a persistent weakness, ranking in the bottom third of the league with a 4.37 ERA.

San Diego arrives as the more puzzling team. The Padres are 55-53, still above.500, but a roster full of marquee names has underperformed for much of the season. Manny Machado is only now batting above.200, Fernando Tatis Jr. has hit just eight home runs, and Xander Bogaerts is batting.218. Injuries have piled up, and the offense has not produced at the level the lineup suggests it should.

Managerial decisions and front-office strategy remain unresolved. The Giants are widely expected to sell, while the Padres have been described as a team that could buy, sell, or stand pat. Recent context tilts toward buying: San Diego enters the game riding a five-game winning streak, and the team has looked aggressive while winning another so-called «bullpen game» in its latest outing.

The pitching matchup adds another layer of uncertainty. JP Sears will start for San Diego with a 3.86 ERA and a 1.18 WHIP across six appearances, five of them starts. He has not pitched more than five innings in any start this month, a sign of the team's ongoing health concerns, but he can lean on one of the better bullpens in the league.

There is also a head-to-head wrinkle. Padres hitters have a.273 average in 110 at-bats against Ray, and he has not faced San Diego this season. Given the looming deadline, the outing could serve as his final audition for a contender.

The broader stakes are clear. With two months remaining in the regular season, this stretch typically separates genuine playoff contenders from teams already looking toward next year. The Padres believe they have the pieces to challenge the Dodgers in the National League West if the lineup finally clicks, but they have yet to show they can sustain that level.

Oddsmakers have made San Diego a clear favorite, listing the Padres at -157 on the moneyline and -1.5 on the run line at +139. Betting analysis favors that run-line play, pointing to Ray's road struggles, San Diego's bullpen advantage, and the Giants' inability to score consistently.

For fans tracking the deadline, this game is more than a late-July matchup. It is a preview of two franchises heading in different directions, with one starter likely pitching his way out of town and another trying to help his team prove it belongs in the playoff race.