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]: Annotations are not available in the metadata when an anonymous record is defined as stream constraint #39807

Open
niveathika opened this issue Mar 7, 2023 · 1 comment
Labels
Planning/SwanLake2023 Temporary Label for issue to be fixed immediately. Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/Bug userCategory/Compilation

Comments

@niveathika
Copy link
Contributor

Description

stream<record {| @sql:Column {name: "mobile_number"} string mobileNumber; |}, sql:Error?> followersStream

Here, the sql:Column annotation is not available in the runtime.

Steps to Reproduce

No response

Affected Version(s)

2201.4.0

OS, DB, other environment details and versions

No response

Related area

-> Compilation

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

@ballerina-bot ballerina-bot added needTriage The issue has to be inspected and labeled manually userCategory/Compilation labels Mar 7, 2023
@MaryamZi MaryamZi added Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Planning/SwanLake2023 Temporary Label for issue to be fixed immediately. and removed needTriage The issue has to be inspected and labeled manually labels Mar 7, 2023
@MaryamZi
Copy link
Member

MaryamZi commented Mar 7, 2023

At the moment, annotations for record (and tuple) fields are resolved when a value is created rather than when the type-descriptor is resolved. The same could be causing the issue here.

Related to #38844. cc @chiranSachintha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Planning/SwanLake2023 Temporary Label for issue to be fixed immediately. Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/Bug userCategory/Compilation
Projects
None yet
Development

No branches or pull requests

3 participants