In Oracle's documentation, for the estimator in optimizer, there is a schema like this: https://docs.oracle.com/database/121/TGSQL/img/GUID-22630970-B584-41C9-B104-200CEA2F4707-default.gif
Normally, as I know, the plan generator generates the plans and handles these plans to the estimator consecutively, to estimate their costs. However, in this schema, after the query transformer, the query is directly passed to the estimator. But there is not any plan yet.
My question is, what happens when the query is first handled to the estimator from the query transformer? Because there is no plan yet. So how it calculates the cost? Or does it directly pass it to the plan generator without any cost in the first time?
Thanks in advance.