Problem
There are two args for specifying IO and Datafusion thread allocations, respectively:
--num-threads
--datafusion-num-threads
In Enterprise, these are:
--num-io-threads
--num-datafusion-threads
This is inconsistent and therefore incompatible.
Proposed solution
Use the argument names from Enterprise, but keep the existing argument names as aliases. That would require changes to this macro to accept a num_threads_arg_alias argument.
The environment variables are also different between Core and Enterprise, so we may need to figure out if it is possible to do similar kind of aliasing for environment variables, so that Core to Enterprise is compatible.