diff --git a/internal/querynode/collection.go b/internal/querynode/collection.go
index 9db3793940..ecad6cbbee 100644
--- a/internal/querynode/collection.go
+++ b/internal/querynode/collection.go
@@ -195,6 +195,7 @@ func (c *Collection) setLoadType(l loadType) {
 	c.loadType = l
 }
 
+// getLoadType get the loadType of collection, which is loadTypeCollection or loadTypePartition
 func (c *Collection) getLoadType() loadType {
 	return c.loadType
 }