This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE kv_table | |
SET value = ( | |
SELECT json_object( | |
'user_id', json_extract(b.value, '$.user_id'), | |
'user_uuid', json_extract(b.value, '$.user_uuid'), | |
'workspace_id', json_extract(b.value, '$.user_workspace.id') | |
) | |
FROM kv_table AS b | |
WHERE b.key = 'session_cache_key_backup' | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import tempfile | |
import apache_beam as beam | |
import tensorflow as tf | |
from tensorflow_data_validation.api import stats_api | |
from tensorflow_data_validation.statistics import stats_options as options | |
from tensorflow_data_validation.utils import stats_util | |
import pyarrow as pa | |
from tfx_bsl.arrow.array_util import ToSingletonListArray |