Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
0.7.0, 0.8.0
-
None
Description
The Drill query engine rejects column aliases for aggregates or group by fields where the alias includes a dot.
For example:
select count(*) as `test.field` from cp.`employee.json`;
throws an error with "Field references must be singular names."
Having reviewed the code, I can't quite see a reason for it, and when using FieldReference.getWithQuotedRef instead in AggPrelBase, the issue is alleviated with no visible side effects.
I'm sure there was a reason for this code in FieldReference, but I can't seem to work out why, and it seems entirely reasonable to allow a dot in a column alias.
Attachments
Attachments
Issue Links
- is related to
-
DRILL-3885 Column alias "`f.c`" rejected if number of regions is > 1 in HBase unit tests
- Open
- relates to
-
DRILL-4264 Allow field names to include dots
- Resolved