dynamobi/dynamobi — Issue #849: [FRG-21] Data types are not validated outside of a DDL context
Author: dynamobi-build
Created: 2011-12-30 03:52:39+00:00
State: open
Labels: FRG, SQL Validator

[reporter="angel", created="Mon, 16 Jan 2006 21:18:58 -0500 (GMT-05:00)"]
Outside of a DDL context, things like precision and scale for a data type are not validated.

For instance, the validator doesn't catch expressions such as "cast (true as boolean(0))". The validator should indicate that the boolean data type does not take a precision.

Looks like SqlValidatorImpl.validateDataType need to share some code with DdlHandler.