Forum Discussion

UsefGamal's avatar
UsefGamal
Regular Visitor
2 years ago
Solved

passing sql query to notebook

I am having a trouble passing sql queries to notebooks as they are originally stored in .Xlsx file , when they are passed as a string it gives me an error that it can't unserialize the response,  tri...
  • UsefGamal's avatar
    UsefGamal
    2 years ago

    Hi

     

    My problem was concerned with the Sql Query itself in the .xlsx file

    The flow of the data is not directly to the notebook but it goes throw stages

     

    The excel file is a metadata config file so i use it to control the flow of the data from source to gold layer of the medallion architecture.

     

    So the data goes through this flow:

    lookup -> filter -> loop on filtered rows

    So the metadata is passed to the notebook ,including the sql query,

    I hade to remove the tabs , \n, extra spaces  making the query on a single line as it is passed as a string.

     

    that is how i solved the issue.