Skip to content

Commit 47154bd

Browse files
authored
fix: allow none ordinal in indexing status API (#1202)
1 parent 7ea85d0 commit 47154bd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/execution/indexing_status.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub struct SourceRowLastProcessedInfo {
1313

1414
#[derive(Debug, Serialize)]
1515
pub struct SourceRowInfo {
16-
pub ordinal: interface::Ordinal,
16+
pub ordinal: Option<interface::Ordinal>,
1717
}
1818

1919
#[derive(Debug, Serialize)]
@@ -57,9 +57,7 @@ pub async fn get_source_row_indexing_status(
5757
.map_or(false, |fp| src_eval_ctx.plan.logic_fingerprint.matches(fp)),
5858
});
5959
let current = SourceRowInfo {
60-
ordinal: current
61-
.ordinal
62-
.ok_or(anyhow::anyhow!("Ordinal is unavailable for the source"))?,
60+
ordinal: current.ordinal,
6361
};
6462
Ok(SourceRowIndexingStatus {
6563
last_processed,

0 commit comments

Comments
 (0)