-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3dce5a8
commit 4d6a6e4
Showing
13 changed files
with
269 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import { FlowConnectionConfigs, QRepSyncMode } from '@/grpc_generated/flow'; | ||
|
||
const syncModeToLabel = (mode: QRepSyncMode) => { | ||
switch (mode) { | ||
case QRepSyncMode.QREP_SYNC_MODE_STORAGE_AVRO: | ||
return 'AVRO'; | ||
case QRepSyncMode.QREP_SYNC_MODE_MULTI_INSERT: | ||
return 'Copy with Binary'; | ||
default: | ||
return 'AVRO'; | ||
} | ||
}; | ||
const MirrorValues = (mirrorConfig: FlowConnectionConfigs | undefined) => { | ||
return [ | ||
{ | ||
value: `${mirrorConfig?.maxBatchSize} rows`, | ||
label: 'Pull Batch Size', | ||
}, | ||
{ | ||
value: `${mirrorConfig?.snapshotNumRowsPerPartition} rows`, | ||
label: 'Snapshot Rows Per Partition', | ||
}, | ||
{ | ||
value: `${mirrorConfig?.snapshotNumTablesInParallel} table(s)`, | ||
label: 'Snapshot Tables In Parallel', | ||
}, | ||
{ | ||
value: `${mirrorConfig?.snapshotMaxParallelWorkers} worker(s)`, | ||
label: 'Snapshot Parallel Tables', | ||
}, | ||
{ | ||
value: `${syncModeToLabel(mirrorConfig?.cdcSyncMode!)} mode`, | ||
label: 'CDC Sync Mode', | ||
}, | ||
{ | ||
value: `${syncModeToLabel(mirrorConfig?.snapshotSyncMode!)} mode`, | ||
label: 'Snapshot Sync Mode', | ||
}, | ||
{ | ||
value: `${ | ||
mirrorConfig?.cdcStagingPath?.length | ||
? mirrorConfig?.cdcStagingPath | ||
: 'Local' | ||
}`, | ||
label: 'CDC Staging Path', | ||
}, | ||
{ | ||
value: `${ | ||
mirrorConfig?.snapshotStagingPath?.length | ||
? mirrorConfig?.snapshotStagingPath | ||
: 'Local' | ||
}`, | ||
label: 'Snapshot Staging Path', | ||
}, | ||
]; | ||
}; | ||
export default MirrorValues; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.