|
@@ -66,8 +66,6 @@ export const DagToData = (graph: any, dagId: any) => {
|
|
|
type: 'datasource',
|
|
|
op: "sql",
|
|
|
script: datasourceToSql(item.data),
|
|
|
- dataTableId: item.data.dataTableId,
|
|
|
- fields: datasourceFields(item.data)
|
|
|
})
|
|
|
break;
|
|
|
case "outputsource":
|
|
@@ -169,13 +167,13 @@ const datasourceToSql = (nodeData: any) => {
|
|
|
return ''
|
|
|
}
|
|
|
|
|
|
-const datasourceFields = (nodeData: any) => {
|
|
|
+/* const datasourceFields = (nodeData: any) => {
|
|
|
const { inputSource, dataTableName } = nodeData
|
|
|
if (inputSource?.length > 0 && dataTableName) {
|
|
|
return inputSource.filter((item: any) => item.dataSelect)
|
|
|
}
|
|
|
return []
|
|
|
-}
|
|
|
+} */
|
|
|
|
|
|
const generateInputs = (graph: any, id: any) => {
|
|
|
const inputsResult: any = {}
|