Affects Version/s: 1.6.0
Fix Version/s: 1.12.0
Unable to submit physical plan from Web UI on Windows:
Steps to reproduce:
1. Generate physical plan using query:
explain plan for SELECT * FROM cp.`employee.json` LIMIT 20
2. Copy output in json column:
3. Submit physical plan from Web UI
Checked in Chrome and Mozilla Firefox.
Works fine on Linux.
The problem was in FileSelection class. It used System.getProperty("file.separator") to split given path.
But since we use org.apache.hadoop.fs.Path which stores path using its default separator, not systems -> org.apache.hadoop.fs.Path.SEPARATOR.
Default separator on Windows is \ but given path we had / (even if it came from Windows) and that's why the error occurred. To fix this problem we just need to use org.apache.hadoop.fs.Path.SEPARATOR instead of System.getProperty("file.separator").