Format-specific data processing operations

By replacing format-specific processes with substitution processes in an overlay specification, computer programs can handle diverse data formats, addressing format-related errors and enhancing testing and debugging capabilities.

JP7573359B2Active Publication Date: 2024-10-25AB INITIO TECHNOLOGY LLC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2018563483
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2017-02-15
Filing Date
2017-05-18
Publication Date
2024-10-25
Estimated Expiration
2037-05-18

AI Technical Summary

Technical Problem

Existing computer programs often fail to process data in formats different from their specific format requirements, leading to errors or incorrect processing due to format-specific components that cannot handle alternative formats.

Method used

A method and system for generating a second version of a computer program by identifying and omitting format-specific processes and replacing them with substitution processes defined in an overlay specification, allowing the program to handle different data formats.

Benefits of technology

Enables computer programs to process data in various formats without modifying the original program, facilitating testing and debugging while ensuring accurate data handling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007573359000001
    Figure 0007573359000001
  • Figure 0007573359000002
    Figure 0007573359000002
  • Figure 0007573359000003
    Figure 0007573359000003
Patent Text Reader

Abstract

1. A method, comprising: analyzing a first version of a computer program by a processor, the analyzing including identifying a first process included in the first version of the computer program, the first process configured to perform an operation on data having a first format; generating a second version of at least a portion of the computer program by the processor, the second version including omitting the first process, and including in the second version of at least a portion of the computer program one or more second processes configured to perform second operations on data in a second format different from the first format, wherein the second operations are based on the first operations.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] Claiming priority This application claims priority to U.S. Provisional Patent Application No. 62 / 345,217, filed June 3, 2016, and U.S. Patent Application No. 15 / 433,467, filed February 15, 2017, the contents of both of which are incorporated herein by reference in their entireties. [Background technology]

[0002] background Complex computations can often be represented as data flows using a directed graph (called a "dataflow graph"), where the components of the computation are associated with the vertices of the graph and data flows between the components, which correspond to the links (arcs, edges) of the graph. Each component may include data processing components that receive data at one or more input ports, process this data, and provide data from one or more output ports, and dataset components that act as senders or receivers of the data flow. Summary of the Invention [Means for solving the problem]

[0003] overview In one aspect, a method includes analyzing a first version of a computer program by a processor, the first process being configured to perform a first operation on data in a first format, and generating a second version of at least a portion of the computer program by the processor, the second version including omitting the first process and including in the second version of at least a portion of the computer program one or more second processes configured to perform a second operation on data in a second format different from the first format, the second operation being based on the first operation.

[0004] Embodiments may include one or more of the following features.

[0005] Identifying the first process includes identifying a first process in which a first operation is dependent on a format of the data.

[0006] Identifying the first process includes identifying a first process that is incapable of performing a first operation on data in the second format.

[0007] The method includes determining a format of data processed by a first process, and identifying the first process includes identifying a first process that is incapable of performing a first operation on data having the format of the data processed by the first process.

[0008] Identifying the first process includes identifying a first data processing element of the computer program, the first data processing element configured to execute the first process. Including one or more second processes in the second version of at least a portion of the computer program includes including one or more second data processing elements in the second version of at least a portion of the computer program, the second data processing elements configured to execute the one or more second processes.

[0009] The first format includes the data type.

[0010] The first format includes the size of the data element.

[0011] The first process is configured to perform a first operation on data records of a first record format and the one or more second processes are configured to perform a second operation on data records of a second record format, the first record format including names of fields in each record.

[0012] The method includes presenting, in a user interface, a first set of identifiers of one or more actions.

[0013] Generating a second version of at least a portion of a computer program includes generating a copy of this portion of the computer program.

[0014] The method includes modifying a copy of this portion of the computer program to omit the first process and to include one or more second processes.

[0015] The method includes executing a second version of the computer program.

[0016] The one or more second processes are defined by an overlay specification. Generating a second version of the computer program includes generating the second version based on the first version of the computer program and the overlay specification. The overlay specification identifies one or more of a process upstream of the first process and a process downstream of the first process. The method includes identifying the first process based on an analysis of executable code that defines the first process.

[0017] The computer program includes a graph, where a first process is an executable process represented by a first component of the graph, and one or more second processes are executable processes represented by one or more second components of the graph, where the one or more second components are configured to receive data records from an upstream component of the graph, and where the one or more second components are configured to provide data records to a downstream component of the graph.

[0018] In one aspect, a system includes means for analyzing, by a processor, a first version of a computer program, the analyzing including identifying a first process included in the first version of the computer program, the first process configured to perform a first operation on data having a first format; and means for generating, by the processor, a second version of at least a portion of the computer program, the means including omitting the first process, and including in the second version of at least a portion of the computer program one or more second processes configured to perform a second operation on data having a second format different from the first format, the second operation being based on the first operation.

[0019] In one aspect, a system includes a processor coupled to a memory, the processor and memory configured to analyze a first version of a computer program, the analyzing including identifying a first process included in the first version of the computer program, the first process configured to perform a first operation on data having a first format, and generating a second version of at least a portion of the computer program, the second version including one or more second processes configured to perform a second operation on data having a second format different from the first format, the second operation being based on the first operation.

[0020] In one aspect, a non-transitory computer readable medium has stored thereon instructions for causing a computing system to analyze a first version of a computer program, the analyzing including identifying a first process included in the first version of the computer program, the first process configured to perform a first operation on data having a first format, generating a second version of at least a portion of the computer program, the second version including omitting the first process, the second version of at least a portion of the computer program including one or more second processes configured to perform a second operation on data having a second format different from the first format, the second operation being based on the first operation.

[0021] Other features and advantages will become apparent from the following description and from the claims. [Brief description of the drawings]

[0022] Description of the drawings [Figure 1] 1 is an example of a graph. [Diagram 2] 1 is an example of a graph. [Diagram 3] 1 is an example of a graph. [Figure 4] This is an example of an overlay specification. [Diagram 5] FIG. [Figure 6] 1 is a flow chart. [Figure 7] FIG. [Figure 8] FIG. [Figure 9] FIG. [Figure 10] 1 is a flow chart. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0023] explanation An executable application, such as a graph, may include one or more processes that are specific to one or more particular formats of data records that are processed by the executable application. Such processes may perform operations on data in only one or more particular formats, and attempts to perform these processes on data in different formats may result in errors or inaccurate processing. Techniques are described herein for identifying processes of the executable application that are specific to one or more particular formats of data. To enable the executable application to perform operations on data in different formats, a second version of the executable application may be generated in which these format-specific processes are omitted and one or more other processes are included. These other processes, sometimes referred to as replacement processes, may perform operations that are based on the operations performed by the omitted format-specific processes, but are specific to one or more different formats of data, or that are capable of performing operations on data in any format. Including the replacement processes in the second version of the executable application may enable the executable application to process data in a format different from the format for which the original version of the executable application was configured.

[0024] The replacement processes can be defined in an overlay specification, which is a separate file from the original executable application (sometimes called the first application). The replacement processes defined in the overlay specification can be added to a second version of the application (sometimes called the second application) without becoming part of the original application. For example, when an application is compiled, the compiler takes into account the overlay file and generates a second application in which one or more processes are omitted and one or more corresponding replacement processes are included. Omission means that a process included in the first application is not included in the second application. The corresponding replacement components are inserted into the second application, e.g., in the position where the omitted process was located in the first application.

[0025] A substitution process is an example of an insertion. Other examples of insertion include test sources and probes, which can also be defined by overlay specifications. A test source is a substitution data source that can provide data, such as test data, for processing by an executable application. A probe is an alternative destination to which an executable application writes data. Injection can be useful to test or debug an executable application, such as a graph. For example, a tester or developer may want to run a test using a specific set of input data to observe the effect of a change they make to the application. By running the application using a consistent set of input data both before and after the change, the effect of this change on the data the application outputs can be monitored. In some examples, a tester may have a specific set of test data that will be used when testing an application, such as a set of test data that will exercise all of the application's functions at least once. Similarly, a tester may want to write this data that the application outputs to a specific destination that is different from the standard destination to which the application writes its output data.

[0026] In some examples, insertions can be automatically defined based on automatic analysis of the application. For example, replacement components can be automatically defined based on automatic identification of format-specific processes in the application. Test sources and probes can be automatically defined based on automatic identification of data sources and output data recipients in the application.

[0027] In some examples, the executable application is a graph-based process. A graph-based process includes one or more components, each representing an executable process, connected by flows that indicate the flow of data from one component to another. A substitution process is an object associated with a component in a graph-based process. A substitution process (sometimes called a replacement component) can replace an existing component in a graph such that data that would have been processed by the existing component is instead processed by the replacement component. Test sources and probe insertions are objects associated with flows in a graph-based process. A test source can replace data passing through a flow (e.g., upstream data) with new data, so that upstream calculations do not have to be re-executed on each execution of the graph. For example, a test source can replace a data source such that test data is provided to the graph from the test source rather than from the data source. A probe can monitor data passing through a flow as the graph executes and can store this data for later inspection or reuse. For example, a probe can receive data that would otherwise have been stored in an output data receiver, such as a database.

[0028] The insertions defined in the overlay specification can be added to an application during run-time without becoming part of the original application. When the application is compiled, the compiler takes the overlay file into account and generates an executable application that includes the insertions. One might refer to the original application as a first version of the application and the application that includes the insertions as a second version of the application. For example, in the graph-based process example, one might visually represent the executable graph as a second version of the graph that includes the components of the first version of the graph combined with the insertion objects defined in the overlay specification. In some examples, the executable graph is a shell script and is not stored in a file. In some examples, the executable graph and this graph are stored in separate files.

[0029] The inclusion of an insertion into a second version of a graph does not modify the first version of the graph. Instead, the insertion definitions remain in separate files (e.g., separate overlay specifications) and can be converted to regular graph components for inclusion in the modified graph at the start of code generation, thus eliminating the risk of unintentionally corrupting the original graph.

[0030] An example of a graph 100 is shown in Figure 1. Graph 100 is a visual representation of a computer program that includes data processing components connected by flows. A flow connecting two components indicates that records output by the first component are passed to the second component. The first component references the second component when it is connected to the second component by a flow.

[0031] A data source 102, such as a database (as shown), a file, a queue, an executable statement (e.g., SQL statement), or another type of data source external to the graph 100, contains one or more data records that are processed by the graph 100. By external, it is meant that the data of the data source 102 is not stored within the graph 100. The data source 102 is connected by a flow to a filter component 103. Generally, a filter component filters or removes records that do not meet certain criteria. In this example, the filter component 103 passes data records of customers who reside in Ohio and rejects other records. The filter component 103 is connected to a sort component 104, which sorts the filtered data records by zip code. The sort component 104 is connected to a duplicate component 106, which makes a copy of the data records so that they can be processed in two different ways. The duplicate component is connected to a format change component 108 and a filter by expression component 110. For example, one occurrence of a data record for customers who live in Ohio is sorted by zip code and sent to a reformatting component 108, and another occurrence of the data record is sent to a filter by expression component 110. The reformatting component 108 changes the format of the data record to a different data format, and the filter by expression component 110 removes the data record based on an expression associated with the data record. The reformatting component 108 and the filter by expression component 110 are connected to an aggregation component 112 that combines the received data records, which is connected to an output data sink component 114 that is external to the graph, such as a database (as shown), a file, a queue, or a downstream processing component. By external, it is meant that the data of the output data sink 114 is not stored within the graph 100.Graph 100 includes many flows between components, but of particular interest in this example are flow 116 between data source 102 and filter component 103 (sometimes referred to as source / filter flow 116), and flow 118 between aggregation component 112 and output data sink 114 (sometimes referred to as aggregation / output flow 118).

[0032] One or more of the components of the graph can be format-specific components. A format-specific component is a component that can only process data in one or more specific formats. A data format is a characteristic of an individual data item (e.g., a characteristic of the values ​​in a field of a record) or a characteristic of a record (sometimes called a record format). Examples of characteristics of an individual data item include the number of bytes for a data item, such as the size of the data item (e.g., a single-byte ASCII data item, or a multibyte data item), the type of the data item (e.g., a string type, an integer type, a Boolean type, or other data type), or another characteristic of an individual data item. Examples of record formats include the name of a field in a record, the position of a field in a record, the number of fields in a record, hierarchical records, arrays or repeating groups of fields, nested arrays, subrecords, or another characteristic of a record.

[0033] When a graph includes components specific to a particular data format, it may only be able to process data in that particular format. If the graph is used to process data having formats that differ from one another, errors may occur or the data may be processed incorrectly. To enable the graph to process data in a different format, one or more of the format-specific components may be replaced with components that can process data in a different format. The replacement components may be format-specific components that are specific to the various components, or they may be components that can process data in any format (which may be referred to as format-independent components).

[0034] 1, sort component 104 sorts records by values ​​in the zip code field. Sort component 104 in this example is a format-specific component that can only handle integers. An operator of graph 100 may want to use graph 100 to process a new set of data in which the zip code field may contain an alphanumeric string.

[0035] 2, a second version 200 of the graph 100 is generated in which the sort component 104 is omitted and a substitution sort component 204 is included. The substitution sort component 204 is placed in the second version of the graph 200 in the same position as the sort component 104 and is capable of sorting alphanumeric strings. The other components of the graph remain unchanged. The second version of the graph 200 is thus capable of processing new sets of data.

[0036] Some components may be able to receive data in any format and perform operations on this data, but may also output data in a particular format. If data in a different format is desired as output (e.g., to be provided as input to another application that specifies a particular format), the graph may not be able to provide this data. To enable the graph to output data in the desired format, one or more of the format-specific components can be replaced with a component that can output data in the desired format.

[0037] Still referring to FIG. 1, the format modification component 108 is a format-specific component that outputs data in a particular format. For example, the format modification component 108 may output a data record having four fields: Name, Account_num, Balance, and Trans_date. An operator of the graph 100 may want the graph 100 to generate output data in a different format, for example so that the output data can be processed by another application that has specific requirements for the record format of the input data. In this example, the desired format of the output data includes four fields: Cust_name, Balance, Account_num, and Trans_date. That is, the first field of the output data needs to be renamed and the second and third fields need to be switched.

[0038] 3, a second version 300 of the graph 100 is generated in which the format modification component 108 is omitted and a replacement format modification component 308 is included. The replacement format modification component 308 is placed in the second version of the graph 300 in the same position as the format modification component 108 to generate output data in the desired format. The other components of the graph remain unchanged.

[0039] In some examples, other components of the graph may be omitted, such as one or more components upstream or downstream of the format-specific component. In some cases, a replacement component may be included in place of one or more of the other omitted components.

[0040] In some examples, a tester of graph 100 may wish to debug graph 100 and verify its functionality. In some cases, the tester may wish to verify data as it flows from one component to another. In some cases, the tester may wish to bypass an upstream component in graph 100 and instead insert data at the location of the bypassed component. In some cases, the tester may wish to test the operation of graph 100 using a consistent set of input data to monitor the effect of modifying the graph on the data it outputs. In some cases, the tester may wish to test the operation of graph 100 using a set of input data that they know will allow all of the graph's functions to be executed at least once, thus allowing for complete testing of the graph.

[0041] When debugging the graph 100, it may be desirable to refrain from modifying the graph. For example, a tester may not want to risk compromising the functionality of the graph. In some examples, the tester may have limited or no access to the graph (e.g., the tester may not have the necessary permissions to edit the graph). In order to debug the graph 100 without modifying it, an overlay may be used to debug the graph. In some examples, the overlay may be specified automatically, for example, based on an automated analysis of the graph. A second version of at least a portion of the graph 100 may be generated based on the original graph 100 (sometimes referred to as a first version of the graph) and the overlay specification.

[0042] As data passes through the flows between components of the graph 100, for example, along the flow from a first component to a second component, or along the flow to an output data recipient, probes collect or monitor this data. For example, as data passes through the flows when the graph 100 is executed, this data can be monitored and stored for later inspection or saved for reuse. An overlay specification can define a probe that references a flow that carries data to be collected or monitored. A probe specifies a flow for which data should be collected or monitored. A probe can be configured to report a particular value, or when a particular value is within or outside a given range. Data passing through a probe may be saved for later analysis or use, for example, the data can be stored in a flat file or a relational database.

[0043] In some examples, a probe may reference a flow from a component of graph 100 to an output data sink, such as a file or database. During debugging of graph 100, the probe receives data output from graph 100 by placing the probe along the flow to the data sink. For example, each time graph 100 is executed in debugging mode, the output data may be received by the probe and written to a file so that output data from various graph executions can be compared or otherwise evaluated. In some examples, output data sinks are automatically identified and overlays are automatically specified to define probes to insert before the identified output data sinks.

[0044] In some examples, a probe may reference a flow from an upstream component of the graph 100 to a downstream component. By placing a probe along the flow to the downstream component while debugging the graph 100, the probe will receive data that would otherwise have been received by the downstream component, thus preventing the downstream component from executing. For example, a tester may wish to monitor the results of processing by the graph before the downstream component. For example, the downstream component may have functionality that affects something outside the graph, such as sending a text message to each person whose credit card record is processed by the downstream component. While debugging the graph, a tester may wish to disable components that affect something outside the graph.

[0045] A test source inserts data into the graph 100 at a particular flow between two components of the graph 100. An overlay specification can define a test source that references a flow that carries data to be replaced with data from a test source. In some examples, the test source replaces data that would normally pass through the flow with new data. In some situations, the test source can be configured to read previously stored data and pass this data to downstream components. In some examples, the test source inserts data into the graph 100 at a flow from a data source, such as a database or file. The test source can insert data having the same format as data that would otherwise be provided by the data source. In some examples, a data source is automatically identified and an overlay is automatically specified to define a test source to replace the identified data source.

[0046] In some examples, the results of executing graph 100 up to a certain point (e.g., up to a certain component) may have been previously verified; i.e., an upstream process function may have been verified up to a certain point. In such cases, it may be inefficient for the upstream component to re-process each function every time graph 100 is executed. At that point, the test source may insert data (e.g., previously verified data) into the graph. In this way, an entire section of graph 100 that has been previously executed may be bypassed.

[0047] Figure 4 illustrates an example of an overlay specification 200 that defines one or more insertions. An insertion may be an object associated with the flow of a graph (e.g., graph 100) and may take the form of a probe, a test source, or a replacement component. In the example of Figure 4, overlay specification 200 includes one test source definition 201 and one probe definition 213. Overlay specification 200 may be stored in a file, such as a file separate from the file that contains the specifications for graph 100.

[0048] The overlay specification 200 begins with a three line header that specifies the graph to which the insertion definition corresponds, followed by a test source definition 201, a probe definition 213, and a replacement component definition (not shown).

[0049] The test source definition 201 includes a name 202 , an upstream port 204 , a downstream port 206 , an insertion type 208 , a prototype path 210 , and layout parameters 212 .

[0050] The upstream port 204 of the test source definition 201 refers to the output port of the component immediately upstream of the flow where the test source is to be inserted into the graph 100. The component that is upstream of the flow is the component from which data is output on the flow. In the example of FIG. 4, the upstream port 204 of the test source definition 201 refers to the output of the database 102. The downstream port 206 of the test source definition 201 refers to the input port of the component immediately downstream of the flow where the test source is to be inserted into the graph 100. The component that is downstream of the flow is the component at whose input port data is received from the flow. In the example of FIG. 4, the downstream port 206 of the test source definition refers to the input of the filter component 103. Thus, the test source definition 201 in this example indicates that the test source is to be placed in the flow between the output of the database 102 and the input of the filter component 103, so that the data provided by this test source can replace the input data from the database 102.

[0051] Insertion type 208 defines whether the insertion is a test source, a probe, or a replacement component. In the example of Figure 4, a value of "0" defines a test source, a value of "1" defines a probe, and a value of "2" defines a replacement component. Other values ​​can be used to define the type of insertion. Since this insertion is a test source, the value of insertion type 208 is "0".

[0052] Prototype path 210 indicates the type of insertion. In this example, the insertion is a test source, so prototype path 210 specifies an input file component. Prototype path 210 points to a file that contains the code that defines the particular type of insertion. Layout parameters 212 define the location of the source file that contains the data that the test source will contain. In some examples, this location is a file path. The data in the source file will replace the data that would normally pass through the flow defined by upstream ports 204 and downstream ports 206. That is, when the test source is applied to graph 100, filter component 103 receives the data in the source file rather than receiving data from database 102.

[0053] The source file contains data having the same format as data that would otherwise be received by components downstream of the test source. In some examples, the data in the source file may be the same as the data in a data source (e.g., a database) upstream of the test source. For example, data records from database 102 may be copied into the source file. In some examples, the data source represents executable statements, such as SQL queries. In these examples, the SQL queries may be executed and the results of the query execution may be stored in the source file. In some examples, the data in the source file may be obtained from somewhere other than the data source. For example, the data in the source file may be generated to ensure that certain data (e.g., a range of values) is processed in order to fully debug graph 100. In some examples, even if the data in the data source is changed, the data in the source file remains the same, thus allowing debugging to continue with a consistent set of input data.

[0054] In some examples, the data in the source file may be the same as the data that would pass through the flow during normal execution of graph 100, but by inserting this data using a test source, an upstream component can refrain from processing. For example, an upstream component, such as replica component 106, may require a large amount of system resources to process the data or may take a relatively long time to process the data compared to other components in data flow graph 100. Thus, known data (e.g., the same data that would pass through the flow during normal execution) may be inserted into the flow to save time or conserve system resources.

[0055] The probe definition 213 includes a name 214 , an upstream port 216 , a downstream port 218 , an insertion type 220 , and a prototype path 222 .

[0056] The upstream port 216 of the probe definition 213 references an output port of the component immediately upstream of the flow where the probe is to be inserted into the graph 100. In the example of Figure 4, the upstream port 216 of the probe definition 213 points to the output of the aggregation component 112. The downstream port 218 of the probe definition 213 references an input port of the component immediately downstream of the flow where the probe is to be inserted into the graph 100. In the example of Figure 4, the downstream port 218 of the probe definition 213 points to the output data sink component 114. Thus, the probe definition 213 in this example indicates that the probe will be placed in the flow between the output of the aggregation component 112 and the output data sink component 114, resulting in the probe receiving data that would otherwise have been written to the output data sink component.

[0057] The insertion type 220 of the probe definition 213 defines whether the insertion is a test source, a probe, or a replacement component. Since this insertion is a probe, the value of insertion type 220 is "1."

[0058] Prototype path 222 indicates the type of insertion. In this example, the insertion is a probe, so prototype path 222 specifies an output file component. Prototype path 222 points to a file that contains the code that defines a particular type of insertion.

[0059] In some examples, the data to be monitored by the probe is stored in a file that is automatically created by the system. The file can be stored in a location determined by the system. The probe monitors data passing through a flow defined by the upstream port 216 and downstream port 218. That is, when a probe is applied to the graph 100, data passing from the output of the aggregation component 112 to the input of the output data sink component 114 is monitored and stored in a file that is automatically created by the system. In some examples, this data can be monitored before being stored. The file can receive data in the same format that would have been received by the component referenced by the probe definition (in this example, the external data sink component 114).

[0060] In some examples, the overlay specification may define the insertion of one or more probes or test sources as a result of the automated analysis of the graph 100. For example, the automated analysis of the graph 100 may be performed to identify any data source, such as a database, file, or other type of data source. One or more of the identified data sources may be automatically replaced with a test source. A replaced data source means that a test source is inserted in the flow immediately downstream of the data source, so that data from this test source is provided to the downstream component instead of data from the data source. Similarly, the automated analysis of the graph 100 may identify any output data receiver, such as a database, file, or other type of output data receiver. One or more of the identified output data receivers may be automatically replaced with a probe. A replaced output data receiver means that a probe is inserted in the flow immediately upstream of the output data receiver, so that data from the upstream component is received by the probe instead of the output data receiver. Automated analysis of graph 100 may also be used to identify other components, such as components of particular types (eg, components of particular types that have effects outside of graph 100 when they execute).

[0061] Further description of the insertion of test sources and probes is provided in U.S. patent application Ser. No. 14 / 715,807, the entire contents of which are incorporated herein by reference.

[0062] A replacement component definition includes a name, an upstream port, a downstream port, an insertion type, a prototype path, and layout parameters. The upstream port of a replacement component definition references an output port of the component immediately upstream of where this replacement component is to be inserted in graph 100. The downstream port of a replacement component definition references an input port of the component immediately downstream of where this replacement component is to be inserted in graph 100. Based on the upstream and downstream ports, an existing component in graph 100 to be replaced by the replacement component can be identified. The insertion type defines that this insertion is a replacement component.

[0063] The prototype path indicates the type of insertion. In this example, this insertion is a replacement component, so the prototype path points to a file that contains the code that defines the replacement component. The code that defines the replacement component is based on the code that defines the existing component it is replacing, but is capable of processing data in the desired format.

[0064] In some examples, as a result of the automated analysis of the graph, the overlay specification may define one or more replacement components for the graph. For example, the specification of each component in the graph may be analyzed. The specification of a component includes or points to code that defines the component, e.g., code that defines a data processing operation represented by the component. Analysis of the code may reveal whether the data processing operation represented by the component is dependent on the format of the data.

[0065] A replacement component is defined for one or more of the identified format-specific components. In some examples, the format-specific components to replace are identified based on user input. For example, a user may use their knowledge of the format of the input data, the processes represented by each of the format-specific components, or both to determine whether to replace any of the components. In some examples, an automated analysis of the format of the input data against the format of data previously processed by the graph may be performed to identify whether to replace any of the format-specific components.

[0066] In some examples, a non-graph-based computer program may identify one or more format-specific processes within the computer program and replace them with one or more other processes, e.g., processes that can operate on data in a particular format, or processes that can operate on data in any format.

[0067] 5, to insert test sources, probes, or both, analysis engine 300 automatically analyzes graph 100 to identify data sources 302 and output data sinks 304. For example, analysis engine 300 can access parameters and connections for each node of graph 100 (the terms "node" and "component" are sometimes used interchangeably). If a given node has no input connections, analysis engine 300 identifies the node as a data source. Similarly, if a given node has no output connections, analysis engine 300 identifies the node as an output data sink. To access and analyze each node of the graph, analysis engine "walks" through all of the graph's connections (the terms "connection" and "flow" are sometimes used interchangeably). In some examples, graph 100 is not instantiated or parameterized until run time (e.g., when processing begins for debugging purposes). The analysis engine 300 can perform automated analysis at run-time to identify data sources and output data recipients within the graph 100 .

[0068] The analysis engine 300 sends identifiers of the data sources 302 and output data sinks 304 to the insertion engine 306, which determines which data sources and output data sinks are to be replaced with test sources and probes, respectively. In some examples, a tester 308 provides a list 310 of data sources and output data sinks to be replaced with test sources and probes. This list 310 can be provided as a file, a database, or in another format. For example, the tester 308 may have on the list 310 any data sources that are expected to change frequently. By replacing such data sources with test sources, the tester 308 can ensure that the graph is tested using consistent input data.

[0069] The insertion engine 306 compares each identified data source 302 and output data sink 304 with the data sources and output data sinks on the list 310. The insertion engine creates an overlay specification 312 for any data source 302 or output data sink 304 that appears on the list 310. In some examples, parameters for the overlay specification 312, such as upstream and downstream ports, are provided to the insertion engine 306 by the analysis engine 300. In some examples, the insertion engine 306 accesses the graph 100 to obtain the relevant parameters.

[0070] To create an overlay specification 312 for a test source, the insertion engine 306 reads data into the source file. In some examples, the insertion engine 306 reads data copied from a data source 302 into the source file for the test source that will replace the particular data source 302. In some examples, the data source 302 includes an executable expression, such as an SQL statement, and the insertion engine 306 executes the executable expression and reads the results into the source file. In some examples, the insertion engine 306 can request data for the source file from the tester 308 via the user interface 314. For example, the insertion engine 306 can provide the tester 308 with a list of identified data sources 302 so that the tester 308 can select which of the identified data sources 302 are to be replaced with the test source. The tester 308 can also specify data to be included in the source file for the test source. In some cases, the tester 308 may identify a location (e.g., a path) of a file containing data for the test source. In some cases, the tester 308 may instruct the insertion engine 308 to generate a source file that is a copy of the data in the original data source 302. In some cases, the tester 308 may instruct the insertion engine 308 to execute an executable expression, such as a SQL statement, contained in or associated with the original data source 302. In some cases, the tester 308 may be able to generate data for the source file of the test source. For example, the tester 308 may provide a set of data, such as real data or generated data, that will cause every function in the graph to be executed at least once.

[0071] To create the overlay specification 312 for the probe, the insertion engine 308 determines the location of the file where the output data should be stored. In some examples, this location is set to a default, such as by a systems engineer. In some examples, the insertion engine 306 can request the tester 308, via a user interface 314, to specify a location for the output data file.

[0072] To insert a replacement component, the analysis engine 300 analyzes the graph 100 to identify one or more format-specific components 305 in the graph. To analyze each component of the graph, the analysis engine 300 "walks" through all of the connections of the graph. In some examples, the analysis engine 300 may start with the furthest upstream component of the graph and "walk" through each output flow from this upstream component, thus eventually analyzing all of the components of the graph. Conversely, the analysis engine 300 may start with the furthest downstream component of the graph and "walk" through each input flow to this downstream component, thus eventually analyzing all of the components of the graph.

[0073] The analysis engine 300 can access a specification of each component in the graph 100. The component specification includes or points to the code that defines the component, e.g., the code that defines the data processing operation represented by the component. Based on an analysis of the code, the analysis engine 300 can determine whether the data processing operation is dependent on the format of the data. The analysis engine 300 sends the identifiers of the format-specific components to the insertion engine 306, which determines whether to omit any of the format-specific components in favor of a replacement component.

[0074] In some examples, the analysis engine 300 analyzes the graph 100 in response to a user request. For example, a user may want to use the graph 100 to process data in a different format than the data normally processed by the graph. The user may request analysis of the graph 100 to ensure that the graph 100 can process data in a different format.

[0075] In some examples, the analysis engine 300 analyzes the graph 100 once to generate a list of all the format-specific components in the graph, e.g., when the graph is first defined or when the graph is first instantiated or parameterized (e.g., on the first execution of the graph). The list of format-specific components in the graph can be stored for future reference and used, for example, in response to a user request to use the graph 100 to process data of different formats.

[0076] In some examples, the analysis engine 300 automatically determines when to analyze a graph. For example, a graph's specification may include a description of the format of data previously processed by this graph. If the format of the input data differs from the format of the previously processed data, the analysis engine may analyze the graph to determine whether any components need to be replaced to process the input data in a different format.

[0077] The insertion engine 306 determines whether to omit any of the format-specific components identified by the parsing engine 300. The insertion engine 306 creates an overlay specification that defines a replacement component for each omitted component.

[0078] In some examples, the format-specific components to be omitted are identified by a user. For example, the insertion engine 306 can display a list of identified format-specific components in the user interface 314, and the user selects the components to replace. The user can indicate which components are to be used as replacement components for each of the components to be replaced. For example, the user may use his or her knowledge of the format of the input data, the process represented by each of the format-specific components, or both, to determine whether any of the components should be omitted and which components should be included as replacement components. Based on user input identifying the components to be omitted, the replacement components, or both, the insertion engine 306 creates an overlay specification.

[0079] In some examples, the insertion engine 306 can automatically determine whether any of the format-specific components should be omitted and which components should be included as replacement components. For example, the insertion engine can analyze the specifications of each of the format-specific components to determine which components can or cannot process the input data. The insertion engine 306 can automatically identify replacement components, e.g., replacement components that represent the same data processing operations represented by the corresponding components to be replaced, but that can process data in the format of the input data. The insertion engine 306 creates overlay specifications for the automatically identified replacement components. In some examples, user input is incorporated into the automated decision. For example, a user may be asked to approve the replacement components identified by the insertion engine 306.

[0080] FIG. 6 illustrates a general approach for defining substitution components for a graph. A set of data having a particular format is received for processing by the graph (400). A determination is made as to whether the graph should be parsed for its ability to handle the particular format of the received data (402). In some examples, a user may indicate, e.g., via a user interface, that the graph should be parsed. For example, the user may know that this set of data has a different format than previous data processed by the graph. In some examples, this determination may be made automatically. For example, the format of the received data may be determined and compared to information stored, e.g., in a specification for the graph, that indicates the format of the data for which the graph is constructed. If the format of the data for which the graph is constructed and the format of the received data do not match, the graph is parsed.

[0081] The graph is analyzed, e.g., by a processor, to identify one or more components of the graph that depend on the format of the data processed by the components (404). In particular, a specification for each of one or more of the graph's components is analyzed to identify format-specific components in the graph. In some examples, the graph is analyzed by progressing step-by-step through each component of the graph. For example, each component is analyzed to determine if it is a format-specific component and to identify its input and output flows. Each flow continues to adjacent components, each of which is analyzed to determine if it is format-specific and to identify its input and output flows. In this manner, all of the components of the graph can be analyzed. In some examples, the analysis can be performed automatically at run-time, e.g., after the graph has been parameterized. In some examples, the analysis can be performed automatically and dynamically, e.g., while the graph is being executed. For example, dynamic analysis can be performed as certain parameters are resolved during the execution of the graph. In some examples, the graph is received into a short-term memory, from which the graph is analyzed by a processor to identify format-specific components.

[0082] One or more of the components identified as format specific are evaluated to determine whether a component should be omitted and whether replacement components are included (406). For example, a format specific component may be omitted if the component cannot process data having the format of the received data set. In some examples, a list of the format specific components is displayed in a user interface and a user specifies whether any of the components should be omitted. In some examples, the specifications of each format specific component are evaluated to automatically determine whether the component can process data having the format of the received data set. In some examples, all of the components identified as format specific are omitted.

[0083] An overlay specification is defined 408 for a replacement component for each one or more of the format-specific components to be omitted. The specification of a given replacement component is based on the specification of the corresponding omitted format-specific component, but defines one or more data processing operations that can be performed on data having the format of the received set of data. In some examples, the replacement component can be format-specific with respect to the format of the received set of data. In some examples, the replacement component can be generic, e.g., capable of processing data of any format.

[0084] Prior to execution of the graph, a compiler may compile the graph into an executable graph (410). As part of the compilation, the compiler takes into account an overlay specification 200 that defines replacement components. For example, the compiler may accept the overlay specification 200 as input. A second version of the graph is generated, the format-specific components identified for replacement are removed, and one or more replacement components are inserted into the second version of the graph as objects in place of the removed components. The replacement components may be represented in the second version of the graph along with the data processing components included in the first version of the graph 100 (other than the removed components). The overlay specification 200, or a file that stores this overlay specification, remains separate from the file that contains the graph. That is, the replacement components may appear in the second version of the graph along with the data processing components included in the first version of the graph, but the file that contains the first version of the graph does not include definitions of the replacement components.

[0085] The insertion of test sources, probes, or replacement components defined in the overlay specification can be performed using one of at least two modes: Single-Execution Mode and Saved-State Mode.

[0086] FIG. 7 illustrates an exemplary system for executing an insertion definition in a single execution mode. In this example, a client 602 creates or references a first version of a graph 604 and an overlay file 606 (e.g., an overlay specification) that defines the insertion. For example, the overlay file 606 may be the overlay specification 200 of FIG. 4. The graph 604 is then compiled by a compiler 608. The compiler 608 creates a second version of the graph, taking into account the overlay file 606. The second version of the graph is executable and includes the insertion defined by the overlay file 606. The second version of the graph can then be executed. In some examples, the compilation and execution occur simultaneously. If the second version of the graph is to be executed again, the process is repeated, including re-specifying the graph 604, recompiling, and re-executing the second version of the graph. No information is preserved from one execution of the executable graph to the next.

[0087] FIG. 8 illustrates an exemplary system for executing an insertion definition in a saved-state mode using a save-state manager 708. In this example, a client 702 creates or references a graph 704 and an overlay file 706 (e.g., an overlay specification) that defines the insertion. For example, the overlay file 706 may be the overlay specification 200 of FIG. 4. A saved-state repository 710 is managed by the save-state manager 708 and a compiler 712. The save-state manager 708 may also identify where this saved-state data is located within the saved-state repository 710. The graph 704 is compiled by the compiler 712. The compiler 712 takes into account the overlay file 706 and creates a second version of the graph that includes the insertion defined by the overlay file 706. The second version of the graph may then be executed. In some examples, the compilation and execution occur simultaneously. Saved state mode differs from single execution mode in that it allows an executable graph to be executed multiple times while saving information between each execution.

[0088] The save state manager 708 can reside in a save state manager directory and manages the save states. Examples of information that can be stored in the save state repository 710 include information related to probe insertions, information related to test source insertions, information related to replacement component insertions, information related to overlay files 706, and parameters (e.g., attributes) associated with graph components, among other information.

[0089] In some examples, when the executable graph is executed, only certain portions of the graph are executed. That is, only certain components of the graph are executed. In some examples, fewer than all of the components of the graph are executed. The executable graph need only execute components that will affect the insertion. In some examples, the second version of the graph is a second version of the entire original graph. In some examples, the second version of the graph is a second version of only a portion of the entire original graph, e.g., a second version of only the portion of the graph associated with the defined insertion. For example, components upstream of the most upstream replacement component may be executed by the first version of the graph, and components starting with the most upstream replacement component may be executed by the second version of the graph.

[0090] 9 illustrates an exemplary data processing system 800 in which the substitution component techniques described herein can be used. The system 800 includes a data source 802, which may include one or more sources of data, such as connections to storage devices or online data streams, each of which may store or provide data in any of a variety of formats (e.g., database tables, spreadsheet files, flat text files, or native formats used by mainframes). The execution environment 804 and development environment 818 may be hosted on one or more general-purpose computers under the control of a suitable operating system, such as, for example, a version of the UNIX operating system. For example, the execution environment 804 may include a multi-node parallel computing environment, including a configuration of computer systems using multiple central processing units (CPUs) or processor cores, a local system (e.g., a multiprocessor system such as a symmetric multiprocessing (SMP) computer) or a locally distributed system (e.g., multiple processors coupled as a cluster or massively parallel processing (MPP)), or remote processors or remotely distributed processors (e.g., multiple processors coupled via a local area network (LAN) and / or wide area network (WAN)), or any combination thereof.

[0091] The execution environment 804 reads data from the data source 802 and generates output data. The storage device providing the data source 802 may be local to the execution environment 804, e.g., it may be stored on a storage medium (e.g., hard drive 808) connected to the computer hosting the execution environment 804, or it may be remote to the execution environment 804, e.g., it may be hosted on a remote system (e.g., mainframe 810) that communicates with the computer hosting the execution environment 804 via a remote connection (e.g., provided by a cloud computing infrastructure). The data source 802 may include data defined in a test source definition (e.g., test source definition 201 of FIG. 4). That is, the layout parameters 212 of the test source definition 201 may point to the location of the source files in the data source 802.

[0092] The output data may be stored back to the data source 802 or data storage system 816 accessible to the execution environment 804, or may be used in other ways. The data storage system 816 is also accessible to a development environment 818, where a developer 820 can develop, debug, and test the graphs. In some implementations, the development environment 818 is a system for developing applications as graphs that include nodes (representing data processing components or data sets) connected by directed flows (representing the flow of work elements or data) between each node. For example, U.S. Patent No. 2007 / 0011668, entitled "Managing Parameters for Graph-Based Applications," is incorporated herein by reference, which describes such an environment in more detail. U.S. Patent No. 5,966,072, entitled "EXECUTING COMPUTATIONS EXPRESSED AS GRAPHS," is incorporated herein by reference, which describes a system for executing such graph-based computations. A graph created according to this system provides a method for getting information to and transferring information between individual processes represented by the graph components, and for defining an execution order for each process. The system includes an algorithm for selecting a method of inter-process communication from any available method (e.g., communication paths through the graph flows could use TCP / IP or UNIX domain sockets, or shared memory could be used to pass data between processes).

[0093] The development environment 818 includes a code repository 822 for storing source code. In some examples, the source code and overlay specifications (e.g., overlay specifications 220 of FIG. 4) may be developed by a developer 820 accessing the development environment, for example, via a user interface. In some examples, the source code and overlay specifications are determined automatically, for example, by the analysis engine 300 and insertion engine 306 described above. In some examples, the graphs and overlay specifications may be stored in the code repository 822. In some examples, the code repository 822 stores graphs and a separate overlay repository 824 stores overlay specifications.

[0094] One or both of the code repository 822 and the overlay repository 824 may be in communication with a compiler 826. The compiler 826 may compile the first version of the graph and the overlay specification (e.g., overlay specification 200 of FIG. 4) into an executable second version 828 of the graph. For example, the compiler may accept the overlay specification as input. One or more insertions are processed and inserted into the graph in the form of objects that each correspond to an insertion definition included in the overlay specification. The second version 828 of the graph may be visually represented by a modified graph. The inserted objects may be shown in the second version of the graph 500.

[0095] Development environment 818 can include an execution environment 830 for executing second version of graph 828. For example, once the graph is compiled by compiler 826, second version of graph 828 can be executed. Executing second version of graph 828 can include executing computations associated with each component, insertions (e.g., test sources, probes, replacement components, or any combination of two or more of these), and directed flows of second version of graph 828 as data (e.g., work elements or data records) flows between each component. In some examples, execution environment 830 executes second version of graph 828 without modifying source code of the first version of graph stored in code repository 822 or source code stored in overlay repository 824. Execution environment 830 can be accessible through an interface of development environment 818 or can have its own interface. The interface can be configured to display information related to the execution. The interface may also be configured to display information related to the insertion (e.g., data monitored and stored by probes, data being inserted by test sources, information about replacement components, or other information). The execution environment 830 may allow the developer 820 to execute the second version of the graph 828 multiple times and modify aspects of the second version of the graph 828 between each execution.

[0096] In some examples, a developer manages the insertion and compilation of a graph. For example, developer 820 selects a first version of graph 100 of FIG. 1 from code repository 822. Developer 820 also selects overlay specification 200 of FIG. 4 from overlay repository 824. In some examples, instead of selecting overlay specification 200, developer 820 may select an insertion definition from a variety of overlay specifications in overlay repository 824. Developer 820 instructs compiler 826 to compile a second version 828 of the graph based on the first version of graph 100 and overlay specification 200.

[0097] In some examples, the insertion is inserted automatically. For example, as described above, one or more data sources, output data sinks, or format-specific components in graph 100 are automatically identified, for example, by identifying components that have no input or output connections or by analyzing the specifications of components in graph 100. The identified data sources and output data sinks can be automatically compared to a list of data sources and output data sinks that are to be replaced by an insertion during debugging of graph 100. For example, this list can be provided by developer 820. The format-specific components can be analyzed to determine whether the components can process data in a particular format, such as the format of an incoming set of data. A list of format-specific components that cannot process the data is generated. In some examples, this list can be provided by developer 820. According to this list, overlay specifications are automatically created for the data sources, output data sinks, or format-specific components of graph 100. A second version of the graph is then automatically compiled.

[0098] In some examples, the overlay specifications are not persistently stored as files in the code repository 822 or the overlay repository 824. Rather, information that would normally be contained in an overlay file (e.g., insertion definitions) is created by the developer 820 (e.g., via a user interface) or determined automatically by the analysis engine 300 and insertion engine 306 and temporarily stored in memory. The overlay information is then passed to a compiler (e.g., 608 in FIG. 8) or a save state manager (e.g., 708 in FIG. 9).

[0099] 10, in an exemplary process, a first version of a graph (e.g., graph 100 of FIG. 1) is received (902). For example, the first version of the graph may be received in a short-term memory accessible to a processor. The first version of graph 100 includes components and flows. The components represent operations performed on data records, and the flows represent the flow of data records between components.

[0100] An overlay specification is received (904) defining one or more insertions. In some examples, the overlay specification is received from a developer or tester. In some examples, the overlay specification is automatically defined, for example, as described above. The overlay specification may be the overlay specification 200 shown in FIG. 4. The overlay specification may include one or more insertion definitions (e.g., one or more test source definitions, one or more probe definitions, or one or more replacement component definitions). The insertion definition may include a name, an upstream port, a downstream port, an insertion type, a prototype path, and layout parameters (for a test source definition). Each of the defined test sources and probes may be associated with a flow of the graph 100. Each of the defined replacement components may be associated with a component of the graph 100.

[0101] One or more objects are created, each corresponding to one of the defined insertions 906. The objects may be components of the graph, such as test sources, probes, or replacement components.

[0102] A second version of at least a portion of the graph is generated (908), including at least some of the components and flows of the portion of graph 100 and the generated object or objects. In some examples, the second version of the graph is a copy of the original graph 100 modified to include at least some of the components and flows of the portion of graph 100 and the generated object or objects. The second version of the graph can be visually represented by a modified graph (e.g., the second version of graph 200 of FIG. 2 or the third version of graph 300 of FIG. 3). Each object is inserted in a flow associated with a predefined insertion (for a test source or probe) corresponding to the object, or in place of a component associated with a predefined replacement component corresponding to the object. The generated insertion object may appear in the second version of the graph, along with the data processing components of graph 100, but the first version of graph 100 (or the file including the first version of graph 100) is not modified.

[0103] Although compilers (e.g., compiler 608 of FIG. 7 and compiler 712 of FIG. 8) have been described that can compile the graph and overlay specification to create a second version of the graph that includes insertions defined by the overlay file, in some embodiments, the graph and overlay specification are not compiled. For example, the graph and overlay specification may be executed directly without being compiled. An interpreter may execute the graph and overlay specification directly by translating each statement into a series of one or more subroutines that have already been compiled into machine code.

[0104] Although insertions have been described in the form of probes, test sources, and replacement components, depending on the embodiment, insertions can take other forms. Insertions can be used broadly to input data at given points in the graph and to extract data from given points in the graph. For example, insertions can be designed to monitor the quality of data passing through the flow of the graph. If the data quality falls below a threshold, the user can receive an automatic alert. Further description of insertions can be found in U.S. Patent Application Serial No. 14 / 715,904, the entire contents of which are incorporated herein by reference.

[0105] Additionally, although the insertion has been described in the context of graphs, in some embodiments, the insertion may be used with other executable applications. For example, data sources, output data sinks, or format-specific processes for a generic executable application may be identified using automated analysis of the application. One or more of the identified data sources, output data sinks, or format-specific processes may be replaced by appropriate test sources, probes, or replacement processes, respectively. In this manner, the executable application may process data from a test source and output data to a probe, or may be capable of processing data in different formats. This configuration may be useful for testing or debugging the executable application.

[0106] The techniques described above can be implemented using a computing system executing appropriate software. For example, the software may include procedures in one or more computer programs executed on one or more programmed or programmable computing systems (which may be of various architectures, such as distributed, client / server, or grid), each of which includes at least one processor, at least one data storage system (including volatile and / or non-volatile memory and / or storage elements), and at least one user interface (for receiving input using at least one input device or input port and providing output using at least one output device or output port). The software may include one or more modules of a larger program that provides services related to, for example, graph design, configuration, and execution. Each module of the program (e.g., an element of the graph) can be implemented as a data structure or other organized data that conforms to a data model stored in a data repository.

[0107] The software may be implemented on a tangible, non-transitory medium, such as a CD-ROM or other computer-readable medium (e.g., readable by a computing system or device, general purpose or special purpose), or may be delivered to the tangible, non-transitory medium of a computing system on which the software is executed (e.g., encoded in a propagating signal) via a communication medium of a network. Some or all of the processing may be performed on a special purpose computer, or may be performed using special purpose hardware, such as a coprocessor or a field programmable gate array (FPGA), or a special purpose application specific integrated circuit (ASIC). The processing may be performed in a distributed manner, with different parts of the computation specified by the software being performed by different computing elements. Each such computer program is preferably stored or downloaded into a computer-readable storage medium (e.g., a solid-state storage device or medium, or a magnetic or optical medium) of a general purpose or special purpose programmable computer-accessible storage device, in order to configure and operate the computer when the storage medium is read by the computer to perform the processes described herein. The inventive system may also be considered to be embodied as a tangible, non-transitory medium configured with a computer program, where such medium causes a computer to operate in a particular, predefined manner to perform one or more of the process steps described herein.

[0108] A number of embodiments have been described. Nevertheless, it should be understood that the foregoing description is illustrative, not limiting, of the scope of the present invention, which is defined by the scope of the appended claims. Accordingly, other embodiments are within the scope of the appended claims. For example, various modifications may be made without departing from the scope of the present invention. Furthermore, some of the steps described above may be order-independent, and thus may be performed in a different order than described.

Claims

1. analyzing, by a processor, a first version of a computer program, the first version including identifying a first process included in the first version of the computer program, the first process configured to perform a first operation on data in a first format; creating, by a processor, a specification based on said analysis that defines one or more second processes configured to perform a second operation on data in a second format different from the first format, said second operation being based on said first operation, said specification being separate from said computer program; running a compiler or interpreter to generate a second version of at least a portion of the computer program based on the first version of the computer program and the specification, comprising omitting the first process, and including in the second version of at least the portion of the computer program the one or more second processes configured to perform the second operation on data defined by the specification and in the second format different from the first format.

2. The method of claim 1 , wherein identifying the first process comprises identifying a process whose first operation is dependent on a format of the data.

3. 3. The method of claim 1 or 2, wherein identifying the first process comprises identifying a process that is incapable of performing the first operation on data in the second format.

4. The method of any one of claims 1 to 3, comprising determining the first format of data to be processed by the first process.

5. 5. The method of claim 1, wherein identifying the first process comprises identifying a first data processing element of the computer program, the first data processing element being configured to execute the first process.

6. 6. The method of claim 5, wherein including the one or more second processes in the computer program includes one or more second data processing elements in the second version of at least the portion of the computer program, the second data processing elements being configured to execute the one or more second processes.

7. The method of any one of claims 1 to 6, wherein the first format comprises a data type.

8. The method of any one of claims 1 to 7, wherein the first format comprises a size of a data element.

9. 9. The method of claim 1, wherein the first process is configured to perform the first operation on data records in a first record format, and the one or more second processes are configured to perform the second operation on data records in a second record format.

10. 10. The method of claim 9, wherein the first record format includes names of fields in a data record of the first record format.

11. A method according to any preceding claim, comprising presenting an identifier of the first action in a user interface.

12. A method according to any preceding claim, wherein generating the second version of at least the portion of the computer program comprises generating a copy of the at least the portion of the computer program.

13. 13. The method of claim 12, comprising modifying said copy of said at least said portion of said computer program to omit said first process and to include said one or more second processes.

14. A method according to any preceding claim, comprising executing the second version of the computer program.

15. The method of any one of claims 1 to 14, wherein the designation includes an overlay designation.

16. 16. The method of claim 15, wherein generating the second version of the computer program comprises generating the second version based on the first version of the computer program and the overlay specification.

17. 17. The method of claim 15 or 16, wherein the overlay specification identifies one or more of a process upstream of the first process and a process downstream of the first process.

18. A method according to any one of claims 15 to 17, comprising identifying the first process based on analysis of code defining the first process.

19. A method according to any preceding claim, wherein the computer program comprises a dataflow graph.

20. 20. The method of claim 19, wherein the first process is an executable process represented by a first component of the dataflow graph and the one or more second processes are executable processes represented by one or more second components of the dataflow graph.

21. The method of claim 20 , wherein the one or more second components are configured to receive data records from an upstream component of the dataflow graph.

22. 22. The method of claim 20 or 21, wherein the one or more second components are configured to provide data records to a downstream component of the dataflow graph.

23. means for analyzing, by a processor, a first version of a computer program, said analyzing including identifying a first process included in the first version of the computer program, the first process being configured to perform a first operation on data having a first format; means for generating, by the processor, a specification based on said analysis defining one or more second processes configured to perform a second operation on data in a second format different from the first format, said second operation being based on said first operation, said specification being separate from said computer program; and means for executing, by a processor, a compiler or interpreter to generate a second version of at least a portion of the computer program based on the first version of the computer program and the specification, the second version of at least the portion of the computer program including omitting the first process and including in the second version of at least the portion of the computer program the one or more second processes configured to perform the second operation on data defined by the specification and having the second format different from the first format.

24. a processor coupled to a memory, the processor and the memory comprising: configured to analyze a first version of a computer program, said analyzing including identifying a first process included in the first version of the computer program, said first process configured to perform a first operation on data having a first format; generating, based on said analysis, a specification defining one or more second processes configured to perform a second operation on data in a second format different from said first format, said second operation being based on said first operation, said specification being separate from said computer program; A system configured to run a compiler or interpreter to generate a second version of at least a portion of the computer program based on the first version of the computer program and the specification, including omitting the first process, and including in the second version of at least the portion of the computer program the one or more second processes configured to perform the second operation on data defined by the specification and having the second format different from the first format.

25. The computing system analyzing a first version of a computer program, said analyzing including identifying a first process included in the first version of the computer program, said first process configured to perform a first operation on data having a first format; creating, based on said analysis, a specification defining one or more second processes configured to perform a second operation on data in a second format different from said first format, said second operation being based on said first operation, said specification being separate from said computer program; a program for executing a compiler or interpreter to generate a second version of at least a portion of the computer program based on the first version of the computer program and the specification, comprising omitting the first process, wherein the second version of at least the portion of the computer program includes the one or more second processes configured to perform the second operation on data defined by the specification and having the second format different from the first format.

26. 26. The program product of claim 25, wherein identifying the first process comprises identifying a process whose first operation is dependent on a format of the data.

27. 26. The program product of claim 25, wherein identifying the first process comprises identifying a process that is incapable of performing the first operation on data in the second format.

28. The program of claim 25, causing the computing system to determine the first format of data to be processed by the first process.

29. 26. The program of claim 25, wherein identifying the first process comprises identifying a first data processing element of the computer program, the first data processing element being configured to execute the first process.

30. 30. The program of claim 29, wherein including the one or more second processes in the computer program includes one or more second data processing elements in the second version of at least the portion of the computer program, the second data processing elements configured to execute the one or more second processes.

31. 26. The program of claim 25, wherein the first process is configured to perform the first operation on data records in a first record format, and the one or more second processes are configured to perform the second operation on data records in a second record format.

32. 26. The program of claim 25, wherein generating the second version of at least a portion of the computer program comprises generating a copy of the portion of the computer program.

33. The program of claim 32, causing the computing system to modify the copy of the portion of the computer program to omit the first process and include the one or more second processes.

34. The program of claim 25, causing the computing system to execute the second version of the computer program.

35. 26. The program of claim 25, wherein the specification includes an overlay specification, and generating the second version of the computer program includes generating the second version based on the first version of the computer program and the overlay specification.

36. The program of claim 25, causing the computing system to identify the first process based on an analysis of code defining the first process.

37. 26. The computer program of claim 25, wherein the computer program comprises a dataflow graph.

38. 38. The program of claim 37, wherein the first process is an executable process represented by a first component of the data flow graph and the one or more second processes are executable processes represented by one or more second components of the data flow graph.

39. 25. The system of claim 24, wherein identifying a first process includes identifying a process in which the first operation is dependent on a format of the data.

40. 25. The system of claim 24, wherein identifying a first process comprises identifying a process that is incapable of performing the first operation on data in the second format.

41. 25. The system of claim 24, wherein the processor and memory are configured to determine the first format of data to be processed by the first process.

42. 25. The system of claim 24, wherein identifying the first process comprises identifying a first data processing element of the computer program, the first data processing element being configured to execute the first process.

43. 43. The system of claim 42, wherein including the one or more second processes in the computer program includes one or more second data processing elements in the second version of the at least a portion of the computer program, the second data processing elements configured to execute the one or more second processes.

44. 25. The system of claim 24, wherein the first process is configured to perform the first operation on data records in a first record format, and the one or more second processes are configured to perform the second operation on data records in a second record format.

45. 25. The system of claim 24, wherein generating the second version of at least a portion of the computer program comprises generating a copy of the portion of the computer program.

46. 46. ​​The system of claim 45, wherein the processor and memory are configured to modify the copy of the portion of the computer program to omit the first process and to include the one or more second processes.

47. 25. The system of claim 24, wherein the processor and memory are configured to execute the second version of the computer program.

48. 25. The system of claim 24, wherein the specification includes an overlay specification, and generating the second version of the computer program includes generating the second version based on the first version of the computer program and the overlay specification.

49. 25. The system of claim 24, wherein the processor and memory are configured to identify the first process based on an analysis of code defining the first process.

50. 25. The system of claim 24, wherein the computer program comprises a dataflow graph.

51. 51. The system of claim 50, wherein the first process is an executable process represented by a first component of the dataflow graph and the one or more second processes are executable processes represented by one or more second components of the dataflow graph.

Citation Information

Patent Citations

  • Mechanism for replacing an array creation routine within code

    US20140047418A1

  • Method, device and program for reusing program

    JP2006004099A