Hesam Shahrokhi, Callum Groeger, Yizhuo Yang, A. Shaikhha
{"title":"Python中使用编译的高效查询处理","authors":"Hesam Shahrokhi, Callum Groeger, Yizhuo Yang, A. Shaikhha","doi":"10.1145/3555041.3589735","DOIUrl":null,"url":null,"abstract":"In this paper, we present a framework for efficient query processing in Python. Inspired by the increasing interest in Python-based frameworks such as TensorFlow and Pandas for data scientists, our framework consists of three different input languages. The first language is SQL; to better integrate the SQL queries with the rest of the data science pipeline, by relying on off-the-shelf query optimizers (e.g., PostgreSQL) the SQL code is translated to a physical query plan, which is in turn translated to Pandas code. The second input is Pandas code; it can be either run by Pandas itself or alternatively be translated into SDQL.py, the third input language that can be translated into efficient low-level code and can achieve an order-of-magnitude performance improvement over Pandas. Our framework exposes a Python-based API that allows data scientists to use SDQL.py as a pure Python library.","PeriodicalId":161812,"journal":{"name":"Companion of the 2023 International Conference on Management of Data","volume":"48 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-06-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Efficient Query Processing in Python Using Compilation\",\"authors\":\"Hesam Shahrokhi, Callum Groeger, Yizhuo Yang, A. Shaikhha\",\"doi\":\"10.1145/3555041.3589735\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"In this paper, we present a framework for efficient query processing in Python. Inspired by the increasing interest in Python-based frameworks such as TensorFlow and Pandas for data scientists, our framework consists of three different input languages. The first language is SQL; to better integrate the SQL queries with the rest of the data science pipeline, by relying on off-the-shelf query optimizers (e.g., PostgreSQL) the SQL code is translated to a physical query plan, which is in turn translated to Pandas code. The second input is Pandas code; it can be either run by Pandas itself or alternatively be translated into SDQL.py, the third input language that can be translated into efficient low-level code and can achieve an order-of-magnitude performance improvement over Pandas. Our framework exposes a Python-based API that allows data scientists to use SDQL.py as a pure Python library.\",\"PeriodicalId\":161812,\"journal\":{\"name\":\"Companion of the 2023 International Conference on Management of Data\",\"volume\":\"48 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2023-06-04\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Companion of the 2023 International Conference on Management of Data\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1145/3555041.3589735\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Companion of the 2023 International Conference on Management of Data","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3555041.3589735","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Efficient Query Processing in Python Using Compilation
In this paper, we present a framework for efficient query processing in Python. Inspired by the increasing interest in Python-based frameworks such as TensorFlow and Pandas for data scientists, our framework consists of three different input languages. The first language is SQL; to better integrate the SQL queries with the rest of the data science pipeline, by relying on off-the-shelf query optimizers (e.g., PostgreSQL) the SQL code is translated to a physical query plan, which is in turn translated to Pandas code. The second input is Pandas code; it can be either run by Pandas itself or alternatively be translated into SDQL.py, the third input language that can be translated into efficient low-level code and can achieve an order-of-magnitude performance improvement over Pandas. Our framework exposes a Python-based API that allows data scientists to use SDQL.py as a pure Python library.