Handle missing types for hinted queries