We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b9db6d commit 56b1272Copy full SHA for 56b1272
notion_pipeline.py
@@ -9,8 +9,25 @@ def load_notion_data() -> None:
9
pipeline = dlt.pipeline(
10
pipeline_name="notion_pipeline", destination="duckdb", dev_mode=DEV_MODE
11
)
12
+
13
+ def column_name_projection(
14
+ prop: DatabaseProperty, normalize: Callable[[str], str]
15
+ ) -> str:
16
+ result_name = normalize(prop.name)
17
+ if result_name in [
18
+ "my_column_name",
19
+ ]:
20
+ return None
21
+ return result_name
22
23
+ my_db = DatabaseResource(
24
+ database_id="12345678912345678912345678912345",
25
+ column_name_projection=column_name_projection,
26
+ )
27
28
data = source(
29
limit=-1 if not DEV_MODE else 1,
30
+ databases=[my_db],
31
32
info = pipeline.run(
33
data,
0 commit comments