Abstract
For data analysis, it’s useful to explore the data set with a sequence of queries, frequently using the results from the previous queries to shape the next queries. Thus, data used in the previous queries are often reused, at least in part, in the next queries. This fact may be used to accelerate queries with data partitioning, a widely used technique that enables skipping the irrelevant data for better I/O performance. For getting effective partitions which are likely to cover the query workload in the future, we propose an adaptive partitioning scheme, combining the data-driven metrics and user-driven metrics to guide the data partitioning as well as a heuristic model using the metric plugin system to support different exploratory patterns. For partition storage and management, we propose an effective partition index structure for quickly searching for appropriate partitions to answer queries. The system is quite helpful in improving the performance of exploratory queries.
The work is supported by the NSFC (No.61370080, No.61170007) and the Shanghai Innovation Action Project (Grant No.16DZ1100200).
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Apache Hive. https://hive.apache.org/
Early Journal Content Data Bundle. http://dfr.jstor.org/
Sloan Digital Sky Surver (SkyServer). http://cas.sdss.org/dr8/en/
TPC-H, Benchmark Specification. http://www.tpc.org/tpch/
Aly, A.M., Mahmood, A.R., Hassan, M.S., Aref, W.G., Ouzzani, M., Elmeleegy, H., Qadah, T.: Aqwa: adaptive query workload aware partitioning of big spatial data. Proc. VLDB Endowment 8(13), 2062–2073 (2015)
Armbrust, M., Xin, R.S., Lian, C., Huai, Y., Liu, D., Bradley, J.K., Meng, X., Kaftan, T., Franklin, M.J., Ghodsi, A., et al.: Spark SQL: Relational data processing in spark. In: Proceedings of the 2015 ACM SIGMOD International Conference on Management of Data, pp. 1383–1394. ACM, New York (2015)
Ester, M., Kriegel, H.P., Sander, J., Xu, X., et al.: A density-based algorithm for discovering clusters in large spatial databases with noise (1996)
Halim, F., Idreos, S., Karras, P., Yap, R.H.: Stochastic database cracking: towards robust adaptive indexing in main-memory column-stores. Proc. VLDB Endowment 5(6), 502–513 (2012)
Idreos, S., Kersten, M.L., Manegold, S., et al.: Database cracking. In: CIDR, vol. 3, pp. 1–8 (2007)
Jiang, L., Nandi, A.: Snaptoquery: providing interactive feedback during exploratory query specification. Proc. VLDB Endowment 8(11), 1250–1261 (2015)
Nandi, A., Jagadish, H.: Guided interaction: rethinking the query-result paradigm. Proc. VLDB Endowment 4(12), 1466–1469 (2011)
Paurat, D., Garnett, R., Gärtner, T.: Interactive exploration of larger pattern collections: a case study on a cocktail dataset. In: Workshop on Interactive Data Exploration and Analytics. IDEA (2014)
Peng, S., Gu, J., Wang, X.S., Rao, W., Yang, M., Cao, Y.: Cost-based optimization of logical partitions for a query workload in a hadoop data warehouse. In: Chen, L., Jia, Y., Sellis, T., Liu, G. (eds.) APWeb 2014. LNCS, vol. 8709, pp. 559–567. Springer, Cham (2014). doi:10.1007/978-3-319-11116-2_52
Preparata, F.P., Shamos, M.: Computational Geometry: An Introduction. Springer, New York (2012)
Qin, W., Idreos, S.: Adaptive data skipping in main-memory systems. In: ACM SIGMOD International Conference on Management of Data (2016)
Sun, L., Franklin, M.J., Krishnan, S., Xin, R.S.: Fine-grained partitioning for aggressive data skipping. In: Proceedings of the 2014 ACM SIGMOD International Conference on Management of Data, pp. 1115–1126. ACM, New York (2014)
Vartak, M., Rahman, S., Madden, S., Parameswaran, A., Polyzotis, N.: SeeDB: efficient data-driven visualization recommendations to support visual analytics. Proc. VLDB Endowment 8(13), 2182–2193 (2015)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2017 Springer International Publishing AG
About this paper
Cite this paper
Guo, C., Wu, Z., He, Z., Wang, X.S. (2017). An Adaptive Data Partitioning Scheme for Accelerating Exploratory Spark SQL Queries. In: Candan, S., Chen, L., Pedersen, T., Chang, L., Hua, W. (eds) Database Systems for Advanced Applications. DASFAA 2017. Lecture Notes in Computer Science(), vol 10177. Springer, Cham. https://doi.org/10.1007/978-3-319-55753-3_8
Download citation
DOI: https://doi.org/10.1007/978-3-319-55753-3_8
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-55752-6
Online ISBN: 978-3-319-55753-3
eBook Packages: Computer ScienceComputer Science (R0)