Check the setting for "gp_autostat_mode_in_functions":
gpconfig -s gp_autostats_mode_in_functions
By default it is set to "none". Change the setting to "on_no_stats":
gpconfig -c gp_autostats_mode_in_functions -v on_no_stats
Reload the configuration:
gpstop -u
Verify the setting has changed:
gpconfig -s gp_autostats_mode_in_functions
For more information on the GUC, refer to the following resources: