Index
            DeltaCDFConfig
¶
    
              Bases: BaseModel
This class holds the config for the DeltaCDFLoader.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| deduplication_columns | A list of columns used for deduplication. | required | |
| from_commit_version | The starting commit version. If None, it starts from the first viable version. | required | |
| to_commit_version | The ending commit version. If None, it goes up to the latest version. | required | |
| enable_full_load | Enables an initial full load of the target table. If
no valid delta load history for the table exists, the delta loader
will do a full load of the target table and set the metadata to the
newest commit version. This might be useful if the change data feed
history is incomplete, either because the table was vacuumed or the
change data feed was enabled later in the lifecycle of the table.
Otherwise the table will initially be loaded from the first valid
commit version. When True,  | required | 
Source code in src/cloe_nessy/integration/delta_loader/strategies/delta_cdf_loader.py
                
            DeltaCDFLoader
¶
    
              Bases: DeltaLoader
Implementation of the DeltaLoader interface using CDF strategy.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| config | DeltaCDFConfig | Configuration for the DeltaCDFLoader. | required | 
| table_identifier | str | Identifier for the table to be loaded. | required | 
| delta_load_identifier | str | Identifier for the delta load. | required | 
| metadata_table_identifier | str | None | Identifier for the metadata table. Defaults to None. | None | 
Source code in src/cloe_nessy/integration/delta_loader/strategies/delta_cdf_loader.py
                | 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 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 |  | 
            _check_cdf_enabled(table_identifier)
¶
    Checks if Change Data Feed is enabled for the table.
Source code in src/cloe_nessy/integration/delta_loader/strategies/delta_cdf_loader.py
              
            _get_commit_versions()
¶
    Retrieves the starting and ending commit versions for CDF data.
Source code in src/cloe_nessy/integration/delta_loader/strategies/delta_cdf_loader.py
              | 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 |  | 
            _has_valid_metadata()
¶
    Checks if valid (i.e. non-stale) metadata exists for the delta load.
Source code in src/cloe_nessy/integration/delta_loader/strategies/delta_cdf_loader.py
              
            read_data(options=None)
¶
    Reads data using the CDF strategy.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| options | dict[str, str] | None | Additional DataFrameReader options. | None | 
Source code in src/cloe_nessy/integration/delta_loader/strategies/delta_cdf_loader.py
              
            verify()
¶
    Verify that the source table has the Change Data Feed enabled.
Source code in src/cloe_nessy/integration/delta_loader/strategies/delta_cdf_loader.py
              
            DeltaTimestampConfig
¶
    
              Bases: BaseModel
This class holds the config for the DeltaTimestampLoader.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| timestamp_filter_cols | A list of columns used for timestamp filtering. | required | |
| from_timestamp | The starting timestamp. If None, it starts from the beginning. | required | |
| to_timestamp | The ending timestamp. If None, it goes up to the latest timestamp. | required | |
| filter_method | The method used for filtering when multiple timestamp columns are used. Allowed values are '||', '&&', 'OR', 'AND'. Defaults to None. | required | 
Source code in src/cloe_nessy/integration/delta_loader/strategies/delta_timestamp_loader.py
                
            check_filter_method()
¶
    Validates that a filter method is set, when more than one timestamp col is used.
Source code in src/cloe_nessy/integration/delta_loader/strategies/delta_timestamp_loader.py
              
            parse_datetime(value)
  
      classmethod
  
¶
    Parses datetime input.
If a string is parsed, it is expected to be in ISO 8601 format.
Source code in src/cloe_nessy/integration/delta_loader/strategies/delta_timestamp_loader.py
              
            parse_filter_method(value)
  
      classmethod
  
¶
    Parses and validates filter_method input.
Source code in src/cloe_nessy/integration/delta_loader/strategies/delta_timestamp_loader.py
              
            DeltaTimestampLoader
¶
    
              Bases: DeltaLoader
Implementation of the DeltaLoader interface using timestamp strategy.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| config | DeltaTimestampConfig | Configuration for the DeltaTimestampLoader. | required | 
| table_identifier | str | Identifier for the table to be loaded. | required | 
| delta_load_identifier | str | Identifier for the delta load. | required | 
| metadata_table_identifier | str | None | Identifier for the metadata table. Defaults to None. | None | 
Source code in src/cloe_nessy/integration/delta_loader/strategies/delta_timestamp_loader.py
                | 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 |  | 
            _get_last_timestamp()
¶
    Retrieves last read timestamp for delta load.
Source code in src/cloe_nessy/integration/delta_loader/strategies/delta_timestamp_loader.py
              
            read_data(options=None)
¶
    Reads data using the Timestamp strategy.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| options | dict[str, str] | None | Additional DataFrameReader options. | None | 
Source code in src/cloe_nessy/integration/delta_loader/strategies/delta_timestamp_loader.py
              
            verify()
¶
    Verify that the source table has the Change Data Feed enabled.