[minor](Nereids): add toString() for LogicalProperties (#19851)

This commit is contained in:
jakevin
2023-05-19 13:46:47 +08:00
committed by GitHub
parent 92c6a3c53b
commit fcffb1d3de
2 changed files with 13 additions and 4 deletions

View File

@ -107,6 +107,19 @@ public class LogicalProperties {
return new LogicalProperties(Suppliers.ofInstance(output), nonUserVisibleOutputSupplier);
}
@Override
public String toString() {
return "LogicalProperties{"
+ "\noutputSupplier=" + outputSupplier.get()
+ "\nnonUserVisibleOutputSupplier=" + nonUserVisibleOutputSupplier.get()
+ "\noutputExprIdsSupplier=" + outputExprIdsSupplier.get()
+ "\noutputSetSupplier=" + outputSetSupplier.get()
+ "\noutputMapSupplier=" + outputMapSupplier.get()
+ "\noutputExprIdSetSupplier=" + outputExprIdSetSupplier.get()
+ "\nhashCode=" + hashCode
+ '}';
}
@Override
public boolean equals(Object o) {
if (this == o) {

View File

@ -176,10 +176,6 @@ public class SlotReference extends Slot {
return this;
}
public SlotReference withDataType(DataType dataType) {
return new SlotReference(exprId, name, dataType, nullable, qualifier, column);
}
public SlotReference withNullable(boolean newNullable) {
if (this.nullable == newNullable) {
return this;