Package org.apache.calcite.sql.type
Class SqlTypeFactoryTest
- java.lang.Object
-
- org.apache.calcite.sql.type.SqlTypeFactoryTest
-
public class SqlTypeFactoryTest extends java.lang.Object
Test forSqlTypeFactoryImpl
.
-
-
Constructor Summary
Constructors Constructor Description SqlTypeFactoryTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private int
checkPrecendenceList(org.apache.calcite.rel.type.RelDataType t, org.apache.calcite.rel.type.RelDataType type1, org.apache.calcite.rel.type.RelDataType type2)
private void
checkPrecision(int p0, int p1, int expectedMax, int expectedComparison)
void
testArrayPrecedenceList()
Unit test forArraySqlType.getPrecedenceList()
.void
testLeastRestrictiveWithAny()
void
testLeastRestrictiveWithNull()
void
testLeastRestrictiveWithNullability()
void
testLeastRestrictiveWithNumbers()
void
testMaxPrecision()
Unit test forSqlTypeUtil.comparePrecision(int, int)
andSqlTypeUtil.maxPrecision(int, int)
.
-
-
-
Method Detail
-
testLeastRestrictiveWithAny
public void testLeastRestrictiveWithAny()
-
testLeastRestrictiveWithNumbers
public void testLeastRestrictiveWithNumbers()
-
testLeastRestrictiveWithNullability
public void testLeastRestrictiveWithNullability()
-
testLeastRestrictiveWithNull
public void testLeastRestrictiveWithNull()
-
testMaxPrecision
public void testMaxPrecision()
Unit test forSqlTypeUtil.comparePrecision(int, int)
andSqlTypeUtil.maxPrecision(int, int)
.
-
testArrayPrecedenceList
public void testArrayPrecedenceList()
Unit test forArraySqlType.getPrecedenceList()
.
-
checkPrecendenceList
private int checkPrecendenceList(org.apache.calcite.rel.type.RelDataType t, org.apache.calcite.rel.type.RelDataType type1, org.apache.calcite.rel.type.RelDataType type2)
-
checkPrecision
private void checkPrecision(int p0, int p1, int expectedMax, int expectedComparison)
-
-