<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Load data to datalake in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/load-data-to-datalake/qaa-p/12369996#M4630945</link>
    <description>&lt;P&gt;I should add that at the end of Q1, the next release of the Data Lake will have a feature that allows you to directly connect to it.  When you can do this, you will then have the ability to upload a file directly from your client into the Data Lake, without having to load it into HANA first.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Feb 2021 16:11:42 GMT</pubDate>
    <dc:creator>markmumy</dc:creator>
    <dc:date>2021-02-09T16:11:42Z</dc:date>
    <item>
      <title>Load data to datalake</title>
      <link>https://community.sap.com/t5/technology-q-a/load-data-to-datalake/qaq-p/12369994</link>
      <description>&lt;P&gt;hi community,&lt;/P&gt;
  &lt;P&gt;how do I upload data from an excel or csv file to datalake in sap hana cloud directly?&lt;/P&gt;
  &lt;P&gt;best regards.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 12:57:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/load-data-to-datalake/qaq-p/12369994</guid>
      <dc:creator>Eisson</dc:creator>
      <dc:date>2021-02-09T12:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Load data to datalake</title>
      <link>https://community.sap.com/t5/technology-q-a/load-data-to-datalake/qaa-p/12369995#M4630944</link>
      <description>&lt;P&gt;Assuming that this is a continuation of the other question/post that you have?&lt;/P&gt;&lt;P&gt;If the data was already loaded into a Hana Cloud table and you want to move it into the data lake, the process is fairly straight forward.&lt;/P&gt;&lt;P&gt;Here are the basic steps, hope this helps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create the HANA table&lt;/LI&gt;&lt;LI&gt;Load data into the HANA table&lt;/LI&gt;&lt;LI&gt;Create the data lake table&lt;/LI&gt;&lt;LI&gt;Create the HANA virtual table that points to the data lake table&lt;/LI&gt;&lt;LI&gt;Verify the virtual table by running a select from it&lt;/LI&gt;&lt;LI&gt;Move data from HANA to data lake table&lt;/LI&gt;&lt;LI&gt;Delete data from the HANA table, if you wish&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Here is some sample code for everything.  There are ways to do certain steps with database explorer, but I am old school and prefer reproducible SQL.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;-- create HANA table
CREATE TABLE LOAD_TEST (
        "A0" INT, "A1" INT, "A2" INT, "A3" INT, "A4" INT, "A5" INT, "A6" INT, "A7" INT, "A8" INT, "A9" INT
);


-- load in some dummy data
insert into LOAD_TEST values ( 0,1,2,3,4,5,6,7,8,9);
insert into LOAD_TEST select * from LOAD_TEST;
insert into LOAD_TEST select * from LOAD_TEST;


-- create the HDL table
call "SYSRDL#CG".REMOTE_EXECUTE('
drop table if exists LOAD_TEST;
CREATE TABLE LOAD_TEST (
        "A0" INT, "A1" INT, "A2" INT, "A3" INT, "A4" INT, "A5" INT, "A6" INT, "A7" INT, "A8" INT, "A9" INT );
');

-- creates the HANA SDA table for the table created above
-- HDL uses SYSRDL#CG for every remote database
-- HDL uses SYSRDL#CG_SOURCE for every remote server
-- "&amp;lt;NULL&amp;gt;" is just a dummy placeholder as IQ/HDL ignore this parameter anyway

drop table HDL_LOAD_TEST; -- will error if it doesn't exist

CREATE VIRTUAL TABLE HDL_LOAD_TEST AT "SYSRDL#CG_SOURCE"."&amp;lt;NULL&amp;gt;"."SYSRDL#CG"."LOAD_TEST";

-- get counts and make sure virtual table works
select 'HANA cnt: ' || count(*) from LOAD_TEST;
select 'HDL cnt: ' || count(*) from HDL_LOAD_TEST;

-- copy data
insert into HDL_LOAD_TEST select * from LOAD_TEST;

-- get final counts to see that they are the same
select 'HANA cnt: ' || count(*) from LOAD_TEST;
select 'HDL cnt: ' || count(*) from HDL_LOAD_TEST;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Feb 2021 16:09:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/load-data-to-datalake/qaa-p/12369995#M4630944</guid>
      <dc:creator>markmumy</dc:creator>
      <dc:date>2021-02-09T16:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Load data to datalake</title>
      <link>https://community.sap.com/t5/technology-q-a/load-data-to-datalake/qaa-p/12369996#M4630945</link>
      <description>&lt;P&gt;I should add that at the end of Q1, the next release of the Data Lake will have a feature that allows you to directly connect to it.  When you can do this, you will then have the ability to upload a file directly from your client into the Data Lake, without having to load it into HANA first.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 16:11:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/load-data-to-datalake/qaa-p/12369996#M4630945</guid>
      <dc:creator>markmumy</dc:creator>
      <dc:date>2021-02-09T16:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Load data to datalake</title>
      <link>https://community.sap.com/t5/technology-q-a/load-data-to-datalake/qaa-p/12369997#M4630946</link>
      <description>&lt;P&gt;thank you for your response, I was very helpful.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 16:51:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/load-data-to-datalake/qaa-p/12369997#M4630946</guid>
      <dc:creator>Eisson</dc:creator>
      <dc:date>2021-02-09T16:51:32Z</dc:date>
    </item>
  </channel>
</rss>

