Gudu SQLFlow Product Docs
  • 1. Introduction
    • What is Gudu SQLFlow?
      • What SQLFlow can do
      • Architecture Overview
    • Getting Started
      • Sign up a new account
        • Team Management
        • Delete My Account
        • Activate by entering a coupon
      • How to use SQLFlow
      • Different modes in Gudu SQLFlow
        • Query mode
        • Job mode
      • Basic Usage
      • Convert SQL to E-R Diagram
      • Colors in SQLFlow Diagram
      • Show call relationship
    • Installation
      • Version and Users
        • Cloud and On-Premise version
        • SQLFlow before Version 6
          • For older version SQLFlow under Linux
          • For older version SQLFlow under MacOS
          • For older version SQLFlow under Windows
      • Linux
      • MacOS
      • Windows
      • Docker
      • Clickhouse Installation
        • Clickhouse For CentOs
        • Clickhouse For Ubuntu/Debian/RHEL
      • Troubleshooting
      • Upgrade
      • Third Party Components
      • Renew License File
    • UI
      • SQLText Editor
      • Schema Explorer
      • Diagram Panel
      • Settings
      • Job Management
        • Job Sources
    • Dlineage Tool
      • Overview
      • Usage
        • Analyze data linege from SQL files
        • Analyze data linege from a database
        • Resolve the ambiguous columns in SQL query
        • Map the DataFlowAnalyzer and the settings on SQLFlow UI
        • Settings
      • Dataflow.xml structure
      • FAQ
  • 2. CONCEPTS
    • Data Lineage Basics
      • Dataflow
        • Relations generated by SQLFlow
      • Direct Dataflow
      • Indirect Dataflow
      • Aggregate function and Dataflow
      • Dataflow chain
    • Data Lineage Format Reference
  • 3. API Docs
    • Prerequisites
    • Using the Rest API
    • SQLFlow Rest API reference
      • User Interface
      • Generation Interface
        • /sqlflow
        • /sqlflow/selectedgraph/table_level_lineage
        • /sqlflow/selectedgraph/image
        • /sqlflow/graph
        • /sqlflow/graph/table_level_lineage
        • /sqlflow/graph/image
        • /sqlflow/downstreamGraph
        • /sqlflow/upstreamGraph
        • /sqlflow/erdiagramSelectGraph
        • /sqlflow/leftMostSourceTableGraph
      • Job Interface
        • /submitUserJob
        • /displayUserJobSummary
        • /displayUserJobsSummary
        • /exportLineageAsJson
        • /exportFullLineageAsJson
        • /exportLineageAsGraphml
        • /submitPersistJob
        • /displayUserLatestJobTableLevelLineage
      • Export Image
      • Export CSV
        • /sqlflow/exportFullLineageAsCsv
        • /job/exportFullLineageAsCsv
    • Swagger UI
    • Export the data lineage result
    • Python
      • Basic Usage
      • Advanced Usage
    • SQL Parser API
      • checkSyntax
  • 4. SQLFlow Widget
    • Widget Get started
    • Usages
    • Widget API Reference
  • 5. Databases
    • Database Objects
      • Azure
      • DB2
  • 6. SQLFlow-ingester
    • Introduction
      • SQLFlow-Exporter
      • SQLFlow-Extractor
      • SQLFlow-Submitter
    • Get Started
      • SQL Server
    • SQLFlow-Ingester Java API Usage
    • Understand the format of exported data
      • Oracle
      • Microsoft SQL Server
      • MySQL
      • PostgreSQL
    • List of Supported dbVendors
    • Git Repo
    • Third Party Components
  • 7. Reference
    • Lineage Model
      • Json Format Lineage Model
      • XML Format Lineage Model
      • Data Lineage Elements
    • Database Model
  • 8. other
    • FAQ
      • Handling Internal Database
      • Delete Your Account
      • Table Form Data Without Intermediates
      • Not all schema exported from Oracle
      • Lineage Customization
    • Roadmap
    • SQL Samples
      • Exchange table partition
      • Generate relationship for renamed table
      • Snowflake table function lineage detection
    • Change Logs
    • SQLFlow with Oracle XML functions
    • Major Organizations Utilizing SQLFlow
Powered by GitBook
On this page
  1. 1. Introduction
  2. Dlineage Tool
  3. Usage

Settings

PreviousMap the DataFlowAnalyzer and the settings on SQLFlow UINextDataflow.xml structure

Last updated 1 year ago

Simple mode is enabled by default or in the cases when /s flag is added to the command:

java -jar gudusoft.dlineage.jar /t mssql /f path_to_sql_file /s
java -jar gudusoft.dlineage.jar /t mssql /f path_to_sql_file

In Simple mode, the intermediate results will not be displayed and only are present. The Simple mode is related to two options: setSimpleShowTopSelectResultSet, setSimpleShowFunction and setSimpleShowUdfFunctionOnly.

setSimpleShowTopSelectResultSet

whether to display the select result set on the top, default value is false.

setSimpleShowFunction

whether to display function, default value is false.

setSimpleShowUdfFunctionOnly

whether to display only User Define Function, we also need to turn on setSimpleShowFunction as well so that functions are displayed.

dlineage.getOption().setSimpleShowFunction(true); 
dlineage.getOption().setSimpleShowUdfFunctionOnly(true);

dataflowAnalyzer is in Simple mode by default so there's no select result set on the top nethier no function displayed. Sqlflow UI will always have setSimpleShowTopSelectResultSet as true because the select query must be displayed on the top.

dataflowAnalyzer has a function to deal with the dataflow in regular mode and customize the analysis type for the relations. The function can analysize and relations.

Dataflow getSimpleDataflow(Dataflow instance, boolean simpleOutput, List <String> types)
  • instance: dataflow in regular mode

  • simpleOutput: false when showTopSelectResultSet is set to true. true when showTopSelectResultSet is set to false.

  • types: List of relation types, may include values as fdd or fdr. Will analysize fdr when the list contains fdr.

In Dlineage tool we can display temporary tables by adding /withTemporaryTable flag:

java -jar gudusoft.dlineage.jar /t mssql /f path_to_sql_file /withTemporaryTable

Please be aware that ignoring the temporary table starting with "#" in sqlserver is a mandatory behavior, therefore it cannot be displayed even with the /withTemporaryTable flag.

fdd relationships
fdd
fdr