I am trying to execute the sample command in Splunk MLTK. For some reason, I am getting an error everytime I run a stats command after the sample command.
index=_internal | sample partitions=3 seed=42 | stats count by action, partition_number
Search error
Error in 'sample' command: The specified field name for the partition already exists: partition_number
I tried providing different field name and it is still the same error. If I remove stats command and try running the same search multiple times, it works without any issues. What could be the reason ?