Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

schema parameter seems to be missing from load_csv #83

Closed
gbrgr opened this issue May 9, 2022 · 2 comments
Closed

schema parameter seems to be missing from load_csv #83

gbrgr opened this issue May 9, 2022 · 2 comments

Comments

@gbrgr
Copy link

gbrgr commented May 9, 2022

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
Copy link
Author

gbrgr commented May 9, 2022

Duplicate of #25

@gbrgr gbrgr marked this as a duplicate of #25 May 9, 2022
@gbrgr gbrgr closed this as completed May 9, 2022
@billscheidel-rai
Copy link

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

This link is only accessible to employees of RelationalAI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants