{"title":"Measures in SQL","authors":"Julian Hyde, John Fremlin","doi":"10.1145/3626246.3653374","DOIUrl":"https://doi.org/10.1145/3626246.3653374","url":null,"abstract":"SQL has attained widespread adoption, but Business Intelligence tools still use their own higher level languages based upon a multidimensional paradigm. Composable calculations are what is missing from SQL, and we propose a new kind of column, called a measure, that attaches a calculation to a table. Like regular tables, tables with measures are composable and closed when used in queries. SQL-with-measures has the power, conciseness and reusability of multidimensional languages but retains SQL semantics. Measure invocations can be expanded in place to simple, clear SQL. To define the evaluation semantics for measures, we introduce context-sensitive expressions (a way to evaluate multidimensional expressions that is consistent with existing SQL semantics), a concept called evaluation context, and several operations for setting and modifying the evaluation context.","PeriodicalId":121371,"journal":{"name":"SIGMOD Conference Companion","volume":"45 18","pages":"31-40"},"PeriodicalIF":0.0,"publicationDate":"2024-06-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"141275094","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"Discovering Denial Constraints Using Boolean Patterns","authors":"Sergio Luiz Marques Filho","doi":"10.1145/3555041.3589392","DOIUrl":"https://doi.org/10.1145/3555041.3589392","url":null,"abstract":"Denial constraints (DCs) are at the heart of maintaining data consistency. Formulating DCs by hand is difficult and susceptible to errors. Automatically discovering DCs from data is an alternative, but this is computationally expensive due to the large search space. We propose a new method for automatically discovering DCs, named Boolean Patterns (BP), that identifies specific patterns in sets of predicates that provide minimal coverage of a set of distinct evidences from which DCs can be extracted. The main appeal of BP is its simplicity, bringing the discovery of DCs from the land of elaborated data structures to the land of boolean signs. We are currently studying two research opportunities. First, BP drastically reduces the memory required to keep intermediates in the evidence set data structures. Second, the execution of boolean signs allows exploring the discovery of DCs in highly parallel emerging hardware, like GPUs/FPGAs and processing-in-memory, offloading the discovery execution and overcoming performance bottlenecks in the CPU. We developed a CPU version of BP and compared it to other algorithms that deal with the problem of discovering minimal coverage sets of an evidence set on real-world datasets used in discovering DCs. In preliminary results, BP demonstrated superior performance, with a fraction of the memory used by its counterparts to hold evidence sets while enabling hardware acceleration.","PeriodicalId":121371,"journal":{"name":"SIGMOD Conference Companion","volume":"6 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"1900-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"121319185","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}