Skip to content

Commit

Permalink
Alphabetize dataset vars (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego authored Apr 26, 2024
1 parent c059979 commit 68da242
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion queries/polars/q10.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

def q() -> None:
customer = utils.get_customer_ds()
orders = utils.get_orders_ds()
lineitem = utils.get_line_item_ds()
nation = utils.get_nation_ds()
orders = utils.get_orders_ds()

var1 = date(1993, 10, 1)
var2 = date(1994, 1, 1)
Expand Down
4 changes: 2 additions & 2 deletions queries/polars/q11.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@


def q() -> None:
supplier = utils.get_supplier_ds()
partsupp = utils.get_part_supp_ds()
nation = utils.get_nation_ds()
partsupp = utils.get_part_supp_ds()
supplier = utils.get_supplier_ds()

var1 = "GERMANY"
var2 = 0.0001
Expand Down
2 changes: 1 addition & 1 deletion queries/polars/q16.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@


def q() -> None:
partsupp = utils.get_part_supp_ds()
part = utils.get_part_ds()
partsupp = utils.get_part_supp_ds()
supplier = utils.get_supplier_ds()

var1 = "Brand#45"
Expand Down
4 changes: 2 additions & 2 deletions queries/polars/q2.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@


def q() -> None:
region = utils.get_region_ds()
nation = utils.get_nation_ds()
supplier = utils.get_supplier_ds()
part = utils.get_part_ds()
partsupp = utils.get_part_supp_ds()
region = utils.get_region_ds()
supplier = utils.get_supplier_ds()

var1 = 15
var2 = "BRASS"
Expand Down
2 changes: 1 addition & 1 deletion queries/polars/q20.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
def q() -> None:
lineitem = utils.get_line_item_ds()
nation = utils.get_nation_ds()
supplier = utils.get_supplier_ds()
part = utils.get_part_ds()
partsupp = utils.get_part_supp_ds()
supplier = utils.get_supplier_ds()

var1 = date(1994, 1, 1)
var2 = date(1995, 1, 1)
Expand Down
2 changes: 1 addition & 1 deletion queries/polars/q21.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

def q() -> None:
lineitem = utils.get_line_item_ds()
supplier = utils.get_supplier_ds()
nation = utils.get_nation_ds()
orders = utils.get_orders_ds()
supplier = utils.get_supplier_ds()

var1 = "SAUDI ARABIA"

Expand Down
2 changes: 1 addition & 1 deletion queries/polars/q22.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@


def q() -> None:
orders = utils.get_orders_ds()
customer = utils.get_customer_ds()
orders = utils.get_orders_ds()

q1 = (
customer.with_columns(pl.col("c_phone").str.slice(0, 2).alias("cntrycode"))
Expand Down
4 changes: 2 additions & 2 deletions queries/polars/q5.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@


def q() -> None:
region = utils.get_region_ds()
nation = utils.get_nation_ds()
customer = utils.get_customer_ds()
lineitem = utils.get_line_item_ds()
nation = utils.get_nation_ds()
orders = utils.get_orders_ds()
region = utils.get_region_ds()
supplier = utils.get_supplier_ds()

var1 = "ASIA"
Expand Down
2 changes: 1 addition & 1 deletion queries/polars/q7.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@


def q() -> None:
nation = utils.get_nation_ds()
customer = utils.get_customer_ds()
lineitem = utils.get_line_item_ds()
nation = utils.get_nation_ds()
orders = utils.get_orders_ds()
supplier = utils.get_supplier_ds()

Expand Down
8 changes: 4 additions & 4 deletions queries/polars/q8.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@


def q() -> None:
part = utils.get_part_ds()
supplier = utils.get_supplier_ds()
lineitem = utils.get_line_item_ds()
orders = utils.get_orders_ds()
customer = utils.get_customer_ds()
lineitem = utils.get_line_item_ds()
nation = utils.get_nation_ds()
orders = utils.get_orders_ds()
part = utils.get_part_ds()
region = utils.get_region_ds()
supplier = utils.get_supplier_ds()

var1 = "BRAZIL"
var2 = "AMERICA"
Expand Down
8 changes: 4 additions & 4 deletions queries/polars/q9.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@


def q() -> None:
part = utils.get_part_ds()
supplier = utils.get_supplier_ds()
lineitem = utils.get_line_item_ds()
partsupp = utils.get_part_supp_ds()
orders = utils.get_orders_ds()
nation = utils.get_nation_ds()
orders = utils.get_orders_ds()
part = utils.get_part_ds()
partsupp = utils.get_part_supp_ds()
supplier = utils.get_supplier_ds()

q_final = (
lineitem.join(supplier, left_on="l_suppkey", right_on="s_suppkey")
Expand Down

0 comments on commit 68da242

Please sign in to comment.