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

1296 schema mapper type conversions #1311

Merged
merged 15 commits into from
Apr 30, 2024

Conversation

junaidzm13
Copy link
Contributor

No description provided.

Copy link

netlify bot commented Apr 26, 2024

Deploy Preview for papaya-valkyrie-395400 canceled.

Name Link
🔨 Latest commit d44c579
🔍 Latest deploy log https://app.netlify.com/sites/papaya-valkyrie-395400/deploys/6630960aaea37b0008f22eda

@junaidzm13 junaidzm13 force-pushed the 1296-schema-mapper-type-conversions branch 4 times, most recently from 9ffc02a to 8998b9c Compare April 29, 2024 12:20
… converters

finos#1296 support for conversion from primitive to wrapper types for consistency

finos#1296 add TypeConverterContainer and related tests

Also some improvements and refactoring on previous changes

finos#1296 improvements and refactoring on previous changes / TypeConverterContainer enhancements / TypeUtils introduced

finos#1296 add 3 more default type converters + tests for DefaultTypeConverters
@junaidzm13 junaidzm13 force-pushed the 1296-schema-mapper-type-conversions branch from 8998b9c to fa6a067 Compare April 29, 2024 13:10
- this commit also adds more DefaultTypeConverters and some missing tests
  for DataType.parseToDataType.
- also removes `convertExternalValueToString` from `SchemaMapper`
  and moves it to Filtering use-case as it has nothing to do with
  schema mapping logic.
…ConverterContainer

- this allows users to specify custom external-value -> sql-string converters.
- it is now just a utility to convert column value (String) from ANTLR
  to external value (original external date type) that will then be used
  with external data source for filtering.
- In the process makes it responsible only for one thing i.e. parse column
  value (String) to external value's data type. Should not care about how
  we convert the resulting external value to a String understood by SQL.
  That logic's been moved back to IgniteSqlFilterClause.
- also renames SqlStringConverterContainer to less verbose ToSqlStringContainer.
@junaidzm13 junaidzm13 force-pushed the 1296-schema-mapper-type-conversions branch from fa6a067 to 2e773e1 Compare April 30, 2024 01:53
@junaidzm13 junaidzm13 marked this pull request as ready for review April 30, 2024 06:58
@junaidzm13 junaidzm13 requested a review from naleeha April 30, 2024 10:48
@heswell heswell merged commit d618f9c into finos:main Apr 30, 2024
13 of 14 checks passed
@junaidzm13 junaidzm13 self-assigned this May 8, 2024
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

Successfully merging this pull request may close these issues.

3 participants