Giter Club home page Giter Club logo

Comments (2)

andygrove avatar andygrove commented on July 27, 2024

For reference here is an example query plan from Apache Spark:

== Parsed Logical Plan ==
'Aggregate ['passenger_count], ['passenger_count, unresolvedalias('MIN('fare_amount), None), unresolvedalias('MAX('fare_amount), None)]
+- 'UnresolvedRelation `tripdata`

== Analyzed Logical Plan ==
passenger_count: int, min(fare_amount): double, max(fare_amount): double
Aggregate [passenger_count#3], [passenger_count#3, min(fare_amount#10) AS min(fare_amount)#44, max(fare_amount#10) AS max(fare_amount)#45]
+- SubqueryAlias `tripdata`
   +- Relation[VendorID#0,tpep_pickup_datetime#1,tpep_dropoff_datetime#2,passenger_count#3,trip_distance#4,RatecodeID#5,store_and_fwd_flag#6,PULocationID#7,DOLocationID#8,payment_type#9,fare_amount#10,extra#11,mta_tax#12,tip_amount#13,tolls_amount#14,improvement_surcharge#15,total_amount#16] csv

== Optimized Logical Plan ==
Aggregate [passenger_count#3], [passenger_count#3, min(fare_amount#10) AS min(fare_amount)#44, max(fare_amount#10) AS max(fare_amount)#45]
+- Project [passenger_count#3, fare_amount#10]
   +- Relation[VendorID#0,tpep_pickup_datetime#1,tpep_dropoff_datetime#2,passenger_count#3,trip_distance#4,RatecodeID#5,store_and_fwd_flag#6,PULocationID#7,DOLocationID#8,payment_type#9,fare_amount#10,extra#11,mta_tax#12,tip_amount#13,tolls_amount#14,improvement_surcharge#15,total_amount#16] csv

== Physical Plan ==
*(2) HashAggregate(keys=[passenger_count#3], functions=[min(fare_amount#10), max(fare_amount#10)], output=[passenger_count#3, min(fare_amount)#44, max(fare_amount)#45])
+- Exchange hashpartitioning(passenger_count#3, 200)
   +- *(1) HashAggregate(keys=[passenger_count#3], functions=[partial_min(fare_amount#10), partial_max(fare_amount#10)], output=[passenger_count#3, min#48, max#49])
      +- *(1) FileScan csv [passenger_count#3,fare_amount#10] Batched: false, Format: CSV, Location: InMemoryFileIndex[file:/mnt/ssd/nyc_taxis/csv], PartitionFilters: [], PushedFilters: [], ReadSchema: struct<passenger_count:int,fare_amount:double>

from ballista.

andygrove avatar andygrove commented on July 27, 2024

Implemented in #179

from ballista.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.