mirror of https://github.com/apache/druid.git
Web Console: allow pollPeriod to be defined in JDBC lookup config (#11193)
* allow pollPeriod to be defined in JDBC lookup config * add test * save the whales
This commit is contained in:
parent
204901a602
commit
cd1ddcd36b
|
@ -416,6 +416,7 @@ describe('lookup-spec', () => {
|
|||
table: 'some_lookup_table',
|
||||
keyColumn: 'the_old_dim_value',
|
||||
valueColumn: 'the_new_dim_value',
|
||||
pollPeriod: 600000,
|
||||
},
|
||||
}),
|
||||
).toBe(false);
|
||||
|
|
|
@ -263,7 +263,8 @@ export const LOOKUP_FIELDS: Field<LookupSpec>[] = [
|
|||
name: 'extractionNamespace.pollPeriod',
|
||||
type: 'string',
|
||||
defaultValue: '0',
|
||||
defined: (model: LookupSpec) => deepGet(model, 'extractionNamespace.type') === 'uri',
|
||||
defined: (model: LookupSpec) =>
|
||||
oneOf(deepGet(model, 'extractionNamespace.type'), 'uri', 'jdbc'),
|
||||
info: `Period between polling for updates`,
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue