Despite evidence from previous case studies showing that agronomic traits partially determine the resulting yield of different rice (
Oryza sativa
L.) varieties, it remains unclear whether this is true at the ecotype level. Here, an extensive dataset of the traits of 7686 rice varieties, released in China from 1978 to 2017, was used to study the relationship between yield and other agronomic traits. We assessed the association between yield and other agronomic traits for four different rice ecotypes, i.e., indica inbred, indica hybrid, japonica inbred, and japonica hybrid. We found that associations between agronomic traits and yield were ecotype-dependent. For both the indica inbred and indica hybrid ecotypes, we found that greater values of certain traits, including the filled grain number per panicle, 1000-grain-weight, plant height, panicle length, grains per panicle, seed setting rate, long growth period, low panicle number per unit area, and low seed length/width ratio, have accounted for high grain yield. In the japonica inbred and japonica hybrid ecotypes, we found that only high panicle number per unit area and long growth period led to high grain yield. Indirectly, growth period consistently had a positive effect on yield in all ecotypes, and plant height had a positive effect on yield for the indicas and japonica inbred only. Plant height had a negative effect for the japonica hybrid. Altogether, our findings potentially have valuable implications for improving the breeds of rice ecotypes.