Граф коммитов

338 Коммитов

Автор SHA1 Сообщение Дата
AsafMah eb30dfe270
Bump to 4.0.4 + new release method (#290) 2023-03-20 17:10:26 +02:00
AsafMah 968cb799d5
Add new trident url (#289) 2023-03-20 16:59:56 +02:00
AsafMah e69725d042
Bump to 4.0.3 2023-02-14 08:36:05 +02:00
AsafMah 31c603082f
Added props (#281)
* Revert "Revert "Added props""

This reverts commit f40ad30d39.

* Fixed NPE

* Added tests

* Formatting

* Tests again

* Fixed NRE

* Upgrade mockito to fix tests

* Added according to spec

* Fallback to env

* Align name

* format

* format

* format

* Fixed tests

* Some comments

* Moved header logic away.

* Formatter

* Fixed null

* Removed append method

* FFormat

* remove unrelated test

* Optimize imports

* Align param order with .net

* format

* Naming

* Use real url

* PR fixes

* public

* format

* Update Utils.java
2023-02-12 14:01:05 +02:00
asaharn 4e588debb6
IngestionStatusInTableDescription to support serialization (#287)
* TableClient as transient to support serialization
*Rebuilding TableClient in case of deserialization
* version change to 4.0.2
2023-02-10 14:06:16 +05:30
Welton Rodrigo Torres Nascimento e7829fef08
Fix link for advancedquery in readme (#286) 2023-02-07 13:01:04 +02:00
microsoft-github-policy-service[bot] cc85467b0c
Adding Microsoft SECURITY.MD (#284)
Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com>
2023-01-29 17:35:26 +02:00
AsafMah c521890cb9
Fixed java wrapper for http props (#283) 2023-01-16 11:40:11 +02:00
AsafMah f40ad30d39
Revert "Added props"
This reverts commit 0f71fdedd8.
2022-12-18 10:57:19 +02:00
AsafMah 0f71fdedd8
Added props 2022-12-18 10:55:20 +02:00
AsafMah cdfae86c57
Test + version bump 2022-12-15 16:21:32 +02:00
AsafMah dd9a1e3305
Add trident endpoint (#280) 2022-12-15 16:05:50 +02:00
AsafMah 162bc70fe8
Update build.yml 2022-12-07 12:30:55 +02:00
ohad bitton 1b233a68c0
Java 11 and extract Process name (#260)
Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
2022-11-27 11:10:54 +02:00
AsafMah 847898d096
Upgrade apache.common.text (#277) 2022-11-27 09:08:39 +02:00
ronmonetaMicro 75a02c39cc
query only mode fix - added nosource option. appropriate JSON fields … (#274)
Co-authored-by: AsafMah <asafmahlev@microsoft.com>
2022-11-07 10:13:35 +02:00
ohad bitton 6147035e83
Move to Blob Storage v12 and azure bom versioning (#240)
* storage v12

* storage v12

* complete - working

* STORAGE v12

* STORAGE v12 works and tested

* tests revert

* tests revert

* try pom

* try bom 1.0.6 - fails for reactor netty http

* bom 1.0.5 fails for netty for unknown reason - version match!

* bom 1.0.5 fails for netty for unknown reason - version match!

* revert me

* better

* merge it better

* merge better

* cleaner

* should work

* fix bom

* bom 1.2.4

* closeable clients

* merge with master, format and clean

* merge with master, format and clean

* test

* fix tests

* fix tests

* fix not working from stream

* work with older bom as well

* format

* fix verify

* fix ingest

* fix comments

* merge

* merge

* Fix ingestion status

* Fix e2e

* Fix ResourceManagerTest bug

* fix unused ependency

* revert

* format

* comments

* format

Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
Co-authored-by: AsafMah <asafmahlev@microsoft.com>
2022-11-03 18:18:18 +02:00
Ramachandran A G 9fcb467250
* Remove JDK8 module. This seems deprecated (https://stackoverflow.com/questions/59996761/do-i-need-to-register-javatimemodule-while-using-jdk-11) (#275) 2022-10-27 14:01:36 +03:00
Tanmaya Panda c3bc04358d
Switch to jackson library from org.json (#272)
* switch to jackson for json

* added formatter

* fixed failing test cases

* fixed testcases

* ran formatter

* added jackson-core to pom

* fixed json string

* fixed string conversion

* bumped release version

* bumped up release version

* addressed Ram's review comments

* formatter changes

* refactored object mapper

* addressed Ram's review comments

* formatter changes

* changes done as per Ohad's comments

* added exception testcase for ResultSetTest

* added bigdecimal for precision in decimal values

* added comment for bigdecimal deserilaization

* made options and parameters mandatory in tojson

* fixed test case

* accept cla

* added formatter

* commit for cla

Co-authored-by: AsafMah <asafmahlev@microsoft.com>
2022-10-27 12:56:38 +05:30
Yihezkel Schoenbrun cd8ff13b8f
Upgrade to v3.2.0 for release (#273) 2022-10-09 14:47:24 +03:00
AsafMah e2059e7578
Automatic conversion of query/ingestion urls in ingest clients (#268) 2022-09-13 09:56:54 +03:00
ronmonetaMicro cf21875070
Added ignorefirstrecord feature (#271)
Co-authored-by: AsafMah <asafmahlev@microsoft.com>
2022-09-01 14:18:30 +03:00
Yihezkel Schoenbrun a48bb62861
Support tables with special characters .-_ (#269)
* Support tables with special characters .-_

* Align normalizeEntityName with its C# equivalent
2022-08-31 15:39:21 +03:00
Yihezkel Schoenbrun 863e6d5e48
Fix MSAL scopes bug - we want ".default" to be appended to the URL, not to be its path's replacement. (#270) 2022-08-29 15:09:38 +03:00
ohad bitton c0fb1540af
Validate endpoint once (#267)
* validate once

* format

* validate once

* camel case

Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
2022-08-24 18:01:33 +03:00
AsafMah b99a30180b
Revert "Automatic conversion of query/endpoint urls"
This reverts commit 6880ed9a0f.
2022-08-18 12:39:57 +03:00
AsafMah 6880ed9a0f
Automatic conversion of query/endpoint urls 2022-08-18 12:39:40 +03:00
ohad bitton a66e8bef26
Verify endpoints (#263)
* start

* matcher

* clean

* matcher

* dragt

* not work

* Tests and all works well

* Tests and all works well

* clean all dirt

* fix format

* fix formatClientImpl

* databind conflict

* Formatting

* fix NPE
comments

* comment

* revert e2e

* fix NPEs !!

* format

Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
Co-authored-by: AsafMah <asafmahlev@microsoft.com>
2022-08-11 15:42:33 +03:00
AsafMah 7123456464
Added keep alive header (#266) 2022-08-10 15:39:01 +03:00
AsafMah dc48ab9f37
Sample app - ignore unknown fields + enum case insensitive (#265) 2022-08-10 14:15:59 +03:00
ag-ramachandran 817fc382fe
* Update README with new maven version to use (#262)
* * Update README with new maven version to use
* Credentials provider is not supported in the new revision. Removed the reference

* * Add maven version badge instead of hardcoding the version

* * Add maven version so that it is easy to integrate into POM

* * Add maven version so that it is easy to integrate into POM

Co-authored-by: AsafMah <asafmahlev@microsoft.com>
2022-08-08 17:32:50 +03:00
ronmonetaMicro f9c0ce774a
T ronmoneta/java sample app (#261)
* Basic Setup

* Utils

* Encompassing enums, configuration classes,and loadconfigs

* Preingestionquerying

* Ingestion

* Post Ingestion querying and pom fix. Done.

* Maven formatting

* PR FIXES

* PR FIXES

* Trigger Build

Co-authored-by: AsafMah <asafmahlev@microsoft.com>
2022-08-08 11:02:07 +03:00
ohad bitton 83fbf16e14
3.1.3 2022-07-11 15:48:52 +03:00
ohad bitton 1bfd98ae4c
3.1.3 2022-07-11 15:47:29 +03:00
AsafMah d24ea97a48
Formatting throws like jetbrains (#259)
* format

* merge

* merge

* More files
2022-07-11 15:33:44 +03:00
ohad bitton 461086f2cc
QueueRequestOptions setter (#258)
* QueueRequestOptions setter

* fix build

* fix build

* fix build

* fix build?

* format

Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
Co-authored-by: AsafMah <asafmahlev@microsoft.com>
2022-07-11 14:53:56 +03:00
Yihezkel Schoenbrun 9393b7dac1
Improve wrong endpoint detection (#255)
* Improve wrong endpoint detection:
- Improve exception handling: if retrieveServiceType() can't determine the endpoint's ServiceType, it shouldn't throw an (uncaught, no less) exception but instead should return null
- Improve message to be clearer and more actionable for the user
- Log warnings instead of errors if we can't suggest the right URL

* Black!

* Black!

* Per code review

* Black!

* Fix black

* Fix black

Co-authored-by: AsafMah <asafmahlev@microsoft.com>
2022-07-04 12:41:04 +03:00
Yihezkel Schoenbrun e03932ceb7
Black: Roll back requiring there be no newline after a field's annotation (#256)
* Black: Propose rolling back requiring there be no newline after a field's annotation. Alternatively, I propose requiring that there *be* a newline after a field's annotation.

As discussed previously, my perspective is that if one code style isn't clearly better than alternatives, the best approach is to let the devs decide. We don't need all aspects of code style to be 100% conforming in all ways, and taking away freedom unnecessarily from devs makes devs sad.

* Fix black

* Fix black

Co-authored-by: AsafMah <asafmahlev@microsoft.com>
2022-07-03 15:42:13 +03:00
Adrien Bestel b15c0d331e
Fix localhost handling (#253)
[This PR](https://github.com/Azure/azure-kusto-java/pull/185/) added support for localhost in the Kusto client. This is extremely useful to mock ADX using Wiremock for example.

There seems to be one last issue however in `com.microsoft.azure.kusto.data.Utils.parseUriFromUrlString`. A typical input `url` would be `http://localhost:[port]/v2/rest/query`; however, when parsed, the `cleanUrl` host is `localhost` and not `http://localhost`.

The fix in this PR is to use the exact same logic as the ClientImpl constructor which is:

```java
aadAuthenticationHelper = clusterUrl.toLowerCase().startsWith(CloudInfo.LOCALHOST) ? null : TokenProviderFactory.createTokenProvider(csb, httpClient);
```

Co-authored-by: AsafMah <asafmahlev@microsoft.com>
2022-06-29 13:50:37 +03:00
Yihezkel Schoenbrun 705bc7d191
Send sourceMessageCreationTime, which can help troubleshoot delays (#254)
* Sending sourceMessageCreationTime would help with troubleshooting delays, which is why it's already included in the C# SDK

* Black!
2022-06-29 08:41:17 +03:00
ohad bitton 0c0848bcdf
try fix ResourceManager test (#252)
Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
2022-06-20 22:21:03 +03:00
ohad bitton 7e62bf7346
Serializeable crp (#250)
* serializeable crp

* Update pom.xml

Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
2022-06-20 15:46:23 +03:00
AsafMah 731eb03ff0
Create codeql-analysis.yml 2022-06-09 11:04:46 +03:00
AsafMah 96060158ca
Use HTTP client properties for cloud info and ingestion (#244)
* CloudInfoHttp - first attempt

* Fixed firstPartyUrl and enabled new http client

* -Fixed test
-Added http client options to ingest clients

* Formatting

* Added comments and minor refactorings

* Fixed method

* Transfer httpclient in the provider ctor

* Change http client ctor to accept system

* Added proxy props

* Fixed NREs

* Added proxy and props support to missing locations

* Update README.md

* Remove auth until next storage version

* format

* Fixed missing exception

* appendIfMissing
2022-06-07 13:57:15 +03:00
AsafMah 5a200c7f8a
Change default authority to "organizations" (#248) 2022-06-06 16:09:33 +03:00
AsafMah cc67280746
Bump to 3.1.1 2022-05-29 13:23:10 +03:00
breriksenms 5da90ad381
Documentation (#245)
* Add advanced query sample

* Fix readme reference to Results

* Incorporate PR comments

* format

Co-authored-by: ohad bitton <32278684+ohadbitt@users.noreply.github.com>
Co-authored-by: AsafMah <asafmahlev@microsoft.com>
2022-05-29 12:42:28 +03:00
AsafMah d056254952
Change http client ctor in cloud info to accept system props (#247)
* Change http client ctor to accept system

* Fixed NREs

* Update README.md

* format
2022-05-29 11:40:44 +03:00
AsafMah 7d3b5bd5b4
Fixed missing exception 2022-05-25 13:38:17 +03:00
breriksenms 2209318b6a
Update getKustoDateTime with more lenient formatter (#246)
* Update getKustoDateTime with more lenient formatter

* Convert DateTimeFormatter to static

* Add additional tests for getKustoDateTime

Co-authored-by: AsafMah <asafmahlev@microsoft.com>
2022-05-24 14:52:43 +03:00