1

I'm using snappydata.I have 1M rows of JSON file,i want to load that JSON file to snappydata table using sql(snappydata sql).

Ashu
  • 347
  • 1
  • 9

1 Answers1

1

Step 1)

create external table t1 using json options(path 'location of your json file(s)');

Step 2)

Load into a Snappy column or row table:

create table My-in-memory-table using column as (select * from t1);

I think, there could be some issue if your json docs are multi-line. but, there are ways to work around this.

plamb
  • 5,636
  • 1
  • 18
  • 31
jagsr
  • 535
  • 2
  • 6