Skip to content

Conversation

@mattbrown-msb
Copy link

Summary

Update data type mappings to account for some specific Snowflake data types.

  • Update number() data types to map to a float instead of a decimal active record
  • Update object and array data types to map to string for backwards compatibility

m.alias_type 'geometry', 'char'

# number() data types in Snowflake are interpreted as decimal and must be mapped back to a float
m.alias_type 'decimal', 'float' if @database_metadata&.dbms_name&.downcase == "snowflake"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think just override by adding comment, condition not needed

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the condition.

@vishalzambre vishalzambre merged commit f948586 into master Mar 22, 2023
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