RelationalAI / rai-sdk-python

The RelationalAI Software Development Kit (SDK) for Python.
Apache License 2.0
17 stars 4 forks source link

`schema` parameter seems to be missing from `load_csv` #83

Closed gbrgr closed 2 years ago

gbrgr commented 2 years ago

In the comment above load_csv it reads:

# `syntax`:
#   * header: a map from col number to name (base 1)
#   * header_row: row number of header, 0 means no header (default: 1)
#   * delim: default: ,
#   * quotechar: default: "
#   * escapechar: default: \
#
# Schema: a map from col name to rel type name, eg:
#   {'a': "int", 'b': "string"}
def load_csv(ctx: Context, database: str, engine: str, relation: str,
             data: str or io.TextIOBase, syntax: dict = {}) -> dict:

However, there is no argument that allows users to specify a schema.

gbrgr commented 2 years ago

Duplicate of #25

billscheidel-rai commented 1 year ago

Note: This issue has been migrated to https://relationalai.atlassian.net/browse/RAI-5214.

This link is only accessible to employees of RelationalAI.