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

fetching 'KEY' error #382

Open
davidgodinez opened this issue Feb 3, 2022 · 2 comments
Open

fetching 'KEY' error #382

davidgodinez opened this issue Feb 3, 2022 · 2 comments
Labels
awaiting-triage Issues awaiting proper priority/milestone assignment. bug

Comments

@davidgodinez
Copy link

Bug Report

Description

When making a fetch, using the syntax table_name.fetchn('KEY') brings about an attribute error.

Reproducibility

Include:

  • OS MACOS BIG SUR 11.5.2
  • MATLAB Version: MATLAB_R2021b
  • DataJoint Version: version 3.4.3
  • Complete error stack as a result of evaluating the above steps:
Error using dj.internal.Header/project (line 199)
Attribute `KEY` does not exist

Error in dj.internal.GeneralRelvar/compile (line 682)
                    header.project(self.operands(2:end));

Error in dj.internal.GeneralRelvar/fetch (line 212)
            [hdr, sql_] = self.compile;

Error in dj.internal.GeneralRelvar/fetchn (line 285)
            s = self.fetch(varargin{:});

Expected Behavior

The expected behavior is that the key would be fetched.

Screenshots

Screen Shot 2022-02-02 at 7 24 08 PM

Screen Shot 2022-02-03 at 9 45 59 AM

@davidgodinez davidgodinez added awaiting-triage Issues awaiting proper priority/milestone assignment. bug labels Feb 3, 2022
@dimitri-yatsenko
Copy link
Member

dataJoint-MATLAB does not have "KEY" implemented. To get the key from table q, one just omits all arguments in fetch: q.fetch()

@davidgodinez
Copy link
Author

Should we change our documentation here in that case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-triage Issues awaiting proper priority/milestone assignment. bug
Projects
None yet
Development

No branches or pull requests

2 participants