MCPcopy
hub / github.com/apache/druid / of

Method of

sql/src/test/java/org/apache/druid/sql/calcite/SqlSchema.java:111–119  ·  view source on GitHub ↗
(RelDataType rowType)

Source from the content-addressed store, hash-verified

109 }
110
111 public static SqlSchema of(RelDataType rowType)
112 {
113 final Builder builder = new Builder();
114 List<RelDataTypeField> fields = rowType.getFieldList();
115 for (RelDataTypeField field : fields) {
116 builder.column(field.getName(), field.getType().getFullTypeString());
117 }
118 return builder.build();
119 }
120
121 @Override
122 public String toString()

Calls 5

columnMethod · 0.95
buildMethod · 0.95
getFieldListMethod · 0.80
getNameMethod · 0.65
getTypeMethod · 0.65

Tested by

no test coverage detected