Autonomous testing of logic model inconsistencies

JP2024514501A5Active Publication Date: 2024-10-03ORACLE INT CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2023560421
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-04-14
Filing Date
2022-02-15
Publication Date
2024-10-03
Estimated Expiration
2042-02-15

AI Technical Summary

Technical Problem

Existing database implementations face challenges in efficiently managing and accessing complex data schemas due to cumbersome data management and access aspects, often requiring extensive manual effort to identify and resolve inconsistencies in logical models.

Method used

A system and method for autonomously testing logical model inconsistencies by generating and executing logical queries based on metadata, comparing query results, and identifying inconsistencies in the logical model or database schema.

Benefits of technology

Automated testing of logical models reduces manual effort and improves the accuracy and reliability of logical models by systematically detecting and resolving inconsistencies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

An embodiment autonomously tests for inconsistencies in a logical model. For example, metadata describing a logical model may be received, where the logical model includes an abstraction of a database schema, where the database schema is implemented in a database, where the database schema includes a fact table and a dimension table. A plurality of logical queries including at least a first logical query and a second logical query may be automatically generated based on the retrieved metadata, where the first logical query and the second logical query are directed to logical objects of the logical model. At least the first logical query and the second logical query may be issued to a server hosting the logical model, where at the server the first logical query and the second logical query are translated into a first database query and a second database query, where the first database query and the second database query are directed to at least the fact table and the dimension table of the database schema. Query results received as a result of executing the first database query and the second database query may be compared. If the comparison of the query results does not meet a criteria, an inconsistency may be identified.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] Field SUMMARY OF THE DISCLOSURE Embodiments of the present disclosure generally relate to autonomously testing inconsistencies in logic models. [Background technology]

[0002] background The proliferation of computing and connected devices has resulted in a vast amount of data that requires management. Data management and data access aspects remain challenging, such as efficient query retrieval of complex data schemas. Some modern database implementations include a layer that abstracts the complex data schema into a logical model, for example, to support logical queries in a more simplified form. In addition to this, extract, transform, load ("ETL" or "ELT") flows may be utilized to populate databases that implement complex schemas. The numerous and varied challenges that can arise based on the complexity of these components and their interactions make data management and data access aspects cumbersome when utilizing conventional techniques. Summary of the Invention [Problem to be solved by the invention]

[0003] overview SUMMARY OF THE DISCLOSURE Embodiments of the present disclosure are generally directed to systems and methods for autonomously testing inconsistencies in logic models that may provide substantial improvements over the related art.

[0004] Metadata describing a logical model may be received, where the logical model includes an abstraction of a database schema, where the database schema is implemented in a database, where the database schema includes a fact table and one or more dimension tables. A plurality of logical queries including at least a first logical query and a second logical query may be automatically generated based on the retrieved metadata, where the first logical query and the second logical query are directed to logical objects of the logical model. At least the first logical query and the second logical query may be issued to a server hosting the logical model, where at the server, the first logical query is translated into a first database query, and the second logical query is translated into a second database query, where the first database query and the second database query are directed at least to fact tables and dimension tables of the database schema. Query results received as a result of executing the first database query and the second database query may be compared. If the comparison of the query results does not meet a criteria, an inconsistency may be identified. Where the one or more inconsistencies include an inconsistency with the logical model defined by the metadata or an inconsistency in the database.

[0005] The features and advantages of the embodiments will be set forth in the description that follows, or will be obvious from the description, or may be learned by practice of the disclosure.

[0006] Other embodiments, details, advantages and modifications will become apparent from the following detailed description of the preferred embodiments, taken in conjunction with the accompanying drawings. [Brief description of the drawings]

[0007] [Figure 1] FIG. 1 illustrates a system for autonomously testing inconsistencies in a logic model according to an exemplary embodiment. [Diagram 2] FIG. 2 is a block diagram of a computing device operably coupled to an autonomous test unit according to an exemplary embodiment. [Diagram 3] FIG. 2 illustrates a sample star data schema according to an exemplary embodiment. [Figure 4A] FIG. 1 illustrates an implementation of a system for autonomously testing inconsistencies in logic models, according to an exemplary embodiment. [Figure 4B] FIG. 1 illustrates an implementation of a system for autonomously testing inconsistencies in logic models, according to an exemplary embodiment. [Diagram 5] FIG. 2 illustrates paired database queries and their results according to an exemplary embodiment. [Figure 6] FIG. 2 illustrates paired database queries and their results according to an exemplary embodiment. [Figure 7] FIG. 11 illustrates another pair of database queries and their results according to an exemplary embodiment. [Figure 8] FIG. 11 illustrates another pair of database queries and their results according to an exemplary embodiment. [Figure 9] FIG. 1 is an exemplary flow diagram for autonomously testing logic model inconsistencies, according to an exemplary embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0008] Detailed Description Embodiments provide for autonomous testing of logical model inconsistencies. For example, data schemas can sometimes require complex queries targeting related data across many tables / fields using joins and other advanced query constructs. To ease this query burden, some database implementations and reporting tools include a logical model or layer that maps the underlying complex data schema to a more simplified logical model. For example, the logical model can then be queried using further simplistic logical queries. These logical queries are transformed into queries targeting the underlying data schema (e.g., complex queries that can access / retrieve data in the underlying data schema).

[0009] Some embodiments of a logical model may include multiple layers of complexity, including various aggregation functions, drill-down functions, join operations, etc. For example, one or more tools may be used to rapidly develop a complex logical model, such as by defining metadata that can be used to deploy the model. In some embodiments, a tool may be used to define a conceptual data model through a user interface, and the output of such a tool may be metadata that stores conceptual relationships of the components that make up the logical data model.

[0010] In some embodiments, these tools can streamline the deployment of complex databases, but the deployment may contain low-level inconsistencies and / or defects. For example, aggregate functions defined in the logical model may not match the underlying data schema, one or more tables may not load correctly, configurations for data fields (e.g., that should not be null) may be set incorrectly, etc. These inconsistencies and / or defects traditionally require meticulous manual effort to debug.

[0011] Embodiments generate queries based on metadata of a logical model that autonomously tests for inconsistencies and / or defects when implemented with an underlying data schema. For example, metadata of a logical model can be obtained and analyzed to determine conceptual relationships between components of the model. In some embodiments, queries can be generated based on expected behavior of the logical model and the data schema as determined from the analyzed metadata. For example, pairwise queries can be generated that test expected aggregation functions (e.g., between one or more dimensions of the data schema).

[0012] Embodiments analyze the results of the queries. For example, two or more queries can be designed to return similar result sets (e.g., the same data values) if the logical data model accurately reflects data relationships in the data schema. If the returned result sets of these two or more queries are dissimilar, this may indicate an inconsistency with the logical model. In other examples, a query error may be returned due to an incorrect load of data, a missing database table or column, an incorrect embedded SQL expression, and / or an incorrect configuration of a data field. In some embodiments, these deviations from expected results can be used to identify one or more of these inconsistencies.

[0013] DETAILED DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram of an embodiment of the present disclosure; FIG. 2 is a block diagram of an embodiment of the present disclosure; and FIG. 3 is a block diagram of an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram of an embodiment of the present disclosure;

[0014] FIG. 1 illustrates a system for autonomously testing inconsistencies in a logical model, according to an embodiment. The system 100 includes metadata acquisition 102, metadata analysis 104, query generation 106, query execution 108, result comparison 110, and discovered inconsistencies 112. Metadata acquisition 102 may include acquisition of metadata of a logical data model, such as metadata defining conceptual relationships (e.g., tables, columns, keys, joins, etc. of data) between components of the logical model. Metadata analysis 104 may analyze the acquired metadata to identify these conceptual relationships. Query generation 106 may generate queries, such as paired queries, a set of related queries, etc., based on expected behavior and data schema of the logical model, given the analyzed metadata. For example, paired queries may be generated to test expected aggregation functions (e.g., between one or more dimensions of the logical model), as well as other suitable queries.

[0015] Query execution 108 can use a server implementing the logical model to execute a query in a database implementing the data schema. For example, query execution can include the server translating the generated query (e.g., a logical query) into a transformed query (e.g., a query in the data schema) so that the transformed query can be used to retrieve data from the implementation of the data schema (e.g., a database). In some embodiments, a result set resulting from executing the transformed query in the database can be returned. Result comparison 110 can compare results of the queries to identify inconsistencies (e.g., where consistency is assumed) or other unexpected behavior.

[0016] For example, the generated pair (or set) of queries can be designed to return similar results (e.g., result sets having one or more values ​​with at most a threshold difference), such as when the logical data model accurately reflects data relationships in the data schema. Inconsistencies can be identified when the result comparison 110 determines that two or more queries designed to produce similar results actually returned dissimilar result sets. In addition, some queries may return errors due to incorrectly loaded data or incorrect configuration of data fields. In some embodiments, these deviations from expected results can be used to identify inconsistencies (e.g., inconsistencies between the data model and the implemented data schema based on incorrectly loaded data).

[0017] In some embodiments, the underlying data schema (e.g., implemented in a database) may be any suitable schema for storing data, such as a set of relational data tables, a multidimensional data schema, a set of relational tables organized according to a set of rules or standards, such as a Third Normal Form ("3NF") schema, and other suitable schemas. In general, a schema includes data tables having one or more columns of data. A schema is defined not only by the tables and the data they store, but also by the relationships between the tables. For example, a relationship between a first table and a second table may be defined by a foreign key that links the data stored in each of these tables. In some embodiments, two tables may share multiple relationships (e.g., may have multiple foreign keys that define a relationship between the tables). Various types of relationships between tables are disclosed further herein.

[0018] Data schema and logical model designs often vary from designer to designer. For example, a given set of data with a given set of relationships can be successfully represented by multiple data schemas with different designs and / or logical models. Some designs may require table joins to retrieve a particular set of data, while other designs do not. Thus, the data schema and logical models under test may include any suitable design concerns, and the queries generated by query generation 106 and executed by query execution 108 may be designed to test for inconsistencies and / or defects in the various different data schemas and logical models.

[0019] Figure 2 is a block diagram of a computer server / system 210, according to an embodiment. As shown in Figure 2, the system 210 may include a bus device 212 and / or other communication mechanism(s) configured to convey information between various components of the system 210, such as a processor 222 and a memory 214. In addition, a communication unit 220 may enable connectivity between the processor 222 and other devices by encoding data transmitted over a network (not shown) from the processor 222 to other devices and decoding data received over the network from other systems intended for the processor 222.

[0020] For example, the communication device 220 may include a network interface card configured to provide wireless network communication. Various wireless communication technologies may be used, including infrared, radio, Bluetooth, Wi-Fi, and / or cellular communication. Alternatively, the communication device 220 may be configured to provide a wired network connection(s), such as an Ethernet connection.

[0021] Processor 222 may comprise one or more general-purpose or application-specific processors for performing the computational and control functions of system 210. Processor 222 may comprise a single integrated circuit, such as a microprocessor, or may comprise multiple integrated circuit devices and / or multiple wiring boards that work in conjunction to provide the functionality of processor 222. In addition, processor 222 may execute computer programs stored in memory 214, such as operating system 215, autonomous test unit 216, and other applications 218.

[0022] The system 210 may include a memory 214 for storing information and instructions executed by the processor 222. The memory 214 may include various components for acquiring, presenting, modifying, and storing data. For example, the memory 214 may store software modules that provide functionality when executed by the processor 222. These modules may include an operating system 215 that provides operating system functionality for the system 210. The modules may include the operating system 215, an autonomous test portion 216, and other application modules 218. The operating system 215 provides operating system functionality for the system 210. The autonomous test portion 216 may provide system functionality for autonomously testing data schema inconsistencies and may further provide other functionality of the present disclosure. In some cases, the autonomous test portion 216 may be implemented as an in-memory configuration.

[0023] Non-transitory memory 214 may include a variety of computer-readable media accessible to processor 222. For example, memory 214 may include any combination of random access memory ("RAM"), dynamic RAM ("DRAM"), static RAM ("SRAM"), read only memory ("ROM"), flash memory, cache memory, and / or other types of non-transitory computer-readable media.

[0024] The processor 222 is further coupled to a display 224, such as a liquid crystal display ("LCD"), via the bus 212. Further coupled to the communication device 212 are a keyboard 226 and a cursor controller device 228, such as a computer mouse, to enable a user to interface with the system 210.

[0025] In some embodiments, system 210 may be part of a larger system. As such, system 210 may include one or more additional functional modules 218 to provide additional functionality. Other application modules 218 may include various components of operational systems and data warehouses with data warehouse targets, such as Oracle® Business Intelligence ("BI"), Oracle® Analytics Cloud, Oracle® Analytics Server, and other suitable components. A database 217 is coupled to bus 212 to provide centralized storage for modules 216 and 218, for example, storing wireless device activity, in some embodiments user profiles, transaction histories, and the like. Database 217 may store data in an integrated collection of logically related records or files. Database 217 may be an operational database, an analytical database, a data warehouse, a distributed database, an end-user database, an external database, a navigational database, an in-memory database, a document-oriented database, a real-time database, a relational database, an object-oriented database, a Hadoop® Distributed File System ("HFDS"), or other database known in the art.

[0026] Although illustrated as a single system, the functionality of system 210 may be implemented as a distributed system. For example, memory 214 and processor 222 may be distributed among several different computers that collectively represent system 210. In one embodiment, system 210 may be part of a device (e.g., a smartphone, a tablet, a computer, etc.). In an embodiment, system 210 may be separate from the device and may provide the described functionality remotely to the device. Furthermore, one or more components of system 210 may be omitted. For example, in its function as a user or consumer device, system 210 may be a smartphone or other wireless device that includes a processor, memory, and a display, but does not include one or more of the other components shown in FIG. 2, and includes additional components not shown in FIG. 2.

[0027] Returning to Figure 1, embodiments autonomously test logical models for inconsistencies using queries that are targeted with metadata of the logical model. For example, one or more tools can be used to generate metadata that defines the logical model, such as a tool that defines a repository file (e.g., an RPD file). The repository file can define data structures (e.g., relational tables and / or logical objects), data fields (e.g., columns), relationships between data structures (e.g., foreign keys, joins, etc.), data functions (e.g., aggregation functions, drill keys, etc.), and other information related to the logical model.

[0028] An embodiment of a logical model is an abstraction of the underlying data schema logic. FIG. 3 illustrates a sample star data schema, according to an exemplary embodiment. Data schema 300 includes a fact table 302, a dimension_1 table 304, a dimension_2 table 306, and a dimension_3 table 308. Generally, in a star schema, a fact table holds facts about a domain, and dimension tables hold attributes of these facts. As a result, fact table 302 has various foreign key relationships with dimension_1 table 304, dimension_2 table 306, and dimension_3 table 308. That is, some rows in a fact table are foreign keys ("FK"). A foreign key may be a link to a dimension table. A dimension table may be a table that stores context associated with an event referenced by one or more fact tables.

[0029] A star data schema is similar to a snowflake data schema, but with some differences. For example, a snowflake data schema includes dimensions that are normalized into multiple related tables, while a star schema has denormalized dimensions where each dimension is represented by one table. Each of these schemas offers different advantages related to data redundancy, simplified query design, etc. For example, the storage efficiency advantages of normalization may come at the expense of query retrieval efficiency of a normalized data schema. An embodiment of the data schema under test may include a fact table with connections to dimension tables, tables organized as a star schema, tables organized as a snowflake schema, and other suitable data schema structures.

[0030] An embodiment of a logical model can be used to abstract the underlying data schema, allowing a client (e.g., an end user) to issue logical queries that are transformed (e.g., using the metadata of the logical model). For example, a database (e.g., an implementation of a populated data schema) can be queried and a transformation query can be used to obtain a result set. An embodiment of a logical model can be defined using the metadata, and associated business intelligence functionality can be generated based on the metadata. For example, the business intelligence functionality can include multiple layers, such as one or more of a physical layer, a business model / mapping layer, and a presentation layer.

[0031] An exemplary physical layer can define the objects and relationships used to write native queries for each of the physical data sources (e.g., used to transform logical queries). For example, the physical layer can be created by importing tables, cubes, and flat files from the data sources. Decoupling logical behavior from the physical model provides the ability to federate multiple physical sources into the same logical objects, enabling aggregate navigation and partitioning, as well as dimensional conformance and insulation from physical source changes.

[0032] An exemplary business model / mapping layer can define a business or logical model of the data and specify the mapping between the logical model and the physical schema. For example, this layer can determine the analytical behavior visible to the client / end user and can define a superset of objects and relationships available to the client / end user. In some embodiments, each column in the business model can be mapped to one or more columns in the physical layer. At runtime, logical SQL requests can be evaluated against the business model and this mapping can be used to determine a set of physical tables, files, and cubes for generating relevant physical queries. The mapping can include calculations and transformations and in some embodiments may combine multiple physical tables.

[0033] An exemplary presentation layer provides a mechanism for presenting a customized, secure, role-based view of the business model to a user. For example, the presentation layer can add a level of abstraction to the business model and mapping layer, providing a view of the data as seen by a user constructing a request. In some embodiments, the presentation layer can create multiple subject areas that map to a business model, effectively splitting the business model into multiple manageable parts.

[0034] To illustrate query translation, consider the following sample logical query that may be received at a server hosting a logical model:

[0035] [Table 1]

[0036] In some embodiments, the server may translate such logical queries into one or more translated queries, or one or more queries designed for the underlying data schema / database. Consider the following sample query that has been translated by the server based on the received logical query:

[0037] [Table 2]

[0038] As demonstrated by this transformation, we translate simplified logical queries targeting logical objects in the logical model into database queries targeting specific components of the data schema. In particular, we abstract specific elements of the data schema as logical components (e.g., logical objects) in the logical queries and map these abstractions to their underlying physical components in the transformation queries. This example illustrates why definitions in the logical model can affect query retrieval of databases that implement the data schema, as query translation issues or issues with other components of the logical model can result in faulty or erroneous results.

[0039] Functional testing of traditional logical models often relies on patterns to verify that metadata has been correctly transformed (e.g., into an RPD model). While such tests can verify that the RPD model works as specified, they do not guarantee that the created solution works with the underlying data schema (e.g., produces the expected results). For example, full validation of the created model would require significant manual effort due to the size of the complex models.

[0040] Logical models created using traditional generators often lead to model failures and performance issues that are detected, for example, as a side effect of other development activities. These findings indicate that there are consistency issues that are not detected in traditional models. For example, exemplary classes of potential errors that can result in incorrect behavior include:

[0041] ●The RPD model may not be suitable for some unexpected cases, resulting in model failure.

[0042] ●The dimension can be described in the metadata as requested, but the underlying data indicates that the data is optional and can be NULL (for example, likely caused by metadata for an incorrectly defined fact FK column).

[0043] ● Tables are not loaded correctly / completely. This can be a common issue with calendar and time dimensions, or it could be an issue with aggregate tables being loaded incorrectly.

[0044] The performance of some queries may unexpectedly degrade when you add attributes to a query (for example, this could be caused by a description column not being modeled or implemented correctly).

[0045] Embodiments demonstrate that testing of logical data models (e.g., RPD) can be performed in a systematic and automated manner to improve the quality of the model and / or the match between the logical model and the data schema. For example, embodiments of an audit tool can autonomously detect data or logical model inconsistencies based on one or more predefined testing strategies. In some embodiments, one or more metadata services can be utilized to obtain metadata (e.g., via web services) that describes the logical model, including subject areas, tables, and columns. The metadata of the logical model can be used by embodiments to generate a set of logical queries that are issued (e.g., to a server utilizing web services). For example, a logical layer can translate the logical queries into transformation queries (e.g., designed to query the underlying data schema). The transformation queries are ultimately used to query the database. Query results can be captured and compared for consistency, and queries with inconsistent results can be flagged.

[0046] 4A and 4B are diagrams illustrating implementations of a system for autonomously testing inconsistencies in a logical model, according to an exemplary embodiment. For example, the system of FIG. 4A illustrates a test strategy 402, an autonomous dimensional testing unit ("Audit") 404, a server 406, a web service 408, a semantic model 410, and a database 412. The test strategy 402 can include software functions used to generate test queries based on metadata that defines a data schema. For example, based on the data structures and the relationships between the structures indicated by the captured metadata, the test strategy 402 can implement software functions to generate audit queries.

[0047] Audit 404 can implement a test strategy 402 to generate audit queries, issue queries to execute, receive results of the audit queries, and analyze the results to detect inconsistencies and / or defects in the semantic model 410. In some embodiments, test strategy 402 and Audit 404 can be implemented on a client device, a server, any cloud computing device, or other suitable computing device.

[0048] Servers 406 may be one or more servers (e.g., web servers, cloud servers, virtual machines, etc.) that host web services 408, store semantic models 410, and / or implement databases 412. For example, servers 406 may include components of a business intelligence product (e.g., Oracle® Business Intelligence), an analytics product (e.g., Oracle® Analytics Server and / or Oracle® Analytics Cloud), a data warehouse (e.g., Oracle® Data Warehouse), etc. In some embodiments, servers 406 implement query translation techniques to translate logical queries into queries designed for the underlying database / data schema.

[0049] For example, the server 406 / semantic model 410 may have associated business intelligence capabilities as illustrated by FIG. 4B, which shows a logical query 420, a presentation layer 422, a business model / mapping layer 424, a physical layer 426, and a data source 428. In some embodiments, Audit 404 may issue the logical query 420 (based on the retrieved metadata) to the server 406. The server 406 then translates the logical query through the presentation layer 422, the business model / mapping layer 424, and the physical layer 426, and finally issues a translation query against the data source 428 (e.g., database 412 of FIG. 4A). A result set from the query's data source 428 using the translation query may then be returned to Audit 404.

[0050] In some embodiments, for example, web services 408 can be configured to provide metadata about semantic models 410 to Audit 404 in response to application programming interface ("API") calls from Audit 404. For example, Audit 404 can include a web service API abstraction that abstracts the web service calls to server 406. In some embodiments, this abstraction provides implementation extensibility and allows for alternatives (e.g., REST-based APIs).

[0051] In some embodiments, web services 408 include metadata services that describe the subject area using enriched data structures that describe tables (e.g., facts, dimensions, time dimensions) and dimensional details (e.g., descriptive columns, bins and binned columns, details such as hierarchies and levels, drill keys, description keys, etc.) For example, web services 408 may include Oracle® Analytics Cloud ("OAC") web services and / or Oracle® Analytics Server ("OAS") web services.

[0052] In some embodiments, the web services provided by the OAC can be accessed through a Simple Object Access Protocol ("SOAP") client (e.g., to reduce overhead). For example, the SOAP client API in Audit 404 can be encapsulated in a class to minimize dependencies of additional logic on a particular SOAP client implementation. In some embodiments, the web services 408 can provide techniques for logging in and logging off the web service, for retrieving metadata (e.g., RPD metadata) of the semantic model 410 of different objects, and for issuing logical SQL queries. In some embodiments, the web services 408 can return objects that hide some of the implementation details of the API. For example, an Extensible Markup Language ("XML") document can be converted into an object representation such as a list or string, a dictionary, or other object.

[0053] In some embodiments, web services 408 can support the following web services:

[0054] ●SAWSessionService for logging in to web services and logging off after use A Metadata Service to get the name of the target area and descriptions of the target area, table, and columns (indicating the column type if hidden and for description columns) XMLViewService for issuing logical SQL queries and retrieving result sets - NQSQueryMetadataObjects to retrieve metadata as XUDML fragments. In some embodiments, the retrieved XML is parsed to extract relevant details.

[0055] In some embodiments, base metadata such as subject area names, details of presentation tables and their columns can be obtained using the OAC Metadata Service. In some embodiments, detailed information about dimensions and columns can be obtained using the NQSQueryMetadataObjects web service. There is in some embodiments a distribution of the XUDML returned by the NQSQueryMetadataObjects web service for each type of information, in which case Audit 404 may include one or more specific APIs each configured to obtain metadata for a different object type.

[0056] In some embodiments, Web services 408 can represent subject areas, presentation tables, and presentation columns through simple models that enrich basic information of the models (eg, obtained using the OAC Metadata Service).

[0057] ●Tables can be classified as fact tables or dimension tables. • A dimension table model can provide a representation of related hierarchies, levels, drill keys, and related columns.

[0058] ● Dimension and fact attribute columns can be extended to include flags that indicate whether the column is descriptive or a bin column, whether it is calculated, whether it is a primary key ("PK") column, etc.

[0059] Fact measures can provide further details about advanced aggregation rules (e.g. semi-additive measures) if the column is calculated, and can provide specific details for level-based measures.

[0060] In some embodiments, Audit 404 may include software for identifying fact tables based on the presence of measures (e.g., columns with aggregation functions). Web services 408 may also include an NQSQueryMetadataObjects service, which may return XUDML fragments that describe presentation, logical, and / or physical RPD models.

[0061] In some embodiments, metadata queries from Audit 404 can be addressed with the aid of the NQSQueryMetadataObjects service of Web services 408. For example, the NQSQueryMetadataObjects service can return the following:

[0062] ●PK columns and drill keys, ● levels and hierarchies (including the order of levels), ● Attributes associated with levels, Identifying the calculated identity column (pre-aggregation or post-aggregation), ● Level-based measures, and ● Measures that have dimension-based aggregation rules.

[0063] In some embodiments, to obtain detailed table and column characteristics, the algorithm can trace presentation objects to their associated logical (and even physical) objects using fully qualified names in the references or parents. In some embodiments, the names of logical tables include specific naming conventions that must be handled, such as removing "Dim-", "Fact", and "Hier-" prefixes to define the English names of the matching presentation objects. In some embodiments, the tradeoff is reduced round trips to retrieve XUDML snippets, thus improving test throughput.

[0064] Embodiments of Audit 404 and Web Services 408 aim to balance functionality and performance using one or more of the following techniques.

[0065] [Table 3]

[0066] In some embodiments, these columns can be matched against presentation columns (e.g., previously retrieved information) to determine which presentation columns are drill keys, or PKs, for the table. In some embodiments, retrieving logical keys involves a bulk operation because, for example, logical dimensions (e.g., hierarchical objects) are related through their drill keys. For example, sometimes the number of (drill) keys is small compared to the number of columns, so bulk operations based on drill keys can improve performance. In addition, performance issues can be mitigated by caching the results to eliminate additional round trips when parsing other dimension tables. In some embodiments, an alternative approach to this approach is to identify the logical dimension objects referenced from the presentation dimension table. This would allow retrieval of the logical level. However, this involves two service calls per presentation table in some embodiments.

[0067] Similarly, embodiments may implement other suitable techniques for obtaining metadata, for example, one or more other APIs (or other interfaces / abstractions of obtaining) may be used to obtain metadata, metadata may be obtained based on other aspects (e.g., other than subject area), and / or other suitable techniques may be implemented.

[0068] [Table 4]

[0069] In some embodiments, metadata obtained using web services 408 (e.g., from server 406) does not indicate whether a table in the subject area is a dimension or a fact table. However, table columns may indicate the column name, description, data type, and aggregation rules. In some embodiments, a table that includes at least one column with a defined aggregation type may be considered a fact table, and a column of a fact table with a defined aggregation rule may be considered a measure.

[0070] In some embodiments, the names of calendar dimension tables may end in "Date" and the names of time dimension tables may end in "Time." Implementations may also include abbreviated calendar dimensions that may end in "Month," "Quarter," "Year," "Period," "Fiscal Quarter," or "Fiscal Year."

[0071] [Table 5]

[0072] [Table 6-1]

[0073] [Table 6-2]

[0074] [Table 6-3]

[0075] In some embodiments, Audit 404 can dynamically generate test cases (e.g., Python test cases) and run the test cases with a suitable tool (e.g., XMLRunner, which creates test results in JUnit-style XML format). By generating separate test cases, embodiments can take advantage of certain convenient infrastructure. Because tests depend on the structure (e.g., RPD) of the semantic model 410, which is only known after model metadata is obtained from Web Services 408, embodiments can dynamically create classes and class methods (e.g., Python classes and methods) based on the obtained metadata. For example, a subclass of unittest.TestCase can be created for each subject area, and one or more test methods can be defined in the subject area for each test case.

[0076] In some embodiments, a separate test case class can be created for each subject area, and multiple unit test cases can be created and added (e.g., represented by functions beginning with the name "test"). For example, this organization can group multiple test results related to a subject area into one report. The example function below illustrates this technique for dynamically generating sample classes / methods.

[0077] [Table 7-1]

[0078] [Table 7-2]

[0079] The above example functionality generates one class per subject area and executes two tests per unit test implemented with two dynamically generated class methods. Test cases can be defined as descriptions / parameters and functions can be generated to execute each test case. An embodiment can achieve this organization because audit tests are defined by subject area, measures, and attribute(s) by which measures are grouped. An embodiment can run a standard Python unit test framework with the command unittest.main(), which can automatically discover test classes and test methods and subsequently execute them.

[0080] In some embodiments, test case execution and test results can be captured in the JunitXML format, which can be converted to HTML. Test cases can be specified as descriptions of test suites that are produced by one or more test strategies. In some embodiments, a runtime component can create the specified test cases and execute them in a unit testing framework. For example, the functionality of Audit404 can be implemented using the Jenkins build process.

[0081] In some embodiments, Audit 404 retrieves metadata describing the logical model, analyzes the metadata to determine relationships between data structures that make up the logical model, and generates logical queries to test for inconsistencies in the logical model. For example, Audit 404 can generate one or more paired queries (e.g., a criteria query and a test query) to test for inconsistencies in aggregation functions, can generate queries to enumerate joins in a data schema, and can generate queries of increasing complexity to detect performance issues that indicate a malfunction in the schema, among other query strategies.

[0082] Embodiments may generate one or more logical queries using the following algorithm: The retrieved and analyzed metadata may be used to select one or more measures. For example, an implemented test strategy (e.g., a software function of a given test strategy) may select a measure based on the analyzed metadata. In some embodiments, the implemented test strategy may then define groups of attributes by which the measures may be grouped. For example, the test strategy may determine attributes for grouping based on analysis of metadata relevant to the selected measures. In some embodiments, the test strategy may select one attribute per dimension based on a criteria (e.g., a PK column), may list a drill key or description column to be tested as one grouping criterion, or may implement other suitable techniques to determine attributes for grouping.

[0083] In some embodiments, the test strategy can generate a list of data structures based on the selected measures and the determined attribute-based groupings. For example, each data structure can define measures and attribute-based groupings (e.g., attributes relevant for pair testing, or criteria queries and test queries). In some embodiments, the query generator can use the data structures to issue queries. For example, a criteria query can aggregate measures (e.g., all relevant measures) according to their aggregation rules (e.g., SUM, MIN, MAX, etc., defined in the metadata). The results of the criteria query can be captured for comparison. A second test query can also be generated that performs the same operations on the measures and groups them based on a list of one or more attributes provided. The results of this test query can then also be captured for comparison.

[0084] Audit 404 can issue criteria queries and generate test queries that produce inconsistent results when the RPD model is inconsistent (e.g., inconsistent with the data in the physical data schema or otherwise inconsistent). For example, given a list of measures and attributes (e.g., generated data structure), Audit 404 can create a pair of logical SQL queries that can be executed (e.g., using a separate API). In some embodiments, the criteria query can create totals for each measure provided (e.g., roll all measures into a Grand Total for all dimensions). In some embodiments, the test query can report on the same measure and group the measures by one or more attributes. The resulting records can be aggregated back into a single record and compared to the results of the criteria query. In some embodiments, the criteria query can query one, some, or all measures of a fact table to bring in a single record as a criteria, and the test query can aggregate the same measures and group the measures by one or more attributes.

[0085] In some implementations, if the test query returns records that do not contain the same aggregations of measures as the base query results, it indicates that the semantic model 410 (e.g., the RPD model) is inconsistent with the underlying data (e.g., the database 412 that implements the data schema). In some embodiments, the model is faulty if one or both of the queries fail with a structured query language ("SQL") error.

[0086] In some embodiments, Audit 404 can generate a logical query per subject area that returns a measure or an array of measures that are aggregated to the aggregate of multiple dimensions (e.g., the star of a star schema). For example, the result rows can be used to compare result sets of test cases in this subject area to each other. In some embodiments, the query can include additive (non-level-based) fact measures. In other embodiments, the query can include any suitable fact measures.

[0087] In some embodiments, the underlying data schema may be a star schema. The star schema may specify the details of the query such that structured query types can be expressed by simple data structures. For example, much of the complexity of the query (how facts and dimensions are combined and how normalized dimensions are constructed) may be included in the logical model (e.g., based on metadata that represents the schema relationships). An embodiment of the test strategy functionality may provide options for which test strategy to enforce. In some embodiments, the number of test cases may be limited to hundreds or thousands. In theory, millions of test cases could be generated given the relationship of some data schema / logical model and runtimes that exceed realistic requirements. An embodiment of the test strategy functionality effectively constructs queries to test with realistic resource constraints.

[0088] 5 and 6 are diagrams illustrating paired database queries and their results according to an example embodiment. In some embodiments, queries can be generated that group like measures based on one or more dimensional attributes and aggregate the measures using the model's aggregation rules for the resulting result rows. In the embodiment illustrated in FIGS. 5 and 6, query 502 is a criteria query issued for the measure "Count of Service Histories" in a subject area called "Asset-Service History." The SQL for query 502 indicates that the measure is to be aggregated without grouping. Result 504 shows the result of query 502, which has a data value of 3502.

[0089] In the illustrated embodiment, query 602 is a test query issued against the same measure, "Count of Service Histories," in the same subject area, "Asset-Service History." Query 602 differs from query 502 because the SQL for query 602 indicates that the measure is grouped by an attribute, "Permit ID," (the referenced logical "Permission" dimension). Results 604 show the results of query 602, with 16 rows that group the measure data values, "Count of Service Histories," by the attribute, "Permit ID," of the dimension, "Permission."

[0090] In the illustrated embodiment, the aggregation of the 16 rows in result 604 for the measure data value "Count of Service Histories" is 3502, which is equal to the aggregated measure data value without grouping returned in result 504 for query 502. Because these values ​​are equal, query results 504 and 604 do not indicate an inconsistency in the logical model.

[0091] 7 and 8 are diagrams illustrating another pair of database queries and their results according to an exemplary embodiment. In the embodiment illustrated in FIGS. 7 and 8, query 702 is a criteria query issued against the measures "Timesheet Detail Count" and "Total Cost" in the "Asset-Timesheet Detail" subject area. The SQL for query 702 indicates that the measures are aggregated without grouping. Results 704 show the results of query 702, with a data value of 1662 for the measure "Timesheet Detail Count" and a data value of 511369.45 for the measure "Total Cost."

[0092] In the embodiment shown in FIGS. 7 and 8, the SQL for query 802, test query, groups additive measures by the PK column "Timesheet ID" (of the referenced Timesheet dimension). Result 804 shows the results of query 802, including multiple results aggregated by measure (because query 802 uses the SUM aggregation rule). In some embodiments, logical SQL is used to aggregate measures to reduce logic in the business logic, minimize rounding errors, and improve query performance. For example, this can be achieved by aggregating measures with a supported aggregation function. Query 802 iterates over aggregated measures by grouping by attributes (e.g., "Timesheet Detail Count" and "Total Cost"), so the first row is returned (e.g., by database 412 of FIG. 4). In some embodiments, result 804 is reduced to one row by specifying a RANK() on the first dimension attribute and limiting the rows to the first row with a condition C1=1 in the WHERE clause of query 802.

[0093] In the illustrated embodiment, the aggregation of the relevant measures in result 804 is not equal to the aggregation in result 704. Because these values ​​are not equal, query results 704 and 804 indicate an inconsistency. For example, the illustrated inconsistency could be caused by an undefined key, i.e., a fact view referencing an undefined key in the Timesheet dimension (e.g., data inconsistency).

[0094] In some embodiments, aggregation functions are used in one or more of the criteria queries and / or the generated logical model test queries. The following aggregation functions may be used when aggregating measures after grouping by a specified aggregation role:

[0095] [Table 8]

[0096] In some implementations, inconsistencies or failures may be caused by one or more of the following:

[0097] For the issue below, the reported measure value of the base query is greater than the aggregated measure value of the test query.

[0098] Joins between fact or dimension tables use an inner join but should be outer joins. This is most likely the case due to incorrect metadata on the FK columns in the fact table.

[0099] A fact table references a dimension with an FK value that does not have a matching PK for the dimension being targeted. This may be the result of an incorrect data load operation.

[0100] A fact or dimension table references an explanation column lookup in an incorrect join. This is most likely the case due to incorrect metadata in a flag column in the fact table.

[0101] If the results are grouped using a binned column, the results will be incorrect. This most likely implies that the bucket definition is incomplete and does not include all possible binned column values. It may also imply that the bucket type selected is incorrect.

[0102] For the issues below, the reported measure value of the base query is less than the aggregated measure value of the test query.

[0103] An incorrectly defined calculated measure or an incorrectly defined cross drill could be the root cause of this situation.

[0104] In some embodiments, a query issued by Audit 404 may encounter an error, such as a SQL error. For example, the SQL error may indicate the following problems:

[0105] ●The physical fact view or dimension view in the database (for example, Oracle® DB) is not defined correctly and triggers an SQL exception.

[0106] The physical table or column does not exist (for example, due to a metadata issue in Oracle® Utilities Application Framework ("OUAF")). The RPD created virtual tables with deficiencies that caused SQL exceptions (e.g. fact wrappers, characteristics table mappings, binning tables) - Connection problems with the server 406. This could be a network problem, and you can try to recover by re-login and retrying to issue the query.

[0107] In some embodiments, Audit 404 can implement one or more query strategies to improve resource efficiency and inconsistency discovery. For example, to arrive at a number of queries issued efficiently, the base query and test query can include all measures of the fact table that can be aggregated during validation / testing (e.g., using SUM, MIN, and MAX aggregation functions). In some embodiments, aggregation rules defined in the column metadata can define how to aggregate each measure column of the data records produced by the test query.

[0108] In some embodiments, qualifying queries on time dimensions can speed up the runtime of a test strategy and can help minimize the result set returned. For example, one can group on the highest level (e.g., AM / PM drill key) time dimension, or one can skip grouping on time dimension attributes. For example, one can skip grouping on time dimensions after initial testing determines that the time dimension is properly loaded. In addition, since there may be correlation between calendar and time dimension inconsistencies (e.g., because both are based on the same metadata), testing the time dimension individually would be redundant. An embodiment can exclude the time dimension, with the idea that if the regular expression for the PK excludes the PK of the time dimension, then the regular expression for the drill key will exclude the drill key of the time dimension.

[0109] In some embodiments, Audit 404 can generate queries to enumerate the joins indicated by the retrieved metadata. For example, one or more of the PK, drill key, binned columns, and description columns of the presentation dimensions related to the subject area can be identified. The audit query can group on one or more of the PK, drill key, binned columns, and description columns (e.g., to ensure that parent tables and grandparent tables are included). The audit query can also group on the binned columns and description columns on the fact tables. In some embodiments, the drill key of the calendar dimension can be targeted to ensure that joins between aggregate tables referencing the collapsed dimension are tested. In some embodiments, the query generated to enumerate the joins can be targeted to attribute columns of child tables that are incorporated into logical dimensions. In some embodiments, the query generated to enumerate the joins returns an error for the test query if the query takes longer than a specified timeout. For example, the timeout can be a fixed duration (e.g., 2 minutes, 5 minutes, etc.) or may be configured as a timeout that is X times longer than the normal query time (e.g., 5 times or more the default query time threshold of 1 minute per query).

[0110] In some embodiments, the one or more queries generated to enumerate joins may be configured to limit the columns to be grouped to a subset of the following available characteristics:

[0111] ●PK, ●Drill key on dimension (no PK), ● Table description column, ●Code description column, Binned columns on dimensions, ● Code explanation on the facts, Binned columns on facts, and ●Child table attributes (this feature will be available in future versions).

[0112] In some embodiments, a series of queries of increasing test query complexity may be generated by Audit 404. For example, a series of queries may be added that successively add the following as grouping criteria:

[0113] ●PK, ●Drill key on dimension (no PK), ● Table description column, ● Code Description column, or ● Binned columns on dimensions, ● Drill keys on facts, Binned columns on facts, and ● Child table attributes on a dimension.

[0114] In some embodiments, a defect may be detected based on the results for one or more of these issued audit queries if the query duration is longer than a specified timeout, if there are inconsistent results, or if the time difference between the current query and a previous query in the series of queries is greater than a configurable threshold. Some embodiments for generating queries to test complexity may target descriptive and binned columns on the fact table, as well as other dimensional features available (e.g., listed above) for the N dimensions of the fact with the highest number of such features. By default, N may be any default number (e.g., 3), and the value may be changed by configuration options. In some embodiments, calendar and time dimensions are not considered since they have low complexity. If two dimensions have the same number of features and N-1 dimensions have already been processed, some embodiments may select the first dimension based on alphanumeric sorting.

[0115] An embodiment can run multiple test cases simultaneously. In some embodiments, Audit 404 comprises a software tool that supports:

[0116] [Table 9]

[0117] Embodiments can improve the quality of the implemented logical model and / or database without excessive manual testing. For example, embodiments can identify: inconsistencies between the database schema and its sample data and the RPD model; FKs that were declared not to be NULL + required in the RPD model but contain NULL or strings with spaces (this is usually an issue with fact views); tables that were not fully loaded or updated; queries with unexpected performance degradation indicating modeling issues or view definition issues.

[0118] 9 is an example flow diagram for autonomously testing logic model inconsistencies, according to an example embodiment. In one embodiment, the functions of FIG. 9 are implemented by software stored in a memory or other computer-readable or tangible medium and executed by a processor. In other embodiments, the functions may be performed by hardware (e.g., through the use of an Application Specific Integrated Circuit ("ASIC"), a Programmable Gate Array ("PGA"), a Field Programmable Gate Array ("FPGA"), etc.) or any combination of hardware and software.

[0119] At 902, metadata describing a logical model may be obtained, where the logical model is an abstraction of a database schema implemented in a database and includes a fact table and one or more dimension tables. For example, metadata for a portion of the logical model (e.g., a subject area) may be obtained from a server that implements the logical model. In some embodiments, the metadata is obtained using a web services API.

[0120] In some embodiments, the metadata describes a logical schema against which logical queries can be issued. For example, a server that manages the metadata and / or implements the logical model can translate logical queries issued against the logical model into database queries that are issued against the underlying database. In some embodiments, the metadata can be managed in an RPD format.

[0121] At 904, a plurality of logical queries including at least a first logical query and a second logical query may be automatically generated based on the retrieved metadata, where the first logical query and the second logical query are directed to logical objects of the logical model. For example, a logical query for issuance against a logical model defined by the RPD metadata may be generated based on the retrieved metadata.

[0122] At 906, at least a first logical query and a second logical query may be issued to a server hosting the logical model, where at the server, the first logical query is translated into a first database query and the second logical query is translated into a second database query, where the first and second logical queries are targeted to at least fact and dimension tables of the database schema. In some embodiments, the first and second logical queries may be generated based on metadata associated with the targeted logical objects, and the first and second database queries may be targeted to the fact and dimension tables of the database schema based on mappings of the targeted logical objects used to translate the first and second logical queries.

[0123] In some embodiments, the first database query and the second database query are a pair of database queries configured to test a logical model using an aggregation function associated with the logical object. In some embodiments, the first database query aggregates measure data values ​​along one or more dimensions based on a definition of an aggregation function for the measure data defined in the metadata, and the second database query groups a plurality of the measure data values ​​by one or more dimensional attributes. In some embodiments, the first database query aggregates measure data values ​​along all dimensions of the measure based on a dimensional definition of the measure and a definition of an aggregation function for the measure data defined in the metadata.

[0124] At 908, query results received as a result of executing the first database query and the second database query may be compared. For example, comparing the query results of the pair of database queries may include comparing aggregated measure data values ​​(e.g., returned by the first database query) to aggregations of grouped measure data values ​​(e.g., returned by the second database query).

[0125] At 910, one or more inconsistencies may be identified if the comparison of the query results of the first database query and the second database query does not meet a criteria. Here, the one or more inconsistencies may be inconsistencies with a logical model defined by the metadata or inconsistencies in the database. In some embodiments, at least one inconsistency is identified if a difference between the aggregated measure data values ​​and an aggregation of the grouped measure data values ​​is greater than a threshold. At least one inconsistency may be identified with one or more of: relationships between the targeted logical objects and the targeted fact and dimension tables defined in the metadata, data loaded into the targeted fact and dimension tables in the database, and column configuration metadata defined for the targeted fact and dimension tables in the metadata.

[0126] In some embodiments, automatically generating the plurality of database queries includes automatically generating a plurality of paired database queries, where a first of each paired database query includes an aggregation of given measure data values ​​of one or more dimensions, and a second of each paired database query groups a plurality of the given measure data values ​​by one or more dimension attributes. For example, the plurality of paired logical queries may be issued to a server hosting the logical model, where each paired logical query may be transformed at the server into a paired database query that targets at least a fact table and a dimension table of the database schema. In some embodiments, query results received as a result of executing the paired database queries may be compared, and one or more inconsistencies may be identified if a comparison of the query results of each paired database query does not meet a criteria, where the one or more inconsistencies include an inconsistency with the logical model defined by the metadata or an inconsistency in the database.

[0127] In some embodiments, the automatically generated database queries of the pairs are configured to test the logical model using an aggregation function associated with at least one logical object targeted by each pair. For example, for the issued logical queries of the pairs, the logical query of a given pair may be generated based on metadata associated with at least one logical object targeted by the given pair, and the database query of the given pair that is translated based on the logical query of the given pair may at least target fact and dimension tables of a database schema based on a mapping for the targeted given logical object used to translate the logical query of the given pair. In some embodiments, the automatically generated database queries of the pairs test multiple logical objects of the logical model, and the translated database queries of the pairs test multiple fact and dimension tables of the database.

[0128] Embodiments provide for autonomous testing of logical model inconsistencies. For example, data schemas can sometimes require complex queries targeting related data across many tables / fields using joins and other advanced query constructs. To ease this query burden, some database implementations and reporting tools include a logical model or layer that maps the underlying complex data schema to a more simplified logical model. For example, the logical model can then be queried using further simplistic logical queries. These logical queries are transformed into queries targeting the underlying data schema (e.g., complex queries that can access / retrieve data in the underlying data schema).

[0129] Some embodiments of a logical model may include multiple layers of complexity, including various aggregation functions, drill-down functions, join operations, etc. For example, one or more tools may be used to rapidly develop a complex logical model, such as by defining metadata that can be used to deploy the model. In some embodiments, a tool may be used to define a conceptual data model through a user interface, and the output of such a tool may be metadata that stores conceptual relationships of the components that make up the logical data model.

[0130] In some embodiments, these tools can streamline the deployment of complex databases, but the deployment may contain low-level inconsistencies and / or defects. For example, aggregate functions defined in the logical model may not match the underlying data schema, one or more tables may not load correctly, configurations for data fields (e.g., that should not be null) may be set incorrectly, etc. These inconsistencies and / or defects traditionally require meticulous manual effort to debug.

[0131] Embodiments generate queries based on metadata of a logical model that autonomously tests for inconsistencies and / or defects when implemented with an underlying data schema. For example, metadata of a logical model can be obtained and analyzed to determine conceptual relationships between components of the model. In some embodiments, queries can be generated based on expected behavior of the logical model and the data schema as determined from the analyzed metadata. For example, pairwise queries can be generated that test expected aggregation functions (e.g., between one or more dimensions of the data schema).

[0132] Embodiments analyze the results of the queries. For example, two or more queries can be designed to return similar result sets (e.g., the same data values) if the logical data model accurately reflects data relationships in the data schema. If the returned result sets of these two or more queries are dissimilar, this may indicate an inconsistency with the logical model. In other examples, query errors may be returned due to an incorrect load of data, a missing database table or column, an incorrect embedded SQL expression, and / or an incorrect configuration of a data field. In some embodiments, these deviations from expected results can be used to identify one or more of these inconsistencies.

[0133] The features, structures, or characteristics of the disclosure described throughout this specification may be combined in any suitable manner into one or more embodiments. For example, the use of "one embodiment," "some embodiments," "particular embodiment," "particular embodiments," or other similar language throughout this specification refers to a particular feature, structure, or characteristic described with respect to an embodiment may be included in at least one embodiment of the disclosure. Thus, the appearances of the phrases "one embodiment," "some embodiments," "particular embodiment," "particular embodiments," or other similar language throughout this specification do not necessarily all refer to the same group of embodiments, but rather the described features, structures, or characteristics may be combined in any suitable manner into one or more embodiments.

[0134] Those skilled in the art will readily appreciate that the above-described embodiments may be implemented in a different order of steps and / or with elements in a different configuration than that disclosed. Thus, while this disclosure contemplates embodiments outlined, it will be apparent to those skilled in the art that certain modifications, variations, and alternative configurations will become apparent without departing from the spirit and scope of the disclosure. For that reason, reference should be made to the appended claims to determine the scope of the disclosure.

Claims

1. 1. A method for autonomously testing inconsistencies in a logic model, comprising: obtaining metadata describing a logical model, the logical model including an abstraction of a database schema, the database schema implemented in a database, the database schema including a fact table and one or more dimension tables, the method further comprising: automatically generating a plurality of logical queries including at least a first logical query and a second logical query based on the retrieved metadata, the first logical query and the second logical query being targeted to logical objects of the logical model, the method further comprising: issuing at least the first logical query and the second logical query to a server hosting the logical model, where the first logical query is translated into a first database query and the second logical query is translated into a second database query, the first database query and the second database query being targeted to at least fact tables and dimension tables of the database schema, the method further comprising: comparing query results received as a result of executing the first database query and the second database query; and identifying one or more inconsistencies if the comparison of the query results of the first database query and the second database query does not meet a criteria, the one or more inconsistencies comprising an inconsistency with the logical model defined by the metadata or an inconsistency in the database.

2. 2. The method of claim 1 , wherein the first database query and the second database query comprise a pair of database queries configured to test the logical model using an aggregation function associated with the logical object of interest.

3. 3. The method of claim 2, wherein the first and second logical queries are generated based on metadata associated with the targeted logical objects, and the first and second database queries are targeted to the fact and dimension tables of the database schema based on mappings of the targeted logical objects used to translate the first and second logical queries.

4. 4. The method of claim 3, wherein the first database query aggregates measure data values ​​along one or more dimensions based on a definition of an aggregation function for the measure data defined in the metadata, and the second database query groups a plurality of the measure data values ​​by one or more dimensional attributes.

5. 5. The method of claim 4, wherein the first database query aggregates measure data values ​​along all dimensions of the measure based on a dimensional definition of the measure and a definition of an aggregation function for the measure data defined in the metadata.

6. The method of claim 4 or 5, wherein comparing query results of the pair of database queries comprises comparing aggregated measure data values ​​with an aggregation of grouped measure data values.

7. The method of claim 6 , wherein the at least one inconsistency is identified if a difference between the aggregated measure data values ​​and the aggregation of the grouped measure data values ​​is greater than a threshold value.

8. 8. The method of claim 7, wherein the at least one inconsistency is identified with respect to one or more of: relationships between the targeted logical object and the targeted fact and dimension tables defined in the metadata, data loaded into the targeted fact and dimension tables in the database, and column configuration metadata defined for the targeted fact and dimension tables in the metadata.

9. 9. The method of claim 3, wherein automatically generating a plurality of database queries comprises automatically generating a plurality of pairs of database queries, a first of each pair of database queries including an aggregation of given measure data values ​​of one or more dimensions, and a second of each pair of database queries including grouping multiple of the given measure data values ​​by one or more dimensional attributes.

10. and issuing the plurality of paired logical queries to the server hosting the logical model, where each paired logical query is translated into a paired database query that targets at least a fact table and a dimension table of the database schema, the method further comprising: comparing query results received as a result of executing the plurality of pairs of database queries; and identifying one or more inconsistencies if the comparison of the query results of each pair of database queries does not meet a criteria, the one or more inconsistencies comprising an inconsistency with the logical model defined by the metadata or an inconsistency in the database.

11. 11. The method of claim 10, wherein the automatically generated database queries of the plurality of pairs are configured to test the logical model using an aggregation function associated with at least one logical object that each pair covers.

12. 12. The method of claim 11, wherein for the plurality of pairwise logical queries issued, the logical query of a given pair is generated based on metadata associated with the at least one logical object that the given pair is directed to, and a database query of a given pair that is translated based on the logical query of the given pair targets at least fact and dimension tables of the database schema based on mappings for the given logical object that is directed to used to translate the logical query of the given pair.

13. 13. The method of claim 12, wherein the automatically generated pairwise database queries test a plurality of logical objects of the logical model, and the transformed pairwise database queries test a plurality of fact and dimension tables of the database.

14. A program for causing a processor to execute the method according to any one of claims 1 to 13.

15. A system for autonomously testing inconsistencies in a logic model, comprising: A memory storing the program according to claim 14; A system comprising: a processor for executing the program.