Only set table sql prop if it is needed, undefined for consistency as it is with Lucene.
This commit is contained in:
parent
821708e79a
commit
944be41670
|
@ -28,13 +28,16 @@ export function processTable(table: Table): Table {
|
||||||
sourceType: TableSourceType.EXTERNAL,
|
sourceType: TableSourceType.EXTERNAL,
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return {
|
const processed: Table = {
|
||||||
...table,
|
...table,
|
||||||
sql: !!env.SQS_SEARCH_ENABLE,
|
|
||||||
type: "table",
|
type: "table",
|
||||||
sourceId: table.sourceId || INTERNAL_TABLE_SOURCE_ID,
|
sourceId: table.sourceId || INTERNAL_TABLE_SOURCE_ID,
|
||||||
sourceType: TableSourceType.INTERNAL,
|
sourceType: TableSourceType.INTERNAL,
|
||||||
}
|
}
|
||||||
|
if (env.SQS_SEARCH_ENABLE) {
|
||||||
|
processed.sql = !!env.SQS_SEARCH_ENABLE
|
||||||
|
}
|
||||||
|
return processed
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue