We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Ran several times a SQL aggregate query using sampling and I got different results
Just follow the tutorial from the doc
val ecommerce = spark.read.format("csv").option("header", "true").option("inferSchema", "true").load("ecommerce100K_2019_Oct.csv") val qbeastTablePath = "table/qbeast-test-data/qtable" (ecommerce.write.mode("overwrite").format("qbeast").option("columnsToIndex", "user_id,product_id").option("cubeSize", "500").save(qbeastTablePath)) val qbeastDf = (spark.read.format("qbeast").load(qbeastTablePath)) qbeastDf.sample(0.1).agg(avg("price")).show() ecommerce.createOrReplaceTempView("ecommerce_october") spark.sql("SELECT avg(price) FROM ecommerce_october TABLESAMPLE(10 PERCENT)").show()
--packages io.qbeast:qbeast-spark_2.12:0.6.0
res0: String = 3.5.0
res1: String = 3.3.4.
res1: String = 3.3.4
Local computer using nix shell
No error output
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What went wrong?
Ran several times a SQL aggregate query using sampling and I got different results
How to reproduce?
Just follow the tutorial from the doc
1. Code that triggered the bug, or steps to reproduce:
2. Branch and commit id:
--packages io.qbeast:qbeast-spark_2.12:0.6.0
3. Spark version:
res0: String = 3.5.0
4. Hadoop version:
res1: String = 3.3.4
.5. How are you running Spark?
Local computer using nix shell
6. Stack trace:
No error output
The text was updated successfully, but these errors were encountered: