Affects Version/s: None
Fix Version/s: 1.6.0
enable adaptive execution
create table and load one segment data.
set segment 0 and query --> gives data
set segment 1 and query --> gives data (but should not)
problem: Set segment doesn't work with adaptive execution.
cause: For set segments, driver will check carbon property and carbon property will look for segments in session params, which is not set in current thread incase of adaptive excution.
solution: Use the session params from RDD's session info.