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]: Missing TBLPROPERTIES in DDL Statements for Columns with Default Values #1384

Open
1 task done
sriram251-code opened this issue Dec 20, 2024 · 0 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@sriram251-code
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Category of Bug / Issue

Other

Current Behavior

If a column has a default value, the TBLPROPERTIES should be included as part of the DDL statement. However, they are currently not being generated as part of DDL output.

EX:
Current output:
CREATE TABLE tbl1 (
col1 STRING NOT NULL DEFAULT ' '
)

Expected output:
CREATE TABLE tabl1 (
col1 STRING NOT NULL DEFAULT ' '
)
TBLPROPERTIES (
'delta.feature.allowColumnDefaults' = 'supported'
)

Expected Behavior

No response

Steps To Reproduce

No response

Relevant log output or Exception details

No response

Sample Query

No response

Operating System

macOS

Version

latest via Databricks CLI

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

1 participant