This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE posts_stats_new | |
( | |
effective_from TIMESTAMP, | |
effective_to TIMESTAMP, | |
post_id INTEGER, | |
views INTEGER, | |
likes INTEGER, | |
shares INTEGER, | |
PRIMARY KEY (effective_from, post_id) | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import ( | |
defaultdict, | |
deque, | |
) | |
def dag_as_mermaid(dag) -> str: | |
""" | |
Makes a Mermaid flowchart from Apache Aiflow DAG. |