Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shirly121 committed Dec 30, 2024
1 parent fc6820b commit 6d71da7
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ public GraphOperandMetaDataImpl(
@Override
protected Collection<SqlTypeName> getAllowedTypeNames(
RelDataTypeFactory typeFactory, SqlTypeFamily family, int iFormalOperand) {
// by default, the types in the same type family are not allowed to cast among each other,
// i.e. int32 to int64, char to varchar
// set the allowCast to true to enable the cast, see
// 'test/resources/config/modern/graph.yaml' for more usage
boolean allowCast = this.allowCast.test(iFormalOperand);
if (allowCast) {
return family.getTypeNames();
Expand Down

0 comments on commit 6d71da7

Please sign in to comment.