[minor](*): remove redundant log and unused code. (#11620)
This commit is contained in:
@ -41,7 +41,7 @@ public abstract class AliasGenerator {
|
||||
public String getNextAlias() {
|
||||
Preconditions.checkNotNull(aliasPrefix);
|
||||
while (true) {
|
||||
String candidateAlias = aliasPrefix + Integer.toString(numGeneratedAliases++);
|
||||
String candidateAlias = aliasPrefix + (numGeneratedAliases++);
|
||||
if (usedAliases.add(candidateAlias)) {
|
||||
// add success
|
||||
return candidateAlias;
|
||||
|
||||
@ -33,7 +33,6 @@ import org.apache.doris.thrift.TAnalyticNode;
|
||||
import org.apache.doris.thrift.TExplainLevel;
|
||||
import org.apache.doris.thrift.TPlanNode;
|
||||
import org.apache.doris.thrift.TPlanNodeType;
|
||||
import org.apache.doris.thrift.TQueryOptions;
|
||||
|
||||
import com.google.common.base.Joiner;
|
||||
import com.google.common.base.MoreObjects;
|
||||
@ -263,11 +262,4 @@ public class AnalyticEvalNode extends PlanNode {
|
||||
|
||||
return output.toString();
|
||||
}
|
||||
|
||||
public void computeCosts(TQueryOptions queryOptions) {
|
||||
Preconditions.checkNotNull(fragmentId,
|
||||
"PlanNode must be placed into a fragment before calling this method.");
|
||||
// TODO: come up with estimate based on window
|
||||
cardinality = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,34 +0,0 @@
|
||||
// Licensed to the Apache Software Foundation (ASF) under one
|
||||
// or more contributor license agreements. See the NOTICE file
|
||||
// distributed with this work for additional information
|
||||
// regarding copyright ownership. The ASF licenses this file
|
||||
// to you under the Apache License, Version 2.0 (the
|
||||
// "License"); you may not use this file except in compliance
|
||||
// with the License. You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing,
|
||||
// software distributed under the License is distributed on an
|
||||
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
// KIND, either express or implied. See the License for the
|
||||
// specific language governing permissions and limitations
|
||||
// under the License.
|
||||
|
||||
package org.apache.doris.transaction;
|
||||
|
||||
|
||||
public class AbortTransactionException extends TransactionException {
|
||||
|
||||
public AbortTransactionException(String msg) {
|
||||
super(msg);
|
||||
}
|
||||
|
||||
public AbortTransactionException(String msg, Throwable e) {
|
||||
super(msg, e);
|
||||
}
|
||||
|
||||
public AbortTransactionException(String msg, long transactionId) {
|
||||
super(msg, transactionId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user