If I pass a longer query through, I get an OSError: [Errno 63] File name too long: <redacted bcp command>. Adding a shell=True to subprocess.run fixes things, but I don't recall all the details of subprocess to remember if this is a general solution.
If I pass a longer query through, I get an
OSError: [Errno 63] File name too long: <redacted bcp command>. Adding ashell=Truetosubprocess.runfixes things, but I don't recall all the details ofsubprocessto remember if this is a general solution.