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

duplicate_count raise exception "ORA-00933:SQL command not properly ended" due to LIMIT keyword #2050

Open
donttrickrick opened this issue Apr 11, 2024 · 4 comments

Comments

@donttrickrick
Copy link

No description provided.

@tools-soda
Copy link

SAS-3218

@bastienboutonnet
Copy link
Contributor

Hi @donttrickrick I'm sorry you're experiencing an issue.

In order for us to help more efficiently can you make sure you provide us with the full log of the scan you did (preferably coming from a run in verbose mode -V and/or the trace ID that is printed as one of the last lines from the logs.

@bastienboutonnet
Copy link
Contributor

It would also be helpful to see how you defined the check that is currently not working, so a copy of the SodaCL for this check is what we need.

@donttrickrick
Copy link
Author

@bastienboutonnet Sure.

In my project, there are only 3 files.

checks.yml

checks for system.dt:
  - row_count > 0
  - duplicate_count(day) = 0

configuration.yml

data_source ds:
  type: oracle
  username: system
  password: oracle123
  connectstring: "localhost:1521/ORCLCDB"

requirements.txt

soda-core
soda-core-oracle

The table is very simple. You can initialize it by this code.

CREATE TABLE dt (
    DAY VARCHAR2(50),
    DAY_OF_MONTH NUMBER
 );

-- example data
INSERT INTO dt (DAY, DAY_OF_MONTH) VALUES ('2024-01-01', 1 )

However, soda scan raise this exception
soda_exp.txt

Any suggestion is appropriated.

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

3 participants