I am trying to load a JSON which has "version" (e.g. 2.3.1, 5.3.4) field to a Flex table, however, when I compute the keys it is interpreting these strings as date. Can someone please help with this? This is on Vertica 9.2.0
Steps to recreate:
test.json
{"id":1, "version": "5.3.4"}
{"id":2, "version": "5.5.4"}
Load this file to a flex table
create flex table test();
copy test from '/home/dbadmin/test.json' parser fjsonparser(key_separator='_');
select compute_flextable_keys('test');
select build_flextable_view('test');
select * from test_keys;
key_name|frequency|data_type_guess|
--------|---------|---------------|
id | 2|Integer |
version | 2|Date |
select * from test_view;
id|version |
--|----------|
1 |2004-05-03|
2 |2004-05-05|