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

[BUG]: #Tredence . Transpile - "autoincrement start 1 increment 1 order" constraint skips the entire sql file #1164

Open
1 task done
Mailendiran98 opened this issue Nov 5, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Mailendiran98
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Category of Bug / Issue

TranspileParserError

Current Behavior

I have a .sql file with 10 scripts (DDL,DML etc,..) . If anyone of script has constraint - "autoincrement start 1 increment 1 order"
Transpile is skipping the entire .sql file and not the respective script.

Expected Behavior

Skip only those script has constraint - "autoincrement start 1 increment 1 order" and not the entire .sql file while parsing.

Steps To Reproduce

No response

Relevant log output or Exception details

No response

Sample Query

No response

Operating System

Windows

Version

latest via Databricks CLI

@Mailendiran98 Mailendiran98 added the bug Something isn't working label Nov 5, 2024
@Mailendiran98 Mailendiran98 changed the title [BUG]: #Tredence "autoincrement start 1 increment 1 order" constraint skips the entire sql file [BUG]: #Tredence . Transpile - "autoincrement start 1 increment 1 order" constraint skips the entire sql file Nov 5, 2024
@sriram251-code
Copy link
Contributor

sriram251-code commented Nov 15, 2024

Hi @Mailendiran98 please provide us with an example that will allow us to replicate the issue on our end. We are suspecting it should be solved with the fix of #1185

@Mailendiran98
Copy link
Author

HI @sriram251-code , please find the example where i'm facing the issue.

Assume i have below 2 DDL in one sql file.
Because of autoincrement start 1 increment 1 noorder in STUDENTS table, entire sql file is getitng skipped in conversion.

create or replace TABLE SAMPLEDB (
NAME VARCHAR(16777216),
CITY VARCHAR(16777216),
SALARY VARCHAR(16777216)
);
create or replace TABLE STUDENTS (
STUDENTS_ID NUMBER(38,0) NOT NULL autoincrement start 1 increment 1 noorder,
FIRST_NAME VARCHAR(255),
LAST_NAME VARCHAR(255),
PIN_CODE VARCHAR(10),
CITY VARCHAR(255),
GRADE VARCHAR(2),
primary key (STUDENTS_ID)
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants