[refactor](mysql result format) use new serde framework to tuple convert (#25006)

This commit is contained in:
zhiqiang
2023-10-14 06:46:42 -05:00
committed by GitHub
parent b946521a56
commit e5ef0aa6d4
15 changed files with 160 additions and 10 deletions

View File

@ -253,6 +253,7 @@ public class Coordinator implements CoordInterface {
private boolean enablePipelineEngine = false;
private boolean enablePipelineXEngine = false;
private boolean fasterFloatConvert = false;
// Runtime filter merge instance address and ID
public TNetworkAddress runtimeFilterMergeAddr;
@ -324,6 +325,7 @@ public class Coordinator implements CoordInterface {
&& (fragments.size() > 0);
this.enablePipelineXEngine = context.getSessionVariable().getEnablePipelineXEngine()
&& (fragments.size() > 0);
this.fasterFloatConvert = context.getSessionVariable().fasterFloatConvert();
initQueryOptions(context);

View File

@ -416,6 +416,8 @@ public class SessionVariable implements Serializable, Writable {
public static final String ENABLE_FULL_AUTO_ANALYZE = "enable_full_auto_analyze";
public static final String FASTER_FLOAT_CONVERT = "faster_float_convert";
public static final List<String> DEBUG_VARIABLES = ImmutableList.of(
SKIP_DELETE_PREDICATE,
SKIP_DELETE_BITMAP,
@ -1224,6 +1226,10 @@ public class SessionVariable implements Serializable, Writable {
flag = VariableMgr.GLOBAL)
public boolean enableFullAutoAnalyze = true;
@VariableMgr.VarAttr(name = FASTER_FLOAT_CONVERT,
description = {"是否启用更快的浮点数转换算法,注意会影响输出格式", "Set true to enable faster float pointer number convert"})
public boolean fasterFloatConvert = false;
// If this fe is in fuzzy mode, then will use initFuzzyModeVariables to generate some variables,
// not the default value set in the code.
public void initFuzzyModeVariables() {
@ -2345,6 +2351,8 @@ public class SessionVariable implements Serializable, Writable {
tResult.setInvertedIndexConjunctionOptThreshold(invertedIndexConjunctionOptThreshold);
tResult.setFasterFloatConvert(fasterFloatConvert);
return tResult;
}
@ -2679,4 +2687,8 @@ public class SessionVariable implements Serializable, Writable {
public int getProfileLevel() {
return this.profileLevel;
}
public boolean fasterFloatConvert() {
return this.fasterFloatConvert;
}
}