== Parsed Logical Plan == GlobalLimit 21 +- LocalLimit 21 +- Project [cast(tpep_pickup_datetime#40 as string) AS tpep_pickup_datetime#482, cast(tpep_dropoff_datetime#41 as string) AS tpep_dropoff_datetime#483, cast(passenger_count#42 as string) AS passenger_count#484, cast(trip_distance#43 as string) AS trip_distance#485, cast(payment_type#46 as string) AS payment_type#486, cast(fare_amount#47 as string) AS fare_amount#487, cast(extra#48 as string) AS extra#488, cast(mta_tax#49 as string) AS mta_tax#489, cast(tip_amount#50 as string) AS tip_amount#490, cast(tolls_amount#51 as string) AS tolls_amount#491, cast(total_amount#52 as string) AS total_amount#492, cast(congestion_surcharge#53 as string) AS congestion_surcharge#493, cast(airport_fee#54 as string) AS airport_fee#494, cast(taxi_type#55 as string) AS taxi_type#495, cast(Pickup_Borough#93 as string) AS Pickup_Borough#496, cast(Pickup_Zone#103 as string) AS Pickup_Zone#497, cast(Pickup_service_zone#113 as string) AS Pickup_service_zone#498, cast(Dropoff_Borough#98 as string) AS Dropoff_Borough#499, cast(Dropoff_Zone#108 as string) AS Dropoff_Zone#500, cast(Dropoff_service_zone#118 as string) AS Dropoff_service_zone#501, cast(route#439 as string) AS route#502] +- Project [tpep_pickup_datetime#40, tpep_dropoff_datetime#41, passenger_count#42, trip_distance#43, payment_type#46, fare_amount#47, extra#48, mta_tax#49, tip_amount#50, tolls_amount#51, total_amount#52, congestion_surcharge#53, airport_fee#54, taxi_type#55, Pickup_Borough#93, Pickup_Zone#103, Pickup_service_zone#113, Dropoff_Borough#98, Dropoff_Zone#108, Dropoff_service_zone#118, concat(Pickup_Borough#93, to , Dropoff_Borough#98) AS route#439] +- Project [tpep_pickup_datetime#40, tpep_dropoff_datetime#41, passenger_count#42, trip_distance#43, payment_type#46, fare_amount#47, extra#48, mta_tax#49, tip_amount#50, tolls_amount#51, total_amount#52, congestion_surcharge#53, airport_fee#54, taxi_type#55, Pickup_Borough#93, Pickup_Zone#103, Pickup_service_zone#113, Dropoff_Borough#98, Dropoff_Zone#108, Dropoff_service_zone#118] +- Project [tpep_pickup_datetime#40, tpep_dropoff_datetime#41, passenger_count#42, trip_distance#43, payment_type#46, fare_amount#47, extra#48, mta_tax#49, tip_amount#50, tolls_amount#51, total_amount#52, congestion_surcharge#53, airport_fee#54, taxi_type#55, Pickup_Borough#93, Pickup_Zone#103, Pickup_service_zone#113, LocationID#16, Dropoff_Borough#98, Dropoff_Zone#108, Dropoff_service_zone#118] +- Project [tpep_pickup_datetime#40, tpep_dropoff_datetime#41, passenger_count#42, trip_distance#43, DOLocationID#45, payment_type#46, fare_amount#47, extra#48, mta_tax#49, tip_amount#50, tolls_amount#51, total_amount#52, congestion_surcharge#53, airport_fee#54, taxi_type#55, Pickup_Borough#93, Pickup_Zone#103, Pickup_service_zone#113, LocationID#16, Dropoff_Borough#98, Dropoff_Zone#108, Dropoff_service_zone#118] +- Join Inner, (cast(DOLocationID#45 as int) = LocationID#16) :- Project [tpep_pickup_datetime#40, tpep_dropoff_datetime#41, passenger_count#42, trip_distance#43, PULocationID#44, DOLocationID#45, payment_type#46, fare_amount#47, extra#48, mta_tax#49, tip_amount#50, tolls_amount#51, total_amount#52, congestion_surcharge#53, airport_fee#54, taxi_type#55, Pickup_Borough#93, Pickup_Zone#103, Pickup_service_zone#113] : +- Join Inner, (cast(PULocationID#44 as int) = LocationID#16) : :- Relation[tpep_pickup_datetime#40,tpep_dropoff_datetime#41,passenger_count#42,trip_distance#43,PULocationID#44,DOLocationID#45,payment_type#46,fare_amount#47,extra#48,mta_tax#49,tip_amount#50,tolls_amount#51,total_amount#52,congestion_surcharge#53,airport_fee#54,taxi_type#55] csv : +- Project [LocationID#16, Pickup_Borough#93, Pickup_Zone#103, service_zone#19 AS Pickup_service_zone#113] : +- Project [LocationID#16, Pickup_Borough#93, Zone#18 AS Pickup_Zone#103, service_zone#19] : +- Project [LocationID#16, Borough#17 AS Pickup_Borough#93, Zone#18, service_zone#19] : +- Relation[LocationID#16,Borough#17,Zone#18,service_zone#19] csv +- Project [LocationID#16, Dropoff_Borough#98, Dropoff_Zone#108, service_zone#19 AS Dropoff_service_zone#118] +- Project [LocationID#16, Dropoff_Borough#98, Zone#18 AS Dropoff_Zone#108, service_zone#19] +- Project [LocationID#16, Borough#17 AS Dropoff_Borough#98, Zone#18, service_zone#19] +- Relation[LocationID#16,Borough#17,Zone#18,service_zone#19] csv == Analyzed Logical Plan == tpep_pickup_datetime: string, tpep_dropoff_datetime: string, passenger_count: string, trip_distance: string, payment_type: string, fare_amount: string, extra: string, mta_tax: string, tip_amount: string, tolls_amount: string, total_amount: string, congestion_surcharge: string, airport_fee: string, taxi_type: string, Pickup_Borough: string, Pickup_Zone: string, Pickup_service_zone: string, Dropoff_Borough: string, Dropoff_Zone: string, Dropoff_service_zone: string, route: string GlobalLimit 21 +- LocalLimit 21 +- Project [cast(tpep_pickup_datetime#40 as string) AS tpep_pickup_datetime#482, cast(tpep_dropoff_datetime#41 as string) AS tpep_dropoff_datetime#483, cast(passenger_count#42 as string) AS passenger_count#484, cast(trip_distance#43 as string) AS trip_distance#485, cast(payment_type#46 as string) AS payment_type#486, cast(fare_amount#47 as string) AS fare_amount#487, cast(extra#48 as string) AS extra#488, cast(mta_tax#49 as string) AS mta_tax#489, cast(tip_amount#50 as string) AS tip_amount#490, cast(tolls_amount#51 as string) AS tolls_amount#491, cast(total_amount#52 as string) AS total_amount#492, cast(congestion_surcharge#53 as string) AS congestion_surcharge#493, cast(airport_fee#54 as string) AS airport_fee#494, cast(taxi_type#55 as string) AS taxi_type#495, cast(Pickup_Borough#93 as string) AS Pickup_Borough#496, cast(Pickup_Zone#103 as string) AS Pickup_Zone#497, cast(Pickup_service_zone#113 as string) AS Pickup_service_zone#498, cast(Dropoff_Borough#98 as string) AS Dropoff_Borough#499, cast(Dropoff_Zone#108 as string) AS Dropoff_Zone#500, cast(Dropoff_service_zone#118 as string) AS Dropoff_service_zone#501, cast(route#439 as string) AS route#502] +- Project [tpep_pickup_datetime#40, tpep_dropoff_datetime#41, passenger_count#42, trip_distance#43, payment_type#46, fare_amount#47, extra#48, mta_tax#49, tip_amount#50, tolls_amount#51, total_amount#52, congestion_surcharge#53, airport_fee#54, taxi_type#55, Pickup_Borough#93, Pickup_Zone#103, Pickup_service_zone#113, Dropoff_Borough#98, Dropoff_Zone#108, Dropoff_service_zone#118, concat(Pickup_Borough#93, to , Dropoff_Borough#98) AS route#439] +- Project [tpep_pickup_datetime#40, tpep_dropoff_datetime#41, passenger_count#42, trip_distance#43, payment_type#46, fare_amount#47, extra#48, mta_tax#49, tip_amount#50, tolls_amount#51, total_amount#52, congestion_surcharge#53, airport_fee#54, taxi_type#55, Pickup_Borough#93, Pickup_Zone#103, Pickup_service_zone#113, Dropoff_Borough#98, Dropoff_Zone#108, Dropoff_service_zone#118] +- Project [tpep_pickup_datetime#40, tpep_dropoff_datetime#41, passenger_count#42, trip_distance#43, payment_type#46, fare_amount#47, extra#48, mta_tax#49, tip_amount#50, tolls_amount#51, total_amount#52, congestion_surcharge#53, airport_fee#54, taxi_type#55, Pickup_Borough#93, Pickup_Zone#103, Pickup_service_zone#113, LocationID#16, Dropoff_Borough#98, Dropoff_Zone#108, Dropoff_service_zone#118] +- Project [tpep_pickup_datetime#40, tpep_dropoff_datetime#41, passenger_count#42, trip_distance#43, DOLocationID#45, payment_type#46, fare_amount#47, extra#48, mta_tax#49, tip_amount#50, tolls_amount#51, total_amount#52, congestion_surcharge#53, airport_fee#54, taxi_type#55, Pickup_Borough#93, Pickup_Zone#103, Pickup_service_zone#113, LocationID#16, Dropoff_Borough#98, Dropoff_Zone#108, Dropoff_service_zone#118] +- Join Inner, (cast(DOLocationID#45 as int) = LocationID#16) :- Project [tpep_pickup_datetime#40, tpep_dropoff_datetime#41, passenger_count#42, trip_distance#43, PULocationID#44, DOLocationID#45, payment_type#46, fare_amount#47, extra#48, mta_tax#49, tip_amount#50, tolls_amount#51, total_amount#52, congestion_surcharge#53, airport_fee#54, taxi_type#55, Pickup_Borough#93, Pickup_Zone#103, Pickup_service_zone#113] : +- Join Inner, (cast(PULocationID#44 as int) = LocationID#16) : :- Relation[tpep_pickup_datetime#40,tpep_dropoff_datetime#41,passenger_count#42,trip_distance#43,PULocationID#44,DOLocationID#45,payment_type#46,fare_amount#47,extra#48,mta_tax#49,tip_amount#50,tolls_amount#51,total_amount#52,congestion_surcharge#53,airport_fee#54,taxi_type#55] csv : +- Project [LocationID#16, Pickup_Borough#93, Pickup_Zone#103, service_zone#19 AS Pickup_service_zone#113] : +- Project [LocationID#16, Pickup_Borough#93, Zone#18 AS Pickup_Zone#103, service_zone#19] : +- Project [LocationID#16, Borough#17 AS Pickup_Borough#93, Zone#18, service_zone#19] : +- Relation[LocationID#16,Borough#17,Zone#18,service_zone#19] csv +- Project [LocationID#16, Dropoff_Borough#98, Dropoff_Zone#108, service_zone#19 AS Dropoff_service_zone#118] +- Project [LocationID#16, Dropoff_Borough#98, Zone#18 AS Dropoff_Zone#108, service_zone#19] +- Project [LocationID#16, Borough#17 AS Dropoff_Borough#98, Zone#18, service_zone#19] +- Relation[LocationID#16,Borough#17,Zone#18,service_zone#19] csv == Optimized Logical Plan == GlobalLimit 21 +- LocalLimit 21 +- Project [tpep_pickup_datetime#40, tpep_dropoff_datetime#41, passenger_count#42, trip_distance#43, payment_type#46, fare_amount#47, extra#48, mta_tax#49, tip_amount#50, tolls_amount#51, total_amount#52, congestion_surcharge#53, airport_fee#54, taxi_type#55, Pickup_Borough#93, Pickup_Zone#103, Pickup_service_zone#113, Dropoff_Borough#98, Dropoff_Zone#108, Dropoff_service_zone#118, concat(Pickup_Borough#93, to , Dropoff_Borough#98) AS route#502] +- Join Inner, (cast(DOLocationID#45 as int) = LocationID#16) :- Project [tpep_pickup_datetime#40, tpep_dropoff_datetime#41, passenger_count#42, trip_distance#43, DOLocationID#45, payment_type#46, fare_amount#47, extra#48, mta_tax#49, tip_amount#50, tolls_amount#51, total_amount#52, congestion_surcharge#53, airport_fee#54, taxi_type#55, Pickup_Borough#93, Pickup_Zone#103, Pickup_service_zone#113] : +- Join Inner, (cast(PULocationID#44 as int) = LocationID#16) : :- Filter (isnotnull(PULocationID#44) AND isnotnull(DOLocationID#45)) : : +- Relation[tpep_pickup_datetime#40,tpep_dropoff_datetime#41,passenger_count#42,trip_distance#43,PULocationID#44,DOLocationID#45,payment_type#46,fare_amount#47,extra#48,mta_tax#49,tip_amount#50,tolls_amount#51,total_amount#52,congestion_surcharge#53,airport_fee#54,taxi_type#55] csv : +- Project [LocationID#16, Borough#17 AS Pickup_Borough#93, Zone#18 AS Pickup_Zone#103, service_zone#19 AS Pickup_service_zone#113] : +- Filter isnotnull(LocationID#16) : +- Relation[LocationID#16,Borough#17,Zone#18,service_zone#19] csv +- Project [LocationID#16, Borough#17 AS Dropoff_Borough#98, Zone#18 AS Dropoff_Zone#108, service_zone#19 AS Dropoff_service_zone#118] +- Filter isnotnull(LocationID#16) +- Relation[LocationID#16,Borough#17,Zone#18,service_zone#19] csv == Physical Plan == CollectLimit 21 +- *(3) Project [tpep_pickup_datetime#40, tpep_dropoff_datetime#41, passenger_count#42, trip_distance#43, payment_type#46, fare_amount#47, extra#48, mta_tax#49, tip_amount#50, tolls_amount#51, total_amount#52, congestion_surcharge#53, airport_fee#54, taxi_type#55, Pickup_Borough#93, Pickup_Zone#103, Pickup_service_zone#113, Dropoff_Borough#98, Dropoff_Zone#108, Dropoff_service_zone#118, concat(Pickup_Borough#93, to , Dropoff_Borough#98) AS route#502] +- *(3) BroadcastHashJoin [cast(DOLocationID#45 as int)], [LocationID#16], Inner, BuildRight :- *(3) Project [tpep_pickup_datetime#40, tpep_dropoff_datetime#41, passenger_count#42, trip_distance#43, DOLocationID#45, payment_type#46, fare_amount#47, extra#48, mta_tax#49, tip_amount#50, tolls_amount#51, total_amount#52, congestion_surcharge#53, airport_fee#54, taxi_type#55, Pickup_Borough#93, Pickup_Zone#103, Pickup_service_zone#113] : +- *(3) BroadcastHashJoin [cast(PULocationID#44 as int)], [LocationID#16], Inner, BuildRight : :- *(3) Project [tpep_pickup_datetime#40, tpep_dropoff_datetime#41, passenger_count#42, trip_distance#43, PULocationID#44, DOLocationID#45, payment_type#46, fare_amount#47, extra#48, mta_tax#49, tip_amount#50, tolls_amount#51, total_amount#52, congestion_surcharge#53, airport_fee#54, taxi_type#55] : : +- *(3) Filter (isnotnull(PULocationID#44) AND isnotnull(DOLocationID#45)) : : +- FileScan csv [tpep_pickup_datetime#40,tpep_dropoff_datetime#41,passenger_count#42,trip_distance#43,PULocationID#44,DOLocationID#45,payment_type#46,fare_amount#47,extra#48,mta_tax#49,tip_amount#50,tolls_amount#51,total_amount#52,congestion_surcharge#53,airport_fee#54,taxi_type#55] Batched: false, DataFilters: [isnotnull(PULocationID#44), isnotnull(DOLocationID#45)], Format: CSV, Location: InMemoryFileIndex[s3a://data-repository-bkt/ECS765/nyc_taxi/yellow_tripdata/2023], PartitionFilters: [], PushedFilters: [IsNotNull(PULocationID), IsNotNull(DOLocationID)], ReadSchema: struct<tpep_pickup_datetime:string,tpep_dropoff_datetime:string,passenger_count:string,trip_dista... : +- BroadcastExchange HashedRelationBroadcastMode(List(cast(input[0, int, true] as bigint))), [id=#185] : +- *(1) Project [LocationID#16, Borough#17 AS Pickup_Borough#93, Zone#18 AS Pickup_Zone#103, service_zone#19 AS Pickup_service_zone#113] : +- *(1) Filter isnotnull(LocationID#16) : +- FileScan csv [LocationID#16,Borough#17,Zone#18,service_zone#19] Batched: false, DataFilters: [isnotnull(LocationID#16)], Format: CSV, Location: InMemoryFileIndex[s3a://data-repository-bkt/ECS765/nyc_taxi], PartitionFilters: [], PushedFilters: [IsNotNull(LocationID)], ReadSchema: struct<LocationID:int,Borough:string,Zone:string,service_zone:string> +- BroadcastExchange HashedRelationBroadcastMode(List(cast(input[0, int, true] as bigint))), [id=#193] +- *(2) Project [LocationID#16, Borough#17 AS Dropoff_Borough#98, Zone#18 AS Dropoff_Zone#108, service_zone#19 AS Dropoff_service_zone#118] +- *(2) Filter isnotnull(LocationID#16) +- FileScan csv [LocationID#16,Borough#17,Zone#18,service_zone#19] Batched: false, DataFilters: [isnotnull(LocationID#16)], Format: CSV, Location: InMemoryFileIndex[s3a://data-repository-bkt/ECS765/nyc_taxi], PartitionFilters: [], PushedFilters: [IsNotNull(LocationID)], ReadSchema: struct<LocationID:int,Borough:string,Zone:string,service_zone:string>