Skip to content

Commit

Permalink
Change datatypes to the correct one
Browse files Browse the repository at this point in the history
Oops that was a bad copy paste
  • Loading branch information
ilias1111 committed Jun 11, 2024
1 parent da667bc commit 220054c
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions macros/field_extractions/get_mobile_context_fields.sql
Original file line number Diff line number Diff line change
Expand Up @@ -108,31 +108,31 @@ You may obtain a copy of the Snowplow Personal and Academic License Version 1.0

{% macro spark__get_mobile_context_fields() %}
{% if var('snowplow__enable_mobile_context', false) %}
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.device_manufacturer')::BOOLEAN AS mobile__device_manufacturer
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.device_model')::BOOLEAN AS mobile__device_model
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.os_type')::BOOLEAN AS mobile__os_type
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.os_version')::BOOLEAN AS mobile__os_version
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.android_idfa')::BOOLEAN AS mobile__android_idfa
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.apple_idfa')::BOOLEAN AS mobile__apple_idfa
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.apple_idfv')::BOOLEAN AS mobile__apple_idfv
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.carrier')::BOOLEAN AS mobile__carrier
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.open_idfa')::BOOLEAN AS mobile__open_idfa
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.network_technology')::BOOLEAN AS mobile__network_technology
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.network_type')::BOOLEAN AS mobile__network_type
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.physical_memory')::BOOLEAN AS mobile__physical_memory
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.system_available_memory')::BOOLEAN AS mobile__system_available_memory
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.app_available_memory')::BOOLEAN AS mobile__app_available_memory
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.battery_level')::BOOLEAN AS mobile__battery_level
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.battery_state')::BOOLEAN AS mobile__battery_state
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.device_manufacturer')::STRING AS mobile__device_manufacturer
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.device_model')::STRING AS mobile__device_model
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.os_type')::STRING AS mobile__os_type
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.os_version')::STRING AS mobile__os_version
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.android_idfa')::STRING AS mobile__android_idfa
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.apple_idfa')::STRING AS mobile__apple_idfa
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.apple_idfv')::STRING AS mobile__apple_idfv
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.carrier')::STRING AS mobile__carrier
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.open_idfa')::STRING AS mobile__open_idfa
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.network_technology')::STRING AS mobile__network_technology
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.network_type')::STRING AS mobile__network_type
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.physical_memory')::INT AS mobile__physical_memory
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.system_available_memory')::INT AS mobile__system_available_memory
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.app_available_memory')::INT AS mobile__app_available_memory
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.battery_level')::INT AS mobile__battery_level
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.battery_state')::STRING AS mobile__battery_state
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.low_power_mode')::BOOLEAN AS mobile__low_power_mode
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.available_storage')::BOOLEAN AS mobile__available_storage
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.total_storage')::BOOLEAN AS mobile__total_storage
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.available_storage')::bigint AS mobile__available_storage
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.total_storage')::bigint AS mobile__total_storage
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.is_portrait')::BOOLEAN AS mobile__is_portrait
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.resolution')::BOOLEAN AS mobile__resolution
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.scale')::BOOLEAN AS mobile__scale
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.language')::BOOLEAN AS mobile__language
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.app_set_id')::BOOLEAN AS mobile__app_set_id
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.app_set_id_scope')::BOOLEAN AS mobile__app_set_id_scope
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.resolution')::STRING AS mobile__resolution
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.scale')::float AS mobile__scale
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.language')::STRING AS mobile__language
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.app_set_id')::STRING AS mobile__app_set_id
, get_json_object(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]::String,'$.app_set_id_scope')::STRING AS mobile__app_set_id_scope
{% else %}
, cast(null as {{ dbt.type_string() }}) as mobile__device_manufacturer
, cast(null as {{ dbt.type_string() }}) as mobile__device_model
Expand Down

0 comments on commit 220054c

Please sign in to comment.