Modified the function to a SQL language one.
Now the only C function we have returns the Var representation of the partition column.