Could not resolve VIEW with SimpleCalciteSchema

Details

Description

The current implementation (ever since its first version) of SimpleCalciteSchema.getImplicitTableBasedOnNullaryFunction() is wrong, but it was not revealed until Julian Hyde's check-in for CALCITE-1563.
The implementation 1) did not use "tableName" in finding the functions at all; 2) was caching based.