mirror of https://github.com/apache/druid.git
add supported indexSpec options (#13388)
This commit is contained in:
parent
c628947c31
commit
08fa0383b9
|
@ -52,6 +52,7 @@ export interface Field<M> {
|
||||||
suggestions?: Functor<M, Suggestion[]>;
|
suggestions?: Functor<M, Suggestion[]>;
|
||||||
placeholder?: Functor<M, string>;
|
placeholder?: Functor<M, string>;
|
||||||
min?: number;
|
min?: number;
|
||||||
|
max?: number;
|
||||||
zeroMeansUndefined?: boolean;
|
zeroMeansUndefined?: boolean;
|
||||||
height?: string;
|
height?: string;
|
||||||
disabled?: Functor<M, boolean>;
|
disabled?: Functor<M, boolean>;
|
||||||
|
@ -249,6 +250,7 @@ export class AutoForm<T extends Record<string, any>> extends React.PureComponent
|
||||||
if (onFinalize) onFinalize();
|
if (onFinalize) onFinalize();
|
||||||
}}
|
}}
|
||||||
min={field.min || 0}
|
min={field.min || 0}
|
||||||
|
max={field.max}
|
||||||
fill
|
fill
|
||||||
large={large}
|
large={large}
|
||||||
disabled={AutoForm.evaluateFunctor(field.disabled, model, false)}
|
disabled={AutoForm.evaluateFunctor(field.disabled, model, false)}
|
||||||
|
|
|
@ -1867,6 +1867,7 @@ const TUNING_FORM_FIELDS: Field<IngestionSpec>[] = [
|
||||||
hideInMore: true,
|
hideInMore: true,
|
||||||
info: <>Milliseconds to wait for segment handoff. 0 means to wait forever.</>,
|
info: <>Milliseconds to wait for segment handoff. 0 means to wait forever.</>,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
name: 'spec.tuningConfig.indexSpec.bitmap.type',
|
name: 'spec.tuningConfig.indexSpec.bitmap.type',
|
||||||
label: 'Index bitmap type',
|
label: 'Index bitmap type',
|
||||||
|
@ -1876,21 +1877,67 @@ const TUNING_FORM_FIELDS: Field<IngestionSpec>[] = [
|
||||||
hideInMore: true,
|
hideInMore: true,
|
||||||
info: <>Compression format for bitmap indexes.</>,
|
info: <>Compression format for bitmap indexes.</>,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'spec.tuningConfig.indexSpec.bitmap.compressRunOnSerialization',
|
||||||
|
type: 'boolean',
|
||||||
|
defaultValue: true,
|
||||||
|
defined: spec => deepGet(spec, 'spec.tuningConfig.indexSpec.bitmap.type') === 'roaring',
|
||||||
|
info: (
|
||||||
|
<>
|
||||||
|
Controls whether or not run-length encoding will be used when it is determined to be more
|
||||||
|
space-efficient.
|
||||||
|
</>
|
||||||
|
),
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
name: 'spec.tuningConfig.indexSpec.dimensionCompression',
|
name: 'spec.tuningConfig.indexSpec.dimensionCompression',
|
||||||
label: 'Index dimension compression',
|
label: 'Index dimension compression',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
defaultValue: 'lz4',
|
defaultValue: 'lz4',
|
||||||
suggestions: ['lz4', 'lzf', 'uncompressed'],
|
suggestions: ['lz4', 'lzf', 'zstd', 'uncompressed'],
|
||||||
hideInMore: true,
|
hideInMore: true,
|
||||||
info: <>Compression format for dimension columns.</>,
|
info: <>Compression format for dimension columns.</>,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
name: 'spec.tuningConfig.indexSpec.stringDictionaryEncoding.type',
|
||||||
|
label: 'Index string dictionary encoding',
|
||||||
|
type: 'string',
|
||||||
|
defaultValue: 'utf8',
|
||||||
|
suggestions: ['utf8', 'frontCoded'],
|
||||||
|
hideInMore: true,
|
||||||
|
info: (
|
||||||
|
<>
|
||||||
|
Encoding format for STRING value dictionaries used by STRING and COMPLEX<json>
|
||||||
|
columns.
|
||||||
|
</>
|
||||||
|
),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'spec.tuningConfig.indexSpec.stringDictionaryEncoding.bucketSize',
|
||||||
|
label: 'Index string dictionary encoding bucket size',
|
||||||
|
type: 'number',
|
||||||
|
defaultValue: 4,
|
||||||
|
min: 1,
|
||||||
|
max: 128,
|
||||||
|
defined: spec =>
|
||||||
|
deepGet(spec, 'spec.tuningConfig.indexSpec.stringDictionaryEncoding.type') === 'frontCoded',
|
||||||
|
hideInMore: true,
|
||||||
|
info: (
|
||||||
|
<>
|
||||||
|
The number of values to place in a bucket to perform delta encoding. Must be a power of 2,
|
||||||
|
maximum is 128.
|
||||||
|
</>
|
||||||
|
),
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
name: 'spec.tuningConfig.indexSpec.metricCompression',
|
name: 'spec.tuningConfig.indexSpec.metricCompression',
|
||||||
label: 'Index metric compression',
|
label: 'Index metric compression',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
defaultValue: 'lz4',
|
defaultValue: 'lz4',
|
||||||
suggestions: ['lz4', 'lzf', 'uncompressed'],
|
suggestions: ['lz4', 'lzf', 'zstd', 'uncompressed'],
|
||||||
hideInMore: true,
|
hideInMore: true,
|
||||||
info: <>Compression format for primitive type metric columns.</>,
|
info: <>Compression format for primitive type metric columns.</>,
|
||||||
},
|
},
|
||||||
|
@ -1910,6 +1957,15 @@ const TUNING_FORM_FIELDS: Field<IngestionSpec>[] = [
|
||||||
</>
|
</>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'spec.tuningConfig.indexSpec.jsonCompression',
|
||||||
|
label: 'Index JSON compression',
|
||||||
|
type: 'string',
|
||||||
|
defaultValue: 'lz4',
|
||||||
|
suggestions: ['lz4', 'lzf', 'zstd', 'uncompressed'],
|
||||||
|
hideInMore: true,
|
||||||
|
info: <>Compression format to use for nested column raw data. </>,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'spec.tuningConfig.splitHintSpec.maxSplitSize',
|
name: 'spec.tuningConfig.splitHintSpec.maxSplitSize',
|
||||||
type: 'number',
|
type: 'number',
|
||||||
|
|
Loading…
Reference in New Issue