Skip to content

Commit

Permalink
Resolved #388.
Browse files Browse the repository at this point in the history
  • Loading branch information
j3-signalroom committed Oct 20, 2024
1 parent 3528b35 commit 4e37667
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified .blog/images/streamlit-screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions python/kickstarter/flink_kickstarter_visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ def load_data(_tbl_env: StreamTableEnvironment, database_name: str) -> Tuple[pd.
airline,
extract(year from to_timestamp(departure_time)) as departure_year,
extract(month from to_timestamp(departure_time)) as departure_month,
date_format(to_timestamp(departure_time), 'MMM') as departure_month_abbr,
concat(date_format(to_timestamp(departure_time), 'MM'), '-', date_format(to_timestamp(departure_time), 'MMM')) as departure_month_abbr,
count(*) as flight_count
from
airlines.flight
group by
airline,
extract(year from to_timestamp(departure_time)),
extract(month from to_timestamp(departure_time)),
date_format(to_timestamp(departure_time), 'MMM')
concat(date_format(to_timestamp(departure_time), 'MM'), '-', date_format(to_timestamp(departure_time), 'MMM'))
order by
departure_year asc,
departure_month asc;
Expand Down

0 comments on commit 4e37667

Please sign in to comment.