Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

download_sql does not return more than 1000 rows #98

Open
muracstech opened this issue Jan 29, 2021 · 4 comments
Open

download_sql does not return more than 1000 rows #98

muracstech opened this issue Jan 29, 2021 · 4 comments

Comments

@muracstech
Copy link

is there a way I can download 100K rows using download_sql?

@lcnletgo
Copy link

I am having the same issue, and I would like to download as many rows as needed.

@anupray
Copy link

anupray commented Dec 2, 2021

I too faced the same and figured out that Livy is restricting it to 1000 records. Spark explain plan shows a global limit of 1000 and I am trying to find how to bump that up.

@padraic-mcatee
Copy link

Would anyone be interested in an s3/hdfs redirect download feature (@acroz not sure if this would be within the scope of this project)?

Users could provide the following additional params to session constructor:

  1. a prefix/directory for temporary storage (s3://, hdfs://, file://, etc)
  2. a fetcher function that returns a dataframe given a URI as a string.

The download method could have an optional flag for overriding default behavior. Instead of writing out rows, dataframe is saved to temp storage at generated uri uri = "TMP_DIR/DF_NAME.parquet" and returns fetcher(uri).

@penggongkui
Copy link

penggongkui commented Mar 21, 2022

LivySession.create(livy_url, kind=SessionKind.SQL, spark_conf={'livy.rsc.sql.num-rows': '2000'})
with this spark_conf can control the output rows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants