Kedro 找不到 SQL 服务器 table

Kedro can not find SQL Server table

我定义了这两个数据集:

flp_test_query:
  type: pandas.SQLQueryDataSet
  credentials: dw_dev_credentials
  sql: select numero from dwdb.dwschema.flp_tst
  load_args:
    index_col: [numero]

flp_test:
  type: pandas.SQLTableDataSet
  credentials: dw_dev_credentials
  table_name: flp_tst
  load_args:
    index_col: ['numero']
    columns: ['numero']
  save_args:
    if_exists: 'append'

但是,我只设法使 flp_test_query 正常工作,因为当我尝试访问 flp_tst 时出现此错误:

ValueError: Table flp_tst not found

我确实尝试将 table 名称定义为 table_name: dwschema.flp_tsttable_name: dwdb.dwschema.flp_tst,但都出现了相同的错误。我错过了什么?

docs 看来您可以在 load_args 中指定模式,例如

  load_args:
    index_col: ['numero']
    columns: ['numero']
    schema: 'dwschema'

load_args = {"schema","dwschema"}
data_set = SQLTableDataSet(table_name=table_name,
                           credentials=credentials,
                            load_args=load_args)