Java Code Examples for org.apache.calcite.util.Util#sepList()
The following examples show how to use
org.apache.calcite.util.Util#sepList() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SetOp.java From Bats with Apache License 2.0 | 5 votes |
@Override protected RelDataType deriveRowType() { final List<RelDataType> inputRowTypes = Lists.transform(inputs, RelNode::getRowType); final RelDataType rowType = getCluster().getTypeFactory().leastRestrictive(inputRowTypes); if (rowType == null) { throw new IllegalArgumentException("Cannot compute compatible row type " + "for arguments to set op: " + Util.sepList(inputRowTypes, ", ")); } return rowType; }
Example 2
Source File: SetOp.java From calcite with Apache License 2.0 | 5 votes |
@Override protected RelDataType deriveRowType() { final List<RelDataType> inputRowTypes = Lists.transform(inputs, RelNode::getRowType); final RelDataType rowType = getCluster().getTypeFactory().leastRestrictive(inputRowTypes); if (rowType == null) { throw new IllegalArgumentException("Cannot compute compatible row type " + "for arguments to set op: " + Util.sepList(inputRowTypes, ", ")); } return rowType; }
Example 3
Source File: RepeatUnion.java From calcite with Apache License 2.0 | 5 votes |
@Override protected RelDataType deriveRowType() { final List<RelDataType> inputRowTypes = Lists.transform(getInputs(), RelNode::getRowType); final RelDataType rowType = getCluster().getTypeFactory().leastRestrictive(inputRowTypes); if (rowType == null) { throw new IllegalArgumentException("Cannot compute compatible row type " + "for arguments: " + Util.sepList(inputRowTypes, ", ")); } return rowType; }
Example 4
Source File: SqlIdentifier.java From Bats with Apache License 2.0 | 4 votes |
/** Converts a list of strings to a qualified identifier. */ public static String getString(List<String> names) { return Util.sepList(toStar(names), "."); }
Example 5
Source File: SqlMonikerImpl.java From Bats with Apache License 2.0 | 4 votes |
public String toString() { return Util.sepList(names, "."); }
Example 6
Source File: SqlIdentifier.java From calcite with Apache License 2.0 | 4 votes |
/** Converts a list of strings to a qualified identifier. */ public static String getString(List<String> names) { return Util.sepList(toStar(names), "."); }
Example 7
Source File: SqlMonikerImpl.java From calcite with Apache License 2.0 | 4 votes |
public String toString() { return Util.sepList(names, "."); }