1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
//! Errors related to discovering and validating timestamp columns in schemas.
//!
//! When processing Parquet or Arrow data, the crate needs to locate and validate
//! the timestamp column specified in the table's index spec. This module provides
//! error types for the common failure modes:
//! - Column not found in schema.
//! - Column uses an unsupported Parquet physical/logical type pair.
//! - Column uses an unsupported Arrow data type.
//!
//! These errors are used by segment metadata validation, coverage computation,
//! and schema introspection logic.
use Snafu;
/// Errors that can occur when locating or validating a timestamp column.
///
/// A timestamp column is required by the table's time index specification to
/// enable time-series range queries and coverage computation. This enum captures
/// the various ways that validation can fail:
/// - The column may not exist in the schema.
/// - The column may exist but use a Parquet type that is not supported.
/// - The column may exist but use an Arrow type that is not supported.