Join GitHub today
DRILL-5537: Display columns alias for queries with sum() when RDBMS s… #845
…torage plugin is enabled
For sum() queries DrillConvertSumToSumZero rule is applied. But during converting to new aggregate call, this call was created with name set to null, therefore column alias was lost when RDBMS storage plugin was enabled. RDBMS storage plugin was adding new rule during PHYSICAL phase - ReduceProjectRule. Since Project stage was removed alias was lost.