protected override Expression VisitExtension(Expression extensionExpression) { if (extensionExpression is SqlExpression sqlExpression && sqlExpression.TypeMapping == null) { throw new InvalidOperationException(CosmosStrings.NullTypeMappingInSqlTree(sqlExpression.Print())); } return(base.VisitExtension(extensionExpression)); }