GithubHelp home page GithubHelp logo

azuresynapsescriptsandaccelerators's Issues

Got MethodInvocationException when using mssql to parquet

Windows version: windows server 2022
Power shell version: 7.3.9
SQL Server version: SQL Server 2019 Standard

I'm trying to export parquet from MSSQL server using Export-ToParquet.ps1 with Parquet.Net dependency.

I got theses message when I export decimal type from MSSQL
MethodInvocationException: Exception calling ".ctor" with "3" argument(s): "scale cannot be less than 1 (Parameter 'scale')

but the job still complete after this exception.

Here's my table schema and config file
schema:

CREATE TABLE [dbo].[DM_BedsClothes_2017](

        [Site] [varchar](4) NOT NULL,

        [Emplid] [nvarchar](10) NOT NULL,

        [BedClothes] [char](1) NOT NULL,

        [ReceiveDate] [varchar](10) NOT NULL,

        [Prices] [decimal](18, 0) NOT NULL,

        [CreateBy] [varchar](10) NOT NULL,

        [CreateOn] [smalldatetime] NOT NULL,

        [ModifyBy] [varchar](10) NOT NULL,

        [ModifyOn] [smalldatetime] NULL

) ON [PRIMARY]

config file:

Enabled,Database,JobName,Query,FilePath
1,"quickstart_db","select_test_job","select * from DM_BedsClothes_2017",".\Output\test2.parquet"

Should I convert the data type or other solution to solve this issue?

Conversion

I am looking for a conversion from bit to smallint instaed of boolean and nvarchar to varchar

Special Characters in Table and Column names

Trying to use this utility and works great on table and column that have a standard naming convention. The tables and column I am working with contain a '$'.

I have tried to ESC in front of the $.

  • put [] around the table name
  • use %36 instead of the $

No error is generated. The shell of the file is created. No data.

Any suggestions?

Support for same table names in multiple schemas creates column list incorrectly

First of all, thanks so much for putting this project together. I am using it for a critical migration from On Prem SQL into Synapse dedicated SQL pool. One issue I have found is having the same table name under more than one schema results in duplicate column names when generating the CREATE TABLE statements. The issue is in file GetTableMetaData.sql under the folder "1_TranslateTableDDLs" as it does not take the schema into account in the Column_List CTE. Also need to account for passing in the schema name into this script. I will attach a screenshot of what I had to run manually to get around this but ideally I wanted to bring this use case to your attention as it would be nice to include into the tool
SynapseMigration

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.