Tested in Aqua Data Studio 14.0.0-rc-20 Build #: 33993 on Ubuntu 12.04( Mongo DB 2.4.3)
Tested in Aqua Data Studio 14.0.0-rc-39 Build #: 34238 on Ubuntu 12.04( Mongo DB 2.4.3)
SELECT month(dates) FROM orddate GROUP BY max(dates)
-- Exception occurred during aggregation: exception: can't convert from BSON type EOO to Date
go
Tested in Aqua Data Studio 14.0.0-rc-39 Build #: 34238 on Ubuntu 12.04( Mongo DB 2.4.3)
SELECT month(dates) FROM orddate GROUP BY max(dates)
-- Exception occurred during aggregation: exception: can't convert from BSON type EOO to Date
go
Emil, please investigate and let us know what the problem is.
Emil, please investigate and let us know what the problem is.
This exception occurs when a date conversion operator ( $month, $year etc) tries to perform the operation on a field that is not available. On this scenario, the dates field from month(dates) is not available after aggregation. Thus, the following exception is now thrown:
SELECT month(dates) FROM orddate GROUP BY max(dates)
-- The 'dates' argument of the month() function is available only if it also occurs under the GROUP BY clause.
This exception occurs when a date conversion operator ( $month, $year etc) tries to perform the operation on a field that is not available. On this scenario, the dates field from month(dates) is not available after aggregation. Thus, the following exception is now thrown:
SELECT month(dates) FROM orddate GROUP BY max(dates)
-- The 'dates' argument of the month() function is available only if it also occurs under the GROUP BY clause.
Issue #10046 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
Fixed Build ADS 14.0.0-2 (mongo-jdbc 1.3.8) |
No time estimate |
1 issue link |
relates to #9942
Issue #9942Exception: can't convert from BSON type EO0 E00 EOO to Date for month() in aggregate framework |