Giter VIP home page Giter VIP logo

Comments (5)

rusackas avatar rusackas commented on June 29, 2024

Hopefully @betodealmeida can help a bit.

from superset.

mistercrunch avatar mistercrunch commented on June 29, 2024

This a driver issue? Drill issue? My guess is you can validate that it is the case with this simple python script (thanks gpt!)

from sqlalchemy import create_engine

engine = create_engine('drill://{{THE_CONN_STR_YOU_PUT_IN_SUPERSET}}')

with engine.connect() as connection:
    result = connection.execute("SELECT * FROM cat.schema.table")  # Replace 'your_table' with your actual table name
    for row in result:
        print(row)

from superset.

KhaledBenZina avatar KhaledBenZina commented on June 29, 2024

I found a workaround actually.
I prepare my dataset on Drill directly by writing my query, store it in parquet using Drill filesystem, then query the DFS on Superset. The only difference is that I wont have my data live as I need to recreate the dataset on Drill each time (I will use a seperate python job for that)

from superset.

mistercrunch avatar mistercrunch commented on June 29, 2024

Just a thought, but I've seen hacks that try to do best of both worlds (perf and realtime) by creating view that that UNION ALL as in

CREATE VIEW beat_of_both_worlds AS
SELECT * FROM highperf_materalized_table WHERE dt < DATE('{hard_coded_last_etl_job}')
UNION ALL
SELECT * FROM realtime_virtual_external table WHERE dt >= DATE('{hard_coded_last_etl_job}')

You need to make sure predicate is properly applied by the optimizer / excution-engine and leveraging some indexed/partitioned field, but it's doable in some systems.

from superset.

mistercrunch avatar mistercrunch commented on June 29, 2024

Closing for now as I'm pretty sure it's a driver/database error message, but feel free to reopen if it's not the case. The py script I posted above should make that clear, and could be used to open a ticket in the proper place.

from superset.

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.