This is an automated email from the ASF dual-hosted git repository.
jakevin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new fcffb1d3de [minor](Nereids): add toString() for LogicalProperties
(#19851)
fcffb1d3de is described below
commit fcffb1d3de95a0b3509b479e9ac59df924d7ed98
Author: jakevin <[email protected]>
AuthorDate: Fri May 19 13:46:47 2023 +0800
[minor](Nereids): add toString() for LogicalProperties (#19851)
---
.../apache/doris/nereids/properties/LogicalProperties.java | 13 +++++++++++++
.../doris/nereids/trees/expressions/SlotReference.java | 4 ----
2 files changed, 13 insertions(+), 4 deletions(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/nereids/properties/LogicalProperties.java
b/fe/fe-core/src/main/java/org/apache/doris/nereids/properties/LogicalProperties.java
index 913d565ac9..cb9584086d 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/nereids/properties/LogicalProperties.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/nereids/properties/LogicalProperties.java
@@ -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) {
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/SlotReference.java
b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/SlotReference.java
index edc683c8fe..309ffd7bcc 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/SlotReference.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/SlotReference.java
@@ -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;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]