diff --git a/carrousels/Transactions.pdf b/carrousels/Transactions.pdf new file mode 100644 index 0000000..fc1bc58 Binary files /dev/null and b/carrousels/Transactions.pdf differ diff --git a/site/staticwebapp.config.json b/site/staticwebapp.config.json index 770631c..4775d71 100644 --- a/site/staticwebapp.config.json +++ b/site/staticwebapp.config.json @@ -9,6 +9,11 @@ "route": "/s/dml-privileges", "redirect": "/tips/Unity Catalog/FineGrainedDMLPrivileges.html", "statusCode": 301 + }, + { + "route": "/s/transactions", + "redirect": "/tips/Unity Catalog/Transactions.html", + "statusCode": 301 } ], "globalHeaders": { diff --git a/site/tips/Unity Catalog/Transactions.qmd b/site/tips/Unity Catalog/Transactions.qmd new file mode 100644 index 0000000..2f72c46 --- /dev/null +++ b/site/tips/Unity Catalog/Transactions.qmd @@ -0,0 +1,218 @@ +--- +title: "Make multi-table writes all-or-nothing" +description: "Transactions are GA on Unity Catalog managed tables. Wrap several statements in BEGIN ATOMIC ... END so they commit together or roll back together." +date-modified: "27/08/2026" +date-format: "DD/MM/YYYY" +categories: [Unity Catalog, Delta, sql, transactions] +toc: true +toc-title: Navigation +tags: + - databricks + - unity-catalog + - transactions + - delta + - sql + - tips +draft: false +--- + +## Summary + +- Wrap multiple SQL statements in `BEGIN ATOMIC ... END;` to commit them as one transaction. +- Every table you write to must be a Unity Catalog managed table with catalog commits enabled. +- A failure anywhere in the block rolls back the whole block. No partial writes reach the table. + +## The problem + +A pipeline that debits one table, credits another, and appends to an audit log runs three +statements. Each one commits on its own. If the second statement fails, the first is already +durable and the third never runs. The tables now disagree, and you repair them by hand. + +As of July 2026, transactions on Unity Catalog managed Delta tables are generally available. +Group the statements and the lakehouse guarantees all or nothing. + +## Before you begin + +You need the following: + +- A SQL warehouse, serverless compute, or a cluster running Databricks Runtime 18.0 or above. +- Unity Catalog managed tables with the `catalogManaged` table feature on every write target. +- Permission to create a schema and tables in a catalog. This guide uses `main`. + +## Create the tables + +Run the following statements outside a transaction. Transactions don't support DDL. + +Set `delta.feature.catalogManaged` at creation time. Catalog commits move commit coordination +from the file system to Unity Catalog, which is what lets one commit span two tables. + +``` sql +CREATE SCHEMA IF NOT EXISTS main.txn_demo; + +CREATE TABLE main.txn_demo.accounts ( + account_id BIGINT, + owner STRING, + balance DECIMAL(12, 2) +) TBLPROPERTIES ('delta.feature.catalogManaged' = 'supported'); + +CREATE TABLE main.txn_demo.transfer_log ( + from_account BIGINT, + to_account BIGINT, + amount DECIMAL(12, 2), + logged_at TIMESTAMP +) TBLPROPERTIES ('delta.feature.catalogManaged' = 'supported'); +``` + +Add a constraint so the example has a rule to break, then seed two accounts: + +``` sql +ALTER TABLE main.txn_demo.accounts + ADD CONSTRAINT positive_balance CHECK (balance >= 0); + +INSERT INTO main.txn_demo.accounts VALUES + (1, 'Ada', 500.00), + (2, 'Grace', 125.00); +``` + +To confirm that catalog commits are on, run `DESCRIBE DETAIL main.txn_demo.accounts` and look for +`catalogManaged` in the `tableFeatures` column. + +::: {.callout-note title="Existing tables" appearance="simple"} +To enable catalog commits on a table you already have, run +`ALTER TABLE SET TBLPROPERTIES ('delta.feature.catalogManaged' = 'supported')`. The +statement syncs table state with the catalog, so it can take several minutes on a table with a +long write history. +::: + +## Move money in one commit + +The following transaction debits one account, credits another, and writes the audit row. +All three statements commit together. + +``` sql +BEGIN ATOMIC + UPDATE main.txn_demo.accounts SET balance = balance - 100.00 WHERE account_id = 1; + UPDATE main.txn_demo.accounts SET balance = balance + 100.00 WHERE account_id = 2; + INSERT INTO main.txn_demo.transfer_log + VALUES (1, 2, 100.00, current_timestamp()); +END; +``` + +Check the result: + +``` sql +SELECT account_id, owner, balance FROM main.txn_demo.accounts ORDER BY account_id; +``` + +``` text +account_id owner balance +---------- ------ ------- +1 Ada 400.00 +2 Grace 225.00 +``` + +## Watch it roll back + +Now run a transfer that Grace can't cover. The audit row and the credit come first and both +succeed. The debit is last, and it violates `positive_balance`. + +``` sql +BEGIN ATOMIC + INSERT INTO main.txn_demo.transfer_log + VALUES (2, 1, 5000.00, current_timestamp()); + UPDATE main.txn_demo.accounts SET balance = balance + 5000.00 WHERE account_id = 1; + UPDATE main.txn_demo.accounts SET balance = balance - 5000.00 WHERE account_id = 2; +END; +``` + +The statement fails with `DELTA_VIOLATE_CONSTRAINT_WITH_VALUES`. Verify that the two successful +statements were undone as well: + +``` sql +SELECT + (SELECT balance FROM main.txn_demo.accounts WHERE account_id = 1) AS ada, + (SELECT count(*) FROM main.txn_demo.transfer_log) AS log_rows; +``` + +``` text +ada log_rows +------ -------- +400.00 1 +``` + +Ada's balance is untouched and the log still holds one row. Without the transaction, you would be +holding a phantom `5000.00` credit and an audit entry for a transfer that never happened. + +## Fail fast instead + +The rollback above does the right thing, but it does the work first and discards it. Validate up +front with [`SIGNAL`](https://learn.microsoft.com/en-us/azure/databricks/sql/language-manual/control-flow/signal-stmt), +which raises an error and triggers the same automatic rollback: + +``` sql +BEGIN ATOMIC + IF (SELECT balance FROM main.txn_demo.accounts WHERE account_id = 2) < 5000.00 THEN + SIGNAL SQLSTATE '75001' + SET MESSAGE_TEXT = 'Insufficient funds in account 2.'; + END IF; + + UPDATE main.txn_demo.accounts SET balance = balance - 5000.00 WHERE account_id = 2; + UPDATE main.txn_demo.accounts SET balance = balance + 5000.00 WHERE account_id = 1; +END; +``` + +## Choose a mode + +| Mode | Syntax | Commit and rollback | Conflict detection | Use it for | +|---|---|---|---|---| +| Non-interactive | `BEGIN ATOMIC ... END;` | Automatic | Row level | Jobs, pipelines, stored procedures | +| Interactive | `BEGIN TRANSACTION; ... COMMIT;` | Manual, with `ROLLBACK` | Table level | JDBC, ODBC, and Python clients that drive commits themselves | + +Prefer `BEGIN ATOMIC`. It detects conflicts at the row level, so two transactions can write +different rows of the same file without colliding, and it can't leave a session holding an open +transaction. + +Reach for interactive transactions when a client outside SQL decides whether to commit. Start +those sessions with a `ROLLBACK` to clear any leftover state, and note that they roll back after +10 minutes of inactivity. + +## Behaviour to plan for + +**Reads are repeatable.** The first time a transaction touches a table, it pins a snapshot. Every +later read of that table in the same transaction sees that snapshot, even if someone else commits +to it meanwhile. + +**Commits are optimistic.** Nothing locks. Conflicts surface at commit time, and the loser fails. +Retry failed transactions against fresh data rather than assuming they'll succeed. + +**One transaction is one Delta log entry.** However many statements ran, the table history shows a +single commit, with the individual operations as JSON metadata. Auditing and rollback stay simple. + +## Limits worth knowing + +- No DDL. Run `CREATE`, `ALTER`, and `DROP` outside the transaction. +- No time travel, no `SHOW TABLES`, and no queries against system tables inside a transaction. +- No path-based access. Selecting straight from a storage path fails with `PATH_BASED_ACCESS`. To + read a non-transactional source, register it as a table and add the + `WITH (allow_nontransactional_read = true)` hint. +- Up to 100 tables written or read, and up to 100 views read, per transaction. +- Every transaction rolls back after 48 hours. + +::: {.callout-important title="Iceberg" appearance="simple"} +Transactions that write to Unity Catalog managed Iceberg tables are still in Private Preview. +Managed Delta tables are GA. +::: + +## Clean up + +``` sql +DROP SCHEMA main.txn_demo CASCADE; +``` + +## References & Further Reading + +- [Transactions](https://learn.microsoft.com/en-us/azure/databricks/transactions/) +- [Transaction modes](https://learn.microsoft.com/en-us/azure/databricks/transactions/transaction-modes) +- [Catalog commits](https://learn.microsoft.com/en-us/azure/databricks/tables/features/catalog-commits) +- [ATOMIC compound statement](https://learn.microsoft.com/en-us/azure/databricks/sql/language-manual/sql-ref-syntax-txn-begin-atomic) +- [July 2026 platform release notes](https://learn.microsoft.com/en-us/azure/databricks/release-notes/product/2026/july) diff --git a/video/out/transactions/slide-0.png b/video/out/transactions/slide-0.png new file mode 100644 index 0000000..78028be Binary files /dev/null and b/video/out/transactions/slide-0.png differ diff --git a/video/out/transactions/slide-1.png b/video/out/transactions/slide-1.png new file mode 100644 index 0000000..2db948e Binary files /dev/null and b/video/out/transactions/slide-1.png differ diff --git a/video/out/transactions/slide-2.png b/video/out/transactions/slide-2.png new file mode 100644 index 0000000..7e4f569 Binary files /dev/null and b/video/out/transactions/slide-2.png differ diff --git a/video/out/transactions/slide-3.png b/video/out/transactions/slide-3.png new file mode 100644 index 0000000..a105669 Binary files /dev/null and b/video/out/transactions/slide-3.png differ diff --git a/video/out/transactions/slide-4.png b/video/out/transactions/slide-4.png new file mode 100644 index 0000000..5f36ec5 Binary files /dev/null and b/video/out/transactions/slide-4.png differ diff --git a/video/out/transactions/slide-5.png b/video/out/transactions/slide-5.png new file mode 100644 index 0000000..82dd8e9 Binary files /dev/null and b/video/out/transactions/slide-5.png differ diff --git a/video/package.json b/video/package.json index f6b3ed0..81c4d19 100644 --- a/video/package.json +++ b/video/package.json @@ -12,6 +12,7 @@ "render:delta-rs-intro": "remotion still DeltaRSIntroCarousel out/delta-rs-intro/slide-0.png --frame=0 --scale=2 && remotion still DeltaRSIntroCarousel out/delta-rs-intro/slide-1.png --frame=1 --scale=2 && remotion still DeltaRSIntroCarousel out/delta-rs-intro/slide-2.png --frame=2 --scale=2 && remotion still DeltaRSIntroCarousel out/delta-rs-intro/slide-3.png --frame=3 --scale=2 && remotion still DeltaRSIntroCarousel out/delta-rs-intro/slide-4.png --frame=4 --scale=2 && remotion still DeltaRSIntroCarousel out/delta-rs-intro/slide-5.png --frame=5 --scale=2", "render:delta-rs-code": "remotion still DeltaRSCodeCarousel out/delta-rs-code/slide-0.png --frame=0 --scale=2 && remotion still DeltaRSCodeCarousel out/delta-rs-code/slide-1.png --frame=1 --scale=2 && remotion still DeltaRSCodeCarousel out/delta-rs-code/slide-2.png --frame=2 --scale=2 && remotion still DeltaRSCodeCarousel out/delta-rs-code/slide-3.png --frame=3 --scale=2 && remotion still DeltaRSCodeCarousel out/delta-rs-code/slide-4.png --frame=4 --scale=2 && remotion still DeltaRSCodeCarousel out/delta-rs-code/slide-5.png --frame=5 --scale=2", "render:delta-rs-comparison": "remotion still DeltaRSComparisonCarousel out/delta-rs-comparison/slide-0.png --frame=0 --scale=2 && remotion still DeltaRSComparisonCarousel out/delta-rs-comparison/slide-1.png --frame=1 --scale=2 && remotion still DeltaRSComparisonCarousel out/delta-rs-comparison/slide-2.png --frame=2 --scale=2 && remotion still DeltaRSComparisonCarousel out/delta-rs-comparison/slide-3.png --frame=3 --scale=2 && remotion still DeltaRSComparisonCarousel out/delta-rs-comparison/slide-4.png --frame=4 --scale=2 && remotion still DeltaRSComparisonCarousel out/delta-rs-comparison/slide-5.png --frame=5 --scale=2", + "render:transactions": "remotion still TransactionsCarousel out/transactions/slide-0.png --frame=0 --scale=2 && remotion still TransactionsCarousel out/transactions/slide-1.png --frame=1 --scale=2 && remotion still TransactionsCarousel out/transactions/slide-2.png --frame=2 --scale=2 && remotion still TransactionsCarousel out/transactions/slide-3.png --frame=3 --scale=2 && remotion still TransactionsCarousel out/transactions/slide-4.png --frame=4 --scale=2 && remotion still TransactionsCarousel out/transactions/slide-5.png --frame=5 --scale=2", "render:delta-rs-video": "remotion render DeltaRSVideo out/delta-rs-video.mp4", "render:logo-reveal": "remotion render LogoRevealVideo out/logo-reveal.mp4", "render:end-card": "remotion still EndCardGenerator out/end-card.png --frame=0", diff --git a/video/src/Root.tsx b/video/src/Root.tsx index b39936d..9b42b49 100644 --- a/video/src/Root.tsx +++ b/video/src/Root.tsx @@ -12,6 +12,7 @@ import { TellRCarousel } from "./TellRCarousel"; import { DeltaRSIntroCarousel } from "./DeltaRSIntroCarousel"; import { DeltaRSCodeCarousel } from "./DeltaRSCodeCarousel"; import { DeltaRSComparisonCarousel } from "./DeltaRSComparisonCarousel"; +import { TransactionsCarousel } from "./TransactionsCarousel"; import { DeltaRSVideo } from "./DeltaRSVideo"; import { LogoRevealVideo } from "./LogoRevealVideo"; import { EndCardGenerator } from "./EndCardGenerator"; @@ -137,6 +138,14 @@ export const RemotionRoot: React.FC = () => { width={CAROUSEL_CONFIG.width} height={CAROUSEL_CONFIG.height} /> + { + return ( + <> + + + + + + + + + + + + + + + + + + + + + + + + + ); +}; diff --git a/video/src/components/carousel/slides/transactions/Slide1_Title.tsx b/video/src/components/carousel/slides/transactions/Slide1_Title.tsx new file mode 100644 index 0000000..4b243ce --- /dev/null +++ b/video/src/components/carousel/slides/transactions/Slide1_Title.tsx @@ -0,0 +1,117 @@ +import React from "react"; +import { AbsoluteFill, Img, staticFile } from "remotion"; +import { CAROUSEL_COLORS } from "../../../../lib/constants"; +import { FONTS } from "../../../../lib/fonts"; + +export const Slide1_Title: React.FC = () => { + return ( + + {/* Pre-title */} +

+ UNITY CATALOG · GA JULY 2026 +

+ + {/* Main Title */} +

+ ALL OR +
+ NOTHING +

+ + {/* Subtitle */} +

+ Wrap several SQL statements in one transaction. They commit together + or they roll back together. +

+ + {/* Syntax pill */} +
+ BEGIN ATOMIC ... END; +
+ + {/* Logo at bottom left */} +
+ +
+ + {/* Navigation Arrow */} +
+ + + +
+
+ ); +}; diff --git a/video/src/components/carousel/slides/transactions/Slide2_Problem.tsx b/video/src/components/carousel/slides/transactions/Slide2_Problem.tsx new file mode 100644 index 0000000..f13aa0a --- /dev/null +++ b/video/src/components/carousel/slides/transactions/Slide2_Problem.tsx @@ -0,0 +1,195 @@ +import React from "react"; +import { CarouselLayout } from "../../CarouselLayout"; +import { CAROUSEL_COLORS } from "../../../../lib/constants"; +import { FONTS } from "../../../../lib/fonts"; + +const statements = [ + { + sql: "UPDATE accounts SET balance = balance - 100 WHERE id = 1;", + status: "COMMITTED", + note: "Account 1 is debited. Durable, on disk, irreversible.", + ok: true, + }, + { + sql: "UPDATE accounts SET balance = balance + 100 WHERE id = 2;", + status: "FAILED", + note: "Account 2 never receives it.", + ok: false, + }, + { + sql: "INSERT INTO transfer_log VALUES (1, 2, 100, now());", + status: "NEVER RAN", + note: "No audit trail of any of it.", + ok: false, + }, +]; + +export const Slide2_Problem: React.FC = () => { + const sidebarContent = ( +
+

+ THE +
+ PROBLEM +

+
+ ); + + return ( + +
+

+ PROBLEM: 3 STATEMENTS, 3 SEPARATE COMMITS +

+ +
+ {statements.map((s, i) => ( +
+ {/* Step number */} +
+ {i + 1} +
+ + {/* SQL + note */} +
+
+ {s.sql} +
+
+ {s.note} +
+
+ + {/* Status badge */} +
+ {s.status} +
+
+ ))} +
+ + {/* Consequence banner */} +
+ {"\u{1F517}"} + + 3 commits with different outcomes but all part of the same + business transaction, so they should be coupled outcomes. + +
+
+
+ ); +}; diff --git a/video/src/components/carousel/slides/transactions/Slide3_Solution.tsx b/video/src/components/carousel/slides/transactions/Slide3_Solution.tsx new file mode 100644 index 0000000..238bbd1 --- /dev/null +++ b/video/src/components/carousel/slides/transactions/Slide3_Solution.tsx @@ -0,0 +1,210 @@ +import React from "react"; +import { CarouselLayout } from "../../CarouselLayout"; +import { CAROUSEL_COLORS } from "../../../../lib/constants"; +import { FONTS } from "../../../../lib/fonts"; +import { + CarouselCodeBlock, + Comment, + Method, + Str, + Plain, + Keyword, +} from "../../CarouselCodeBlock"; + +export const Slide3_Solution: React.FC = () => { + const sidebarContent = ( +
+

+ THE +
+ FIX +

+
+ ); + + const codeLines = [ + { + lineNumber: 1, + content: ( + <> + BEGIN ATOMIC + + ), + }, + { + lineNumber: 2, + content: ( + <> + {"\u00A0\u00A0"} + UPDATE + accounts + SET + balance = balance - + 100.00 + + WHERE + account_id = + 1 + ; + + ), + }, + { + lineNumber: 3, + content: ( + <> + {"\u00A0\u00A0"} + UPDATE + accounts + SET + balance = balance + + 100.00 + + WHERE + account_id = + 2 + ; + + ), + }, + { + lineNumber: 4, + content: ( + <> + {"\u00A0\u00A0"} + INSERT INTO + transfer_log + + ), + }, + { + lineNumber: 5, + content: ( + <> + {"\u00A0\u00A0\u00A0\u00A0"} + VALUES + ( + 1 + , + 2 + , + 100.00 + , + current_timestamp + ()); + + ), + }, + { + lineNumber: 6, + content: ( + <> + END + ; + + ), + }, + { lineNumber: 7, content: }, + { + lineNumber: 8, + content: ( + <> + -- Two tables. One commit. One Delta log entry. + + ), + }, + ]; + + return ( + +
+

+ WRAP THEM AND THEY MOVE AS ONE +

+ + + + {/* Prerequisite strip */} +
+ {[ + { label: "UC MANAGED TABLES", icon: "\u{1F5C4}\u{FE0F}" }, + { label: "CATALOG COMMITS ON", icon: "\u{2705}" }, + { label: "DBR 18.0+ OR SQL WAREHOUSE", icon: "\u{26A1}" }, + ].map((p) => ( +
+ {p.icon} + + {p.label} + +
+ ))} +
+
+
+ ); +}; diff --git a/video/src/components/carousel/slides/transactions/Slide4_Rollback.tsx b/video/src/components/carousel/slides/transactions/Slide4_Rollback.tsx new file mode 100644 index 0000000..1827975 --- /dev/null +++ b/video/src/components/carousel/slides/transactions/Slide4_Rollback.tsx @@ -0,0 +1,234 @@ +import React from "react"; +import { CarouselLayout } from "../../CarouselLayout"; +import { CAROUSEL_COLORS } from "../../../../lib/constants"; +import { FONTS } from "../../../../lib/fonts"; +import { + CarouselCodeBlock, + Comment, + Plain, + Str, + Keyword, +} from "../../CarouselCodeBlock"; + +export const Slide4_Rollback: React.FC = () => { + const sidebarContent = ( +
+

+ THE +
+ PROOF +

+
+ ); + + const codeLines = [ + { + lineNumber: 1, + content: ( + <> + BEGIN ATOMIC + + ), + }, + { + lineNumber: 2, + content: ( + <> + {"\u00A0\u00A0"} + -- These two succeed... + + ), + }, + { + lineNumber: 3, + content: ( + <> + {"\u00A0\u00A0"} + INSERT INTO + transfer_log + VALUES + ( + 2 + , + 1 + , + 5000.00 + , now()); + + ), + }, + { + lineNumber: 4, + content: ( + <> + {"\u00A0\u00A0"} + UPDATE + accounts + SET + balance = balance + + 5000.00 + + WHERE + account_id = + 1 + ; + + ), + }, + { lineNumber: 5, content: }, + { + lineNumber: 6, + content: ( + <> + {"\u00A0\u00A0"} + -- ...then this trips CHECK (balance >= 0) + + ), + }, + { + lineNumber: 7, + content: ( + <> + {"\u00A0\u00A0"} + UPDATE + accounts + SET + balance = balance - + 5000.00 + + WHERE + account_id = + 2 + ; + + ), + }, + { + lineNumber: 8, + content: ( + <> + END + ; + + ), + }, + ]; + + return ( + +
+

+ THE LAST STATEMENT FAILS. WATCH THE FIRST TWO VANISH. +

+ + + + {/* Verified aftermath */} +
+ {[ + { + label: "ACCOUNT 1 BALANCE", + value: "400.00", + note: "Credit undone", + }, + { + label: "LOG ROWS", + value: "1", + note: "Insert undone", + }, + { + label: "DELTA COMMITS", + value: "0", + note: "Nothing written", + }, + ].map((stat) => ( +
+
+ {stat.label} +
+
+ {stat.value} +
+
+ {stat.note} +
+
+ ))} +
+
+
+ ); +}; diff --git a/video/src/components/carousel/slides/transactions/Slide5_Rules.tsx b/video/src/components/carousel/slides/transactions/Slide5_Rules.tsx new file mode 100644 index 0000000..03aea8b --- /dev/null +++ b/video/src/components/carousel/slides/transactions/Slide5_Rules.tsx @@ -0,0 +1,152 @@ +import React from "react"; +import { CarouselLayout } from "../../CarouselLayout"; +import { CAROUSEL_COLORS } from "../../../../lib/constants"; +import { FONTS } from "../../../../lib/fonts"; + +const rules = [ + { + icon: "\u{1F513}", + title: "Turn on catalog commits", + description: + "delta.feature.catalogManaged = 'supported' on every table you write to.", + }, + { + icon: "\u{1F6AB}", + title: "No DDL inside", + description: + "CREATE, ALTER and DROP run outside the transaction. So does time travel.", + }, + { + icon: "\u{1F3AF}", + title: "Prefer BEGIN ATOMIC", + description: + "Row-level conflict detection and automatic rollback. No open session to leak.", + }, + { + icon: "\u{1F504}", + title: "Build retry logic", + description: + "Commits are optimistic. Conflicts surface at commit time and the loser fails.", + }, + { + icon: "\u{1F4F8}", + title: "Reads are repeatable", + description: + "First touch pins a snapshot. Later reads ignore everyone else's commits.", + }, + { + icon: "\u{23F1}\u{FE0F}", + title: "Know the ceilings", + description: + "100 tables per transaction. Everything rolls back after 48 hours.", + }, +]; + +export const Slide5_Rules: React.FC = () => { + const sidebarContent = ( +
+

+ THE +
+ RULES +

+
+ ); + + return ( + +
+

+ SIX THINGS TO GET RIGHT +

+ +
+ {rules.map((rule) => ( +
+ {rule.icon} + + {rule.title} + + + {rule.description} + +
+ ))} +
+
+
+ ); +}; diff --git a/video/src/components/carousel/slides/transactions/Slide6_CTA.tsx b/video/src/components/carousel/slides/transactions/Slide6_CTA.tsx new file mode 100644 index 0000000..b7c91e9 --- /dev/null +++ b/video/src/components/carousel/slides/transactions/Slide6_CTA.tsx @@ -0,0 +1,104 @@ +import React from "react"; +import { AbsoluteFill, Img, staticFile } from "remotion"; +import { CAROUSEL_COLORS } from "../../../../lib/constants"; +import { FONTS } from "../../../../lib/fonts"; + +export const Slide6_CTA: React.FC = () => { + return ( + + {/* Main Title */} +

+ STOP REPAIRING +
+ HALF-WRITTEN DATA +

+ + {/* Syntax reminder */} +

+ BEGIN ATOMIC ... END; +

+ + {/* Short link */} +

+ Full walkthrough → dailydatabricks.tips/s/transactions +

+ + {/* Signup CTA */} +

+ SIGN UP TO THE NEWSLETTER +

+ + {/* Logo */} + + + {/* Website */} +

+ dailydatabricks.tips +

+
+ ); +}; diff --git a/video/src/components/carousel/slides/transactions/index.ts b/video/src/components/carousel/slides/transactions/index.ts new file mode 100644 index 0000000..f6dfb7d --- /dev/null +++ b/video/src/components/carousel/slides/transactions/index.ts @@ -0,0 +1,6 @@ +export { Slide1_Title } from "./Slide1_Title"; +export { Slide2_Problem } from "./Slide2_Problem"; +export { Slide3_Solution } from "./Slide3_Solution"; +export { Slide4_Rollback } from "./Slide4_Rollback"; +export { Slide5_Rules } from "./Slide5_Rules"; +export { Slide6_CTA } from "./Slide6_CTA";