Improvements automatic partitioning

- Never faild query for the process
- Compatibility with several auto partitionign columns of the same
column (e.g. year, month, day, ..)