joshua_janicas
06/23/2023, 2:20 PMmeltano run tap-mssql-admin target-jsonl
(-admin inherits from tap-mssql) the old problem comes back and fails. I rename the plugin in the YAML to tap-mssql-admin2
, reran the line, and it proceeds to work.
I then tried the following:
meltano remove extractor tap-mssql-admin
(Restart Powershell)
meltano add extractor tap-mssql-admin --inherit-from tap-mssql
(Configure select to look like this again)
- name: tap-mssql-admin
inherit_from: tap-mssql
select:
- Admin-*.*
The error continues to persist, but then again if I change the plugin name to be anything else then execute based on the new plugin name it works.
I can't determine if this is a Powershell problem or something that I need to also clear from Meltano's side?joshua_janicas
06/23/2023, 2:23 PMmeltano.db
file, though I am unsure if it has anything to do with what I am seeing. You can see the other attempts I've made changing the plugin name (and having success from there)
Out of curisoity, I removed the .DB file and tried re-running the same command. Meltano recreated the DB, but the Issue still persists unless I change the plugin namejoshua_janicas
06/23/2023, 2:46 PMvisch
06/23/2023, 4:23 PMvisch
06/23/2023, 4:25 PMjoshua_janicas
06/23/2023, 5:02 PMjoshua_janicas
06/23/2023, 5:11 PMversion: 1
default_environment: dev
project_id: dad99788-9e54-4f81-8c1e-4f58c600a14d
environments:
- name: dev
- name: staging
- name: prod
plugins:
extractors:
- name: tap-mssql
variant: buzzcutnorman
pip_url: git+<https://github.com/BuzzCutNorman/tap-mssql.git>
config:
dialect: mssql
driver_type: pyodbc
host: 127.0.0.1,4433
port: 1433
user: abc
password: xyz
database: db
sqlalchemy_eng_params:
fast_executemany: 'True'
sqlalchemy_url_query:
driver: ODBC Driver 17 for SQL Server
TrustServerCertificate: yes
- name: tap-mssql-admin
inherit_from: tap-mssql
select:
- Admin-*.*
loaders:
- name: target-jsonl
variant: andyh1203
pip_url: target-jsonl
Running meltano run tap-mssql-admin target-jsonl
gave me a set of errors that was related to the Slack link I provided in the root of this thread. It has already been resolved and I reinstalled the package with meltano install extractor tap-mssql --clean
.joshua_janicas
06/23/2023, 5:13 PM2023-06-23T17:07:20.982910Z [info ] cmd_type=elb consumer=True name=target-jsonl producer=False stdio=stderr string_id=target-jsonl
2023-06-23T17:07:20.983446Z [info ] Failed validating 'type' in schema['properties']['IsCancelled']: cmd_type=elb consumer=True name=target-jsonl producer=False stdio=stderr string_id=target-jsonl
joshua_janicas
06/23/2023, 5:14 PMtap-mssql-admin2
, the extract works via meltano run tap-mssql-admin2 target-jsonl
- name: tap-mssql-admin2
inherit_from: tap-mssql
select:
- Admin-*.*
loaders:
- name: target-jsonl
variant: andyh1203
pip_url: target-jsonl
joshua_janicas
06/23/2023, 5:16 PM2023-06-23T17:15:12.804770Z [info ] 2023-06-23 13:15:12,631 | INFO | tap-mssql | Skipping deselected stream 'dbo-PostDeployment'. cmd_type=elb consumer=False name=tap-mssql-admin2 producer=True stdio=stderr string_id=tap-mssql-admin2
2023-06-23T17:15:12.805766Z [info ] 2023-06-23 13:15:12,631 | INFO | tap-mssql | Skipping deselected stream 'dbo-PreDeployment'. cmd_type=elb consumer=False name=tap-mssql-admin2 producer=True stdio=stderr string_id=tap-mssql-admin2
2023-06-23T17:15:12.805766Z [info ] 2023-06-23 13:15:12,631 | INFO | tap-mssql | Skipping deselected stream 'dbo-SuccessfulDeploymentLog'. cmd_type=elb consumer=False name=tap-mssql-admin2 producer=True stdio=stderr string_id=tap-mssql-admin2
2023-06-23T17:15:12.806767Z [info ] 2023-06-23 13:15:12,631 | INFO | tap-mssql | Skipping deselected stream 'dbo-__RefactorLog'. cmd_type=elb consumer=False name=tap-mssql-admin2 producer=True stdio=stderr string_id=tap-mssql-admin2
2023-06-23T17:15:15.018507Z [info ] Incremental state has been updated at 2023-06-23 17:15:15.018507.
2023-06-23T17:15:15.032509Z [info ] Block run completed. block_type=ExtractLoadBlocks err=None set_number=0 success=True
joshua_janicas
06/23/2023, 5:17 PMmeltano remove extractor tap-mssql-admin
(Restart Powershell)
meltano add extractor tap-mssql-admin --inherit-from tap-mssql
(Configure select to look like the YAML)
And the problem still persists.joshua_janicas
06/23/2023, 5:18 PMtap-mssql-admin
, any other name or configuration like tap-mssql-test
with the same select details works just fine.visch
06/23/2023, 6:25 PMjoshua_janicas
06/23/2023, 6:32 PMtap-mssql-admin
from that YAML file, it seems to be using an old set of code and breaking when trying to convert a boolean=>string. That was fixed and updated since with a clean install. I removed the inherited tap then added it back, but its still running into the same problem. When I change the name from tap-mssql-admin
to tap-mssql-admin2 (or anything else really)
everything works.visch
06/23/2023, 6:33 PMmeltano install --clean
joshua_janicas
06/23/2023, 6:33 PMvisch
06/23/2023, 6:33 PMvisch
06/23/2023, 6:34 PM.meltano/
if you still get the error after that you know it's not a cache issuejoshua_janicas
06/23/2023, 6:41 PMmeltano install --clean
then meltano run tap-mssql-admin target-jsonl
, same problem. I then delete .meltano/
do the meltano install --clean
, then rerun meltano run tap-mssql-admin target-jsonl
and now it worksjoshua_janicas
06/23/2023, 6:42 PMvisch
06/23/2023, 6:43 PMmeltano install --clean
does the same thing so one working and not the other doesn't make sense, but I'm happy that you're working that's what matters most!joshua_janicas
06/23/2023, 6:43 PMvisch
06/23/2023, 6:44 PMjoshua_janicas
06/23/2023, 6:44 PM