Backport #30430 by @lunny Fix #30428 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
util.OptionalBool
optional.Option[bool]
max( id )
max( index )