FrankChen021 commented on issue #11695:
URL: https://github.com/apache/druid/issues/11695#issuecomment-947286603


   Good catch, you've already find a workaround.
   
   For code change, we don't need to make changes to calcite. If I remember 
correctly, we just need to make change to the following function in 
`DruidTypeSystem` to return precision for dates. Your can dive into the 
`RelDataTypeSystem.DEFAULT.getDefaultPrecision` to see how calcite returns the 
precision for different types.
   
   ```
     @Override
     public int getDefaultPrecision(final SqlTypeName typeName)
     {
       return RelDataTypeSystem.DEFAULT.getDefaultPrecision(typeName);
     }
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to